Login  Register

Re: Port to JOGL2 questions

Posted by Zere on Jul 30, 2011; 3:20pm
URL: https://forum.jogamp.org/Port-to-JOGL2-questions-tp1845722p3211885.html

Hi guys,

I'm using the GLU.gluProject() method with double parameters but I don't know why the in the SwingCanvas nothing is show. and when I try to resize the window the following exception is thrown:

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: GLEventListener org.jzy3d.plot3d.rendering.view.Renderer3d@17fa65e already initialized: AWT-GLJPanel[ com.jogamp.opengl.impl.windows.wgl.WindowsOffscreenWGLDrawable, GLAnimatorControl: null, GLEventListeners num 1 [org.jzy3d.plot3d.rendering.view.Renderer3d@17fa65e[init true], ]]
        at com.jogamp.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:127)
        at javax.media.opengl.awt.GLJPanel$Updater.init(GLJPanel.java:587)
        at javax.media.opengl.awt.GLJPanel$InitAction.run(GLJPanel.java:659)
        at com.jogamp.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:284)
        at javax.media.opengl.awt.GLJPanel$SoftwareBackend.doPaintComponentImpl(GLJPanel.java:1005)
        at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:919)
        at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:311)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.JComponent.paintChildren(JComponent.java:862)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintChildren(JComponent.java:862)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:567)
        at javax.swing.JComponent.paintChildren(JComponent.java:862)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JViewport.paint(JViewport.java:747)
        at javax.swing.JComponent.paintChildren(JComponent.java:862)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintChildren(JComponent.java:862)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1224)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
        at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:785)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:713)
        at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:693)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:125)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        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)

It seems the same problem that Martin mention On Nov 06, 2010; 12:04pm.

I'm working with:
- the jzy3d 0.9 version (al least is what it is write in the build.xml file)
- jogl2
-Win7 (64 bit)

Are you sure that the GLU.gluProject()  method work properly even with double parameters?

Thank you in advance!!

Zere