pushMatrix - popMatrix depth extension..
in
Programming Questions
•
5 months ago
I know it's a common error about depth and only 32 pushMatrx - popMatrix pairs allowed and the answer is this skript:
Matrix stack - processing wiki
BUT i get the following errors.
Basically it is a very very very big piece of code to show it, so i am gonna describe the basic problem.
I have my code running with no problem using pushMatrix - popMatrix. I try to extend it by adding ope more pair of push/pop translating and rotating 25rects() all together.
Exception "cannot use more than 32 pushMatrix() appears.
I copy the code given by the upper link, as it is.
What happens is that it looks like it cancels a piece of many many many sets of [pushMatrix() - translate() - rotate() - shape() -popMatrix()] and by canceling i mean the the push/pop orders are as they where never written and all the translation rotations are in a row...
I also tested the upper piece of code to the oldest - working - version of my code. What happens there is that it seams not even reading the "shape()" code as described above...
What is happening?
How does really the "cheat" of the link work?
Matrix stack - processing wiki
BUT i get the following errors.
Basically it is a very very very big piece of code to show it, so i am gonna describe the basic problem.
I have my code running with no problem using pushMatrix - popMatrix. I try to extend it by adding ope more pair of push/pop translating and rotating 25rects() all together.
Exception "cannot use more than 32 pushMatrix() appears.
I copy the code given by the upper link, as it is.
What happens is that it looks like it cancels a piece of many many many sets of [pushMatrix() - translate() - rotate() - shape() -popMatrix()] and by canceling i mean the the push/pop orders are as they where never written and all the translation rotations are in a row...
I also tested the upper piece of code to the oldest - working - version of my code. What happens there is that it seams not even reading the "shape()" code as described above...
What is happening?
How does really the "cheat" of the link work?
1