Login  Register

Re: small drawing

Posted by gouessej on Jul 08, 2016; 9:33pm
URL: https://forum.jogamp.org/small-drawing-tp4036875p4036896.html

The current version of JogAmp's Ardor3D Continuation doesn't use "javax.media.opengl.GLContext", it uses "com.jogamp.opengl.GLContext" from JOGL 2.3.2. Please use the very latest source code available on Github:
https://github.com/gouessej/Ardor3D

Please use Maven to build this engine, it picks the right version of JOGL as you can see here:
https://github.com/gouessej/Ardor3D/blob/master/pom.xml#L273

Your JARs (especially jogl-all.jar) probably come from an older version of JOGL which isn't compatible with the latest version of JogAmp's Ardor3D Continuation.

I'm not sure that my explanation was clear. You have to insert the quoted code from JoglNewtWindow into JoglNewtSwtCanvas and to uncomment it to solve your problem.

I cannot fix any home made build system and you'll always have troubles if you try to build JogAmp's Ardor3D Continuation with the wrong versions of its third party dependencies (including JOGL). Please use Maven, it's easy to use, it's the recommended way of building this engine and it's explained in the user guide. I don't encourage you to modify the package names, it just drives harder the update of the engine within a project.

Edit.: If you don't want to use Maven to build the engine, it's up to you to update the third party dependencies. Look at this section of the tutorial for Eclipse:
https://gouessej.wordpress.com/2014/11/22/ardor3d-est-mort-vive-jogamps-ardor3d-continuation-ardor3d-is-dead-long-life-to-jogamps-ardor3d-continuation/#eclipse
I advise you to download anew jogamp-fat.jar, use the link in the tutorial. Then you'll have the right version to make it work and you won't have to worry about managing the native libraries by yourself. jogl-all.jar and gluegen-rt.jar aren't enough.
Julien Gouesse | Personal blog | Website