We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I use translate() in my sketch pretty often. Now suddenly (since i switched to P2D) I get this message:
"translate() with x, y, and z coordinates can only be used with a renderer that supports 3D, such as P3D. Use a version without a z-coordinate instead."
But, I cannot find a translate() w/ a z-coordinate and i wouldn't need one.
Also the sketch is running, so processing won't point to the line w/ this problem. Is there way to find this line in a compiling report or something?
Answers
it's there in the reference
https://processing.org/reference/translate_.html
So the sketch is running? Then just forget about it.
You probably used translate with a z-coordinate, which is only permitted with P3D (so far).
Search if there is something of the form translate(x, y, z) in your code, and remove the z.
I just couldn't find a translate(x, y, z) in my sketch. But eventually I figured out the problem. Sometimes asking brings the idea to solve on my own ;-) I had a z-coordinate in a text()...
Oh, it's effectively the same, text will call translate first.