P3D Rendering seems unpredictable

I've written Java code to solve a simple electrical circuit and then I use the Processing libraries to draw and animate a 3D model of the circuit using P3D. But I find that the 3D perspective is unpredictable. Below are two screen shots of the output for a typical circuit. Sometimes it renders the way I intended (the first picture), and sometimes it renders like the second picture. I have found no pattern.ExpectedRendering CloseUpRendering

Does anyone recognize this problem? Is there some initialization step that I'm missing?




  • First one looks like isometric / orthographic perspective, while the second looks like regular perspective. Check your calls to camera(), perspective(), ortho() etc.

  • Thanks! I moved my call to ortho() from setup() into draw() and that did the trick.


Sign In or Register to comment.