Jump to content
  • Advertisement
Sign in to follow this  
doodo

Unit of measurement

This topic is 4516 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

Just curious, been reading over some examples of physic done in OpenGl on a typical grid line 20x20. Although, I’m puzzled by how people represent measurements within a 3d environment. OpenGl enables you to define a line, polygon by a floating point number. Although, what does 1 represents? Are you allowed to define your own unit of measurement within the 3D api. For example, 1.00 for one foot? 1.00 for one meter? 1.00 for one mile? 1.00 for one KM? What do you use? This may seem like a simple question but it has puzzeled me to no end.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by doodo
OpenGl enables you to define a line, polygon by a floating point number. Although, what does 1 represents? Are you allowed to define your own unit of measurement within the 3D api.

For example,
1.00 for one foot?
1.00 for one meter?
1.00 for one mile?
1.00 for one KM?
It's entirely up to you (although sometimes one scale may be more appropriate than another due to world size or precision issues).

Share this post


Link to post
Share on other sites
Thanks jyk.

Just been eating away at my head over the last couple of days :)

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!