This topic is now archived and is closed to further replies.


Getting transformed vertex coords

Recommended Posts

How do I get the transformed vertex coordanites after calling glTranslate*() and glRotate*(). I need something like this:
xtranformed = transform_vertex_x(x, y, z);
ytranformed = transform_vertex_y(x, y, z);
ztranformed = transform_vertex_z(x, y, z);
where x, y, and z is the vertex that I want to be transformed. Can I just multiply it by the current model matrix? If so, how do I do that? thanks

Share this post

Link to post
Share on other sites