Profile GL2 is not available (latest NVidia QUADRO drivers)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Profile GL2 is not available (latest NVidia QUADRO drivers)

The.Scotsman
Original code (probably from jogamp examples)

GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL2));
=>Exception in thread "main" javax.media.opengl.GLException: Profile GL2 is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]

Apparently, GL2 is no longer supported by the drivers...

Searches of jogamp for solution suggested:
GLCapabilities capabilities = new GLCapabilities(GLProfile.getMaxFixedFunc(true));
=>Exception in thread "main" javax.media.opengl.GLException: Profiles [GL4bc, GL3bc, GL2, GLES1] not available on device WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[]]

Nuts.
Try various alternatives:
GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL3));
GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL4));

Maybe it should be more generic, like:
GLCapabilities capabilities = new GLCapabilities(GLProfile.getMinimum(true));

However, these all fail later in the code whenever there is a:
GL2 gl = drawable.getGL().getGL2();
==>Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Not a GL2 implementation

Changed this to:
 GL gl = drawable.getGL();

However, lots of methods are not implemented in the super interface!

gl.glShadeModel(GL2.GL_SMOOTH);
gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_SPECULAR, specular, 0);
gl.glLightModelfv(GL2.GL_LIGHT_MODEL_AMBIENT, global_ambient, 0);
gl.glColorMaterial(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE);
gl.glMatrixMode(GL2.GL_PROJECTION);
...

How should this be done?

Many thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Profile GL2 is not available (latest NVidia QUADRO drivers)

Sven Gothel
Administrator
On 11/09/2013 02:31 AM, The.Scotsman [via jogamp] wrote:

> Original code (probably from jogamp examples)
>
> GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL2));
> =>Exception in thread "main" javax.media.opengl.GLException: Profile GL2 is
> not available on WindowsGraphicsDevice[type .windows, connection decon, unitID
> 0, handle 0x0, owner false, NullToolkitLock[]], but:
> [GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL3.hw],
> GLProfile[GL4/GL4.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
>
> Apparently, GL2 is no longer supported by the drivers...
Try release 2.1.2 - fixed there.

If not working w/ 2.1.2, please file a full bug report
w/ debug logs attached (Wiki/FAQ/Bugreport).

~Sven


signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Profile GL2 is not available (latest NVidia QUADRO drivers)

Sven Gothel
Administrator
In reply to this post by The.Scotsman
Pls try 2-1-3-rc-20131111:
  <http://forum.jogamp.org/2-1-3-rc-20131111-Mardi-Gras-RC-td4030585.html>

.. and confirm.

Thank you!

~Sven


signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Profile GL2 is not available (latest NVidia QUADRO drivers)

cubus
Sven Gothel wrote
Pls try 2-1-3-rc-20131111:
  <http://forum.jogamp.org/2-1-3-rc-20131111-Mardi-Gras-RC-td4030585.html>

.. and confirm.

Thank you!

~Sven



signature.asc (911 bytes) <http://forum.jogamp.org/attachment/4030589/0/signature.asc>
i had the same problem, and it works now with 2-1-3-rc-20131111
thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Profile GL2 is not available (latest NVidia QUADRO drivers)

The.Scotsman
Worked like a charm!
Many thanks for the quick response.

BTW: went with:
GLCapabilities capabilities = new GLCapabilities(GLProfile.getMinimum(true));

(Lowest common denominator?)
Hope that's okay.