Maybe yall can help on this one.
I have a small application that does 3D drawing. It opens a file of vertices and triangle faces. The main class instanciates a class I have created as a openGL engine using JOGL which extends FRAME. When this is created it opens it’s own frame to draw on.
When I open the file the polygon’s appear in the frame no problem. However when I do rotates, translates, etc. that are invoked through pubic methods in the GLEngine class nothing happens. That is until I move the frame, as soon as I move it the picture redraws correctly. Each of my public methods does make a call to display and I have verified it is being called.
That all happens on a small set of vertices/faces. If I use an file with lots of vertices and faces (say 2000) everything draws 95% of the time normally (misses one once in a while).
Is there a way to force display to update without moving the frame? I am using glFlush at the end of my display method.
Any hints here would be appreciated. I can send a .jar to anybody who wants to see as well.
Jim