Jump to content
  • Advertisement
Sign in to follow this  
virvelvinden

Does unit scale matter?

This topic is 3757 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a game with a 2d gameplay, meaning that the textures will be rendered on flat squares and rectangles and the objects are limited to movement along the x and y-axis(es). I've decided that each object is 1x1 units, my question is: does this scale matter? or could I use 10x10 objects instead, provided that i move the camera further back? Would the textures render differently? thanks for any help!

Share this post


Link to post
Share on other sites
Advertisement
Unless you decide to make your unit scale super huge or super small then it doesn't really matter as long as you scale the camera matrices, etc. appropriately.

Share this post


Link to post
Share on other sites
Most of the time it doesn't matter and you ought to concentrate on using a sensible scale, so 1x1 is fine, nothing wrong with 10x10 either.

If you use extreme scales then you run into problems with floating point accuracy or integer overflows. It's not likely to bother you unless you're simulating the solar system to a realistic scale, for example.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!