LH / RH Coord System

Started by
0 comments, last by McKoy 22 years, 7 months ago
OpenGL seams to default to a RH coordinate system but my text book is all in LH coord sys. Does anyone know how to set the correct projection matrix for a LH coordinate system ??
Advertisement

9.150 Can I make OpenGL use a left-handed coordinate space?

OpenGL doesn''t have a mode switch to change from right- to left-handed coordinates. However, you can easily obtain a left-handed coordinate system by multiplying a negative Z scale onto the ModelView matrix. For example:

glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
glScalef (1., 1., -1.);
/* multiply view transforms as usual... */
/* multiply model transforms as usual... */




YAP-YFIO

-deadlinegrunt

~deadlinegrunt

This topic is closed to new replies.

Advertisement