push/popMatrix Problem
in
Programming Questions
•
1 year ago
Hi everybody,
I have a strange Problem in one of my projects. And maybe somebody has seen something like this before...
In my project I have this
I have a strange Problem in one of my projects. And maybe somebody has seen something like this before...
In my project I have this
- g.pushMatrix();
- g.translate(position.x, position.y);
- // g.rotate(-rotation);
- g.translate(localOffset.x, localOffset.y);
- // g.scale(localScale);
- g.image(image, -halfImageWidth, -halfImageHeight);
- g.popMatrix();
Where g is a PApplet
My problem is that
My problem is that
- this works when using it as shown above
- it does NOT render any images as soon as I add the (above) commented lines
- SideNote: it works when I use g.scale(1) and g.rotate(0)...
Now I tried this code on a simple scetch and there it works as expected...
Any hints where I should look at?
FEZ
Any hints where I should look at?
FEZ
1