Login  Register

Re: PushMatrix/PopMatrix

Posted by AlexRNL on Apr 29, 2011; 9:48am
URL: https://forum.jogamp.org/PushMatrix-PopMatrix-tp2874026p2878642.html

Wade Walker wrote
It's probably working, just not doing what you expect it to  For example, depending on where your camera is and what direction it's facing, it could be that the with the push/pop in place, the zoom factor makes the first triangle visible but not the second. So then when you take push/pop out, the zoom is applied to both, and you can now see them both.

I'd advise resetting the values in the translate/rotate statements to zero, then gradually changing them so you can get a feel for what's going on.

Thanks a lot!
Didn't think it was that simple... feel kind of stupid right now