Push, pop, child, parent, running together.
I have my lil animation.
with my pushes and pops.
My parent its childs, and then something totally independent.
Example:
glPushMatrix(); // parent
whatever that is the parent of the rest
glPushMatrix();
junk
glPopMatrix();
glPushMatrix();
other junk
glPopMatrix();
glPushMatrix();
something else
glPopMatrix();
glPopMatrix(); // end parent
now my new independent object:
glPushMatrix();
code....
glPopMatrix();
now my second independent object is acting as if it is dependent upon the first. I rotate/translate the first obejct and my second one that I want to be independent moves with it.
anyone know why this is happenening?
--Tantalus
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement