Advertisement

Push, pop, child, parent, running together.

Started by October 12, 2001 03:01 PM
-1 comments, last by Tant 23 years, 4 months ago
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