Hi,
Managed to compile the jogl / gluegen from git (27.06.2010 mbien) and also managed to compile own test program. But when starting the application the main method is run correctly but the init, display, ... methods are not run at all and the application window stays gray. There is only "Info: XInitThreads() called for concurrent Thread support" Info on the command line and nothing else. The command-line I am using is java -Djogl.GLContext.optimize -cp /opt/Projects/Java3D/libs/jogl.all.jar:/opt/Projects/Java3D/libs/gluegen-rt.jar:/opt/Projects/Java3D/libs/nativewindow.all.jar:/opt/Projects/Java3D/libs/newt.all.jar:. -Djava.library.path="/opt/Projects/Java3D/libs:/usr/lib64" Cube I do have 32bit and 64bit Nvidia libraries installed 32bit in /usr/lib and 64 in /usr/lib64. Could this cause problems and how to avoid the problem ? Thanks for tips, -Mika |
Hi Mika,
regarding the warning: try to call GLProfile.initSingleton() as early as possible. regarding the events: difficult to say, have you added the gl event listener to the drawable? :) do the demos work? e.g.: http://github.com/mbien/jogl-demos/blob/master/src/demos/gears/Gears.java regards, michael On 06/27/2010 10:34 PM, mikasaari [via jogamp] wrote: Hi, |
Hi,
I think the event listener is correctly binded to the drawable (not sure though). I couldn't get the demos to be compiled because ant gives error pretty early. I will check this. I tried debugging my not working Cube.java the results are at pastebin if there would be any info what could cause the problem. I will try getting the jogl-demos to be compiled. http://pastebin.com/0PgGFGzB -Mika |
Hi,
The jogl-demos ant build stops when the method setAutoDrawableClient can not be found from com.jogamp.newt.Window. Couldn't find this method from newt.Window with grep -r either. Checking this more deeper. Thanks many times for help, -Mika |
Hi,sorry, my jogl-demos repository was not up2date with jogl. You probably cloned from me? Its now in sync. your sample you posted looks ok. I get an black window (glClearColor) on ubuntu when i run it.
|
Hi,
Yep, tested this same code in different machine (64bit that as well, compiled the gluegen & jogl there as well by myself). It worked without problems. In this main machine which I am using 3D mainly, it is just giving gray window :( Need to look more this. -Mika |
Free forum by Nabble | Edit this page |