PDA

View Full Version : opengl units- which units it contains?



Doctor100
03-26-2014, 03:30 AM
opengl units- which units it contains?

Hi,

I am loading a ,model to openGL .

which units are presented in OPENGL?

thanks

Agent D
03-26-2014, 05:18 AM
There are no units of length in OpenGL(R). The units of length are up to your interpretation. You could interpret 1.0 as 1 meter or as 1 foot.

If, for instance, your camera is 1.8 units above the ground in a 2.2 unit tall and 3 unit broad corridor, the image will look the same as if your camera was 5.906 units above the ground in a 7.218 unit tall and 9.843 unit broad corridor. Doesn't make a difference, as long as it is consistent. (Except for the rounding error I introduced when converting from meters to feet)