Sign in to follow this  

dimensions in games

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

hi i wonder what dimensions are usually used in 3d games and in what range the values lie. are these values taken in account with physics calculations? has anyone experience with this? thanks gerold

Share this post


Link to post
Share on other sites
Only remember two, which are(IIRC):

Quake: 1 unit = 1 inch, -16384 to 16383
Serious Sam: 1 unit = 1 meter, whatever a float(or was it double?) can hold

I'd prefer the latter. Makes for easier use aswell since all constants in our physics lookup tables are metric.

Share this post


Link to post
Share on other sites
ok, that's what i thought.

another question:
are there any pros/cons using a world coordinate system only
at the positive axes or one using positive and negative axes?

thanks, gerold

Share this post


Link to post
Share on other sites
what do you mean by that?

you mean, X going right, Y going up, Z going through the screen?

That makes up for a left-handed coordinate system, which is usually a bad idea. So either, put Y down, or Z coming towards you, to get a right handed coordinate system.

Share this post


Link to post
Share on other sites
I think he means, should the world lie entirely in the positive octant? Or should it be centered at the origin?

Off the top of my head, I can't think of a reason why one would be better than the other.

Share this post


Link to post
Share on other sites
Quote:
Original post by jyk
Off the top of my head, I can't think of a reason why one would be better than the other.
How about increased floating-point precision towards the origin?
Placing the origin at the worlds center should improve the average precision.

Share this post


Link to post
Share on other sites
Quote:
Original post by jyk
Off the top of my head, I can't think of a reason why one would be better than the other.


Floating point precision is expressed in terms of significant digits. You have better precision at the origin than 1e9 away from it.

Share this post


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