Null Zbuffer in PGraphicsOpenGL
PGraphicsOpenGL p3d = (PGraphicsOpenGL) g;
float depth = p3d.zbuffer[i];
PGraphicsOpenGL p3d = (PGraphicsOpenGL) g;
float depth = p3d.zbuffer[i];
"Incomplete information: no context"
I don't believe I am mixing OpenGL and P3D but if you could point out where I am...
Note:
PGraphics3D p3d = (PGraphics3D) g;
is the base class for PGraphicsOpenGL and allows me to switch the rendering context in size() without changing any other code and PGraphicsOpenGL p3d is commened out but had been tried for completeness.
Interesting that the zbuffer isn't supported. Unluckily processing in 3D lacks a lot of precision, an example of which is visible cracks between quads and wireframe corners not meeting so it isn't very suitable for me.
So any ideas how to get a zbuffer when using PGraphicsOpenGL. I am thinking I should be able to use read pixels directly.
Thanks,
Lester