OpenGl PGraphics3D and Processing
in
Programming Questions
•
3 years ago
I have to get some of the dumb questions out of the way sorry. Also my terminology is all over the place so please feel free to correct me.
PGraphics3D is a software implementation of a 3d software rendering library based on most of openGL standards?
and
I was reading through the Processing source code and was a but confused.
How is lighting being handled then when using openGL? I have some understanding of openGL i just finished reading the red book and have been using Processing for some time. I am trying to pick apart how Processing is implementing openGL.// LIGHTING
// We're not actually turning on GL lights right now
// because our home-grown ones work better for now.
// public void lights() {
// super.lights();
// gl.glEnable(GL.GL_LIGHTING);
// }
// public void noLights() {
// super.noLights();
// gl.glDisable(GL.GL_LIGHTING);
// }
When you switch to using OpenGL what in the rendering process is not being handled by openGL that could be?
Also this was a while ago but some one in the old forum made a post showing the differences in speed when using direct openGL calls. The program was using circle collisions and was just winging out circles all over the place. I searched for it but couldn't find it.
If any one can link me to this post or any other posts where people where demonstrating the speed differences from using native Processing and making calls directly to openGL.
; )
1