• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by seashell · Jul 16, 2013 at 01:47 PM · curvevectrosity

Vectrosity curve thickness is same with cam zoom

When I'm zooming my camera my curves thickness is same, no matter camera is zoomed or not (using orthographic cam). If with cam zoom, objects becoming bigger, my curve thickness also should be changed same way, but it doesn't.

  • Using Update() for curve recalculation

  • Using orthographic camera

  • curve is dotted

  • curve is 2D Vector

Is there any way to fix that?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fernfreak · Jun 08, 2016 at 03:51 PM 0
Share

Draw3D maintains the same thickness regardless of camera distance. Has anyone figured some way to simply create regular 3D geometry with Vectrosity without a change in thickness?

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by CHPedersen · Jul 16, 2013 at 01:54 PM

This is entirely by design - @Eric5h5 developed the lines so that their thickness is camera distance independent. Note that, even if you supplied Vector3s to your VectorLine object, they are not actually 3-dimensional unless you call VectorLine.Draw3D when you draw them. In fact, they're meshes, all created in the same plane and oriented to face the camera that renders them (the one that gets returned by VectorLine.SetCamera()).

If you want VectorLines that truly exist in 3D whose line thickness changes with camera distance, you have to call Draw3D when you draw them. Note that this also enables them to be occluded by other objects.

Disclaimer: I'm not affiliated with @Eric5h5 or Vectrosity in any way, I've just used it a lot. You can read all this and more in the documentation that follows Vectrosity, namely the file "Vectrosity Documentation.pdf". It's very well documented.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Draw Graph with Vectrosity in NGUI window 1 Answer

[Vectrosity] 3d bezier curve not generated correctly 1 Answer

Using Vectrosity, I want to make a curve. 0 Answers

How to draw graph(line graph , spline graph) in unity using. 0 Answers

How can I set the tangents of Keyframes in an AnimationCurve through scripting? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges