Login  Register

Re: PushMatrix/PopMatrix

Posted by Wade Walker on Apr 28, 2011; 7:07pm
URL: https://forum.jogamp.org/PushMatrix-PopMatrix-tp2874026p2875913.html

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.