Transforming 3D coordinates

Started by
-1 comments, last by Team_Rocket 20 years, 8 months ago
Hi, This is my first post so please be patient. I''m programming some character animation for my third year uni project and want to keep track of the (x,y,z) coordinates for each joint in the character''s skeleton. Every frame of animation performs rotational transformations for each joint in the body (x,y,z coordinates, so that I can use glVertex3f() to display a stick man representing the joints). I want to use glRotatef()and glPushMatrix()/glPopMatrix() to rotate the joint then store the new joint''s position as the start position for the next frame. However i can''t see how to do this in openGL. Do I need to write my own transformation functions for 1x3 matrices? Or can I use the supplied functions and some how retrieve the transformed coordinates? While I''ve done a bit of openGL programming before i''m no expert and the OpenGL programming Guide doesn''t seem to contain anything helpful in it concerning this topic. Any help would be much appreciated

This topic is closed to new replies.

Advertisement