Skip to content

Instantly share code, notes, and snippets.

@panmari
Last active December 23, 2015 04:19
Show Gist options
  • Save panmari/6579977 to your computer and use it in GitHub Desktop.
Save panmari/6579977 to your computer and use it in GitHub Desktop.
jrtr getting started notes

General tips

  • Install the source/javadoc for eclipse built in documentation (right click on project -> Maven -> download source).
  • Manually add the documentation for vecmath (simple project -> maven dependancies -> vecmath-1.3.1.jar rightclick -> properties -> add http://download.java.net/media/java3d/javadoc/1.5.0/ under javadoc location path.

Linux

Nvidia graphics card

###libEGL warning: DRI2: failed to authenticate

I believe that DRI2 is not implemented in the proprietary Nvidia Drivers. Source: http://www.chaosreigns.com/wayland/hardware/

You might have to switch over to the Nouveau drivers

Intel graphics card

Give up, this won't run under linux at the time of writing. Minimal requirements are OpenGL 3.1 and GLSL 1.50. Even the most recent drivers only support GLSL 1.40 (test with glxinfo | grep -i opengl)

@simplay
Copy link

simplay commented Sep 17, 2013

On Mac OS X 10.8.4 using an Intel HD Graphics 4000 384 MB graphics card, I get the following exception (within eclipse Juno for the above's approach):

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Not a GL3 implementation
    at jogamp.opengl.gl4.GL4bcImpl.getGL3(GL4bcImpl.java:37119)
    at jrtr.GLRenderContext.<init>(GLRenderContext.java:42)
    at jrtr.GLRenderPanel$GLRenderContextEventListener.init(GLRenderPanel.java:39)
    at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:540)
    at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:562)
    at javax.media.opengl.awt.GLCanvas$6.run(GLCanvas.java:1037)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1032)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
    at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
    at javax.media.opengl.Threading.invoke(Threading.java:193)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
    at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:537)
    at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
    at sun.lwawt.LWRepaintArea.paintComponent(LWRepaintArea.java:54)
    at sun.awt.RepaintArea.paint(RepaintArea.java:240)
    at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1277)
    at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1165)
    at java.awt.Component.dispatchEventImpl(Component.java:4937)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.awt.EventQueue$3.run(EventQueue.java:686)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:702)
    at java.awt.EventQueue$4.run(EventQueue.java:700)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at jrtr.GLRenderPanel$GLRenderContextEventListener.display(GLRenderPanel.java:49)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)
    at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)
    at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
    at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)
    at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
    at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
    at javax.media.opengl.Threading.invoke(Threading.java:193)
    at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
    at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:537)
    at javax.media.opengl.awt.GLCanvas.update(GLCanvas.java:719)
    at sun.awt.RepaintArea.updateComponent(RepaintArea.java:255)
    at sun.lwawt.LWRepaintArea.updateComponent(LWRepaintArea.java:42)
    at sun.awt.RepaintArea.paint(RepaintArea.java:232)
    at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:1277)
    at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:1165)
    at java.awt.Component.dispatchEventImpl(Component.java:4937)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.awt.EventQueue$3.run(EventQueue.java:686)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:702)
    at java.awt.EventQueue$4.run(EventQueue.java:700)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment