GLGraphics and strange problems with matrix transformations
in
Contributed Library Questions
•
1 year ago
Hi,
I'm sure there's a simple solution to this, but I have a series of shapes involving a bunch of matrix transformations (translate, rotateX, rotateY and rotateZ, pushMatrix and popMatrix) which draw fine outside of the beginGL() / endGL() block, and I then draw a GLModel on top of that which is inside beginGL() / endGL(). But if I put beginGL() / endGL() around everything in the draw function then suddenly everything goes c-rrazy.... though you'll notice the red dots (the GLModel) are in the same spot
I tried changing everything to renderer.translate(), renderer.rotateX(), renderer.pushMatrix() etc, but no help.
Here are two screenshots.
Any ideas?
1