You must use beginShape() or beginShape(POLYGON) before curveVertex()
in
Programming Questions
•
1 year ago
I get this error:
- Exception in thread "Animation Thread" java.lang.RuntimeException: You must use beginShape() or beginShape(POLYGON) before curveVertex()
However, i use beginShape. Strange thing is when i go from P2D or OPENGL to JAVA2D then the problem is gone.
I have had this before and sometimes it's just random, as in, trying to run the sketch a few times then sometimes it works.
Does anyone have a clue what it can be?
In case someone is interested then i can upload the project later. It's to big to post here.
--------
edit:
just discovered that it has to do with extreme large coördinates, like a x value of -10000.
Does anyone know the maximum values?
1