I need to save a .png file of a P3D generated images with trasparency. I know how to do it with 2D graphics using PGraphics.
However I tryed drawing 3D graphics by calling vertex method on the PGraphics object. It didn't work properly.
First: calling grph3d.noStroke() causes the graphics to not render at all, while calling noStroke() on setup still render the lines.
Second: saving the image as it is using save("filename.png") method yields no image on the output file.
Third: how can I use the translate(x,y,z) method properly on a PGraphics? It seems to work on the 3D render (e.g. grph3d.translate(x, y, z)) but not on the 2D (e.g. grph3d.translate(x, y)).
Forth: Is there any other aproach besides using PGraphics?
I can't really tell if it's a version problem or if it's me doing something wrong.
I will be looking furhter into the specifications but meanwhile can u guys give me a light? Anything will be helpfull.
Since my code works with 3 different classes I'll try to post a shorter version ASAP.