Problem in Jogl Please

How Are You All ?

I Have 2 Problems with Jogl

First : i use jogl 1.0.0 and it’s load my object successfully but i need to draw image when i press the mouse and when i try to use glDrawPixels() function i have an error that this function not found

Second : when i try to use higher versions of Jogl i found the function glDrawPixels() but i don’t find the texture class that i use in loading my objects

so please if any one can help me because i have assignment and i can’t make it

Thanks in Advance

Go with the new version and post the code you have problems with.

thank you for your concern

you can download the whole project from this link

http://rapidshare.com/files/110136180/ProjectTest_1.rar.html

thanks in advance

You are mixing jsr and old jogl versions here. Your “higher” jogl version is an old pre jsr release and is older than the jogl 1.0.0 you are using. The glDrawPixel is available in the 1.0.0 version but takes a Buffer, not an array.

I see that you are not referencing the jogl jar/dll in your project, so I assume that you copied the files to your jre/ext directory. Just don’t do it, you screw your jogl webstart support by doing it.
To solve this problem, remove all occurences of JOGL and GLUEGEN from your systems path or the JDK/JRE directories. Then download the latest jogl version for your system and extract it somewhere on your harddrive (C:\develop\libs\jogl for example).

After that go to Netbeans Library manager and create a Library for the jogl-files (e.g named OPENGL-DEPS) and add the jogl and gluegen-rt.jar there. Add this libraries to your project and you should be able to compile.
When you try to run it, you should get a message like “no gluegen-rt on java.library.path”. To solve this, go to your projects properties dialog and add -Djava.library.path=: to the JVM-Args input in the Run category.

Alternatively you could install our Opengl-Pack for Netbeans (fastest way is to download from the Plugin Portal, extract the archive and install all NBMs under Tools->Plugins->[Downloaded]), create a new project based on SimpleJOGL and copy your code into the src folder. But don’t forget to clean your system from the JOGL/GLUEGEN files before. :wink:

Thank You Very Much Mr. Cylab

and sorry for late reply because of my midterm exams

i try the Opengl-Pack for Netbeans and it’s run

Thank you for Your Help

:slight_smile: