Sign in to follow this  
geroldboehler

dimensions in games

Recommended Posts

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this