Advertisement

axis

Started by October 01, 2003 02:48 PM
0 comments, last by Ruudje 21 years, 5 months ago
In opengl the z axis is pointing in/out of the screen, but in most/all 3d editors the z-axis points up. Is there a way to set up the world space of opengl the same way? Since when I now load a model made with 3d max it is drawn laying down, even though its normal in 3d max
the program ure using uses the left hand for x,y,z and opengl uses right hand. The folwing will convert the data for ya.


inline void swizzle(Vector3f &v) {
float temp = v.y;
v.y = v.z;
v.z = -temp;
}

This topic is closed to new replies.

Advertisement