Bonjour,

Je travaille actuellement sur un projet OpenGL 3, avec JOGL. Mon problème est que je n'arrive pas à configurer Eclipse pour le faire fonctionner sur mon ordinateur portable - alors qu'il fonctionne avec exactement les mêmes paramètres sur les ordinateurs de mon université.

Voici la partie du code qui pose problème :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
public void init(GLAutoDrawable drawable) {
        final GL3 gl = drawable.getGL().getGL3(); // ligne 91
 
        // Create and start the animator
        final FPSAnimator animator = new FPSAnimator(drawable, 60);
        animator.start();
 
 
 
        gl.glEnable( GL.GL_DEPTH_TEST );
        gl.glClearColor( 0f, 0f, 1f, 1f );
    }
Et le message d'erreur à la compilation :


Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Not a GL3 implementation
at jogamp.opengl.gl4.GL4bcImpl.getGL3(GL4bcImpl.java:32594)
at Project.init(Project.java:91)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:155)
at jogamp.opengl.GLDrawableHelper.init(GLDrawableHelper.java:175)
at javax.media.opengl.awt.GLCanvas$InitAction.run(GLCanvas.java:856)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:356)
at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:769)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:388)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:487)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Si cela aide mon portable possède 2 cartes graphique, la première supportant OpenGL2 et la deuxième OpenGL4 (d'après mes souvenirs).

Quelqu'un saurait-il me dire d'où peut venir le problème ?

Merci d'avance pour votre aide.