Hello all. I’m an experienced programmer, though relativly new to OpenGL and JOGL, and new to this forum. I’ve gotten to the point where I can draw points, lines, triangles, etc, and have some level of comfortability doing so.
I have a scene to set up, with different types of objects added “on the fly”, with a main backdrop having some objects itself, and handling GLEventListener.init. Currently, I’m calling GLPanel.addGLEventListener for each object, and drawing on the GLEventListener.display. This produces irratic behaviour. What I mean by that is that sometimes it renders, and sometimes it doesn’t, although the main backdrop objects for the scene do consistently render. I have also tried keeping an ArrayList of objects added on the fly, and manually calling each objects display method at the end of the main backdrop’s GLEventListener.display, or even creating a new method, void draw(GL gl). I consistently get inconsitent behaviour.
Secondly, I see a lot of examples using gluOrtho2d to set up the type of coordinate system where there are four quandrants and negatives. Cartiesian I think I heard it refered to as. I’m setting it up to have 0,0 at the leftmost bottom of the screen. Is there a reason to do otherwise?
Lastly, I occasionaly see “ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2” after my application exits on the eclipse console. Nothing else seems to disfuntion or be out of place, save for the above mentioned. Should this worry me?
I’m running on win xp, jdk 1.6.0. My display is a crappy run-of-the-mill onboard card. I can’t even get the manufacturer info for it from windows (go figure).
Thanks in advance for helping this noob.