Picking not working when using GLJPanel

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Picking not working when using GLJPanel

gouessej
Administrator
Hi!

I use JOGL to draw some meshes and I use the basic OpenGL picking (with the select buffer, etc...). When I use a GLCanvas, it works fine. When I use the same code with a GLJPanel, if the picking returns at least one hit, the application freezes a few seconds later. Has someone already had the same problem?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Picking not working when using GLJPanel

gouessej
Administrator
I get this kind of exception when resizing the Eclipse ViewPart:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: sun.java2d.InvalidPipeException: bounds changed or surface lost
        at com.jogamp.opengl.impl.awt.Java2D.invokeWithOGLContextCurrent(Java2D.java:299)
        at javax.media.opengl.awt.GLJPanel$J2DOGLBackend.doPaintComponent(GLJPanel.java:1527)
        at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:384)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
        at java.awt.Container.paint(Container.java:1780)
        at java.awt.Window.paint(Window.java:3375)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:695)
        at java.awt.Component.dispatchEventImpl(Component.java:4706)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4460)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I use the latest build.
Julien Gouesse | Personal blog | Website