Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 ROM · Aug 07, 2010 at 11:04 AM · camerascalelargesmall

Does scale make a difference?

I'm just wondering if the Scale of an object makes a difference. For example if all of my objects were huge and the camera was simply zoomed further out would that take any more processor or memory than the same objects but smaller and the camera zoomed closer?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Wolfram · Aug 07, 2010 at 11:45 AM

Short answer: no, but you don't want to do that

Overall performance is not influenced by the general scale of your scene - you still need to keep the same objects in memory, you still need to render all the polygons, etc.

However, Unity uses the "float" type for all math and transformation operations, which has very limited precision (but uses little memory). So if you scale your whole scene by a factor of say 100000 (and adjust the clipping planes of the camera accordingly), you can no longer work with models that are scaled around 1 because of limited floating point precision (for example, Unity cannot distinguish between the positions (1000000,0,0) and (1000001,0,0).

Especially the Physics engine and anything related to it relies on "reasonable" values, ideally around 1, and you often get unpredictable results outside the interval of say 0.01-1000 (depending on the parameter).

This is also the reason why a scale of "meters" is generally a good idea - but only as long as you use "normal" objects: If you want to visualize the Solar System, you don't want to use meters, you'd probably use Astronomic Units or Millions of km. And if you want to visualize atoms, you don't model them in meters, but maybe in nanometers.

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
avatar image
1

Answer by Magnus Wolffelt · Aug 07, 2010 at 11:22 AM

In theory it shouldn't matter much, aside perhaps from rotational inertia tensors, I'm not sure.

However, in practice, it becomes really hard to create realistically looking worlds if you don't stick to a certain set of units.

I prefer to always think in meters, seconds and kilograms. This way I can create objects whose size, mass or velocity/etc I know roughly, and I know that they will fit into my world because they are based on the same units as the other objects. Otherwise you will spend lots of time tweaking scaling on objects all the time.. which is annoying. If you stick to a set of units, you get it right the first time, mostly.

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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Change UI scale in relation to 3D camera 0 Answers

Show squares in the camera 0 Answers

Unrealistic size of sun, viewed from earth 2 Answers

Colliders won't work 0 Answers

Camera settings for viewing any model like the Unity Preview 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