dimensions in games

Started by
6 comments, last by geroldboehler 19 years ago
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
Advertisement
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.
delete this;
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
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.

Everything is better with Metal.

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.
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.
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.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
ok thanks, that what i wanted to know.
you guys are really fast :)

gerold

This topic is closed to new replies.

Advertisement