12-09-2001, 11:38 AM
How do I get a vertex's global coordinates after I do severl PushMatrix/translate,multmatrix,scale, etc.
for example (psudocode)
glLoadIdentity
glPushmatrix
gltranslate
glrotate
glPushMatrix
glscale
glMultMatrix
glVertex3f X, Y, Z
glPopmatrix
glPopMatrix
how do I get X,Y, and Z where they would appear in global coordinates?
for example (psudocode)
glLoadIdentity
glPushmatrix
gltranslate
glrotate
glPushMatrix
glscale
glMultMatrix
glVertex3f X, Y, Z
glPopmatrix
glPopMatrix
how do I get X,Y, and Z where they would appear in global coordinates?