Login  Register

Re: OpenGL 4 status

Posted by Sven Gothel on May 29, 2011; 10:56am
URL: https://forum.jogamp.org/OpenGL-4-status-tp2969055p2998306.html

On Saturday, May 21, 2011 05:08:40 pm Job Zwiers [via jogamp] wrote:
>
> Hi,
>
> Can someone tell me what the status of Jogl support for OpenGL 4 is at the
> moment?

OpenGL 4.1 is fully supported

JOGL choses the highes available fixed function pipeline available,
ie 4.1, 4.0, 3.3, .. 2.0 .. 1.5 - or the highes programmable only one.

Hence the following unit test shall show you the highest profile, ie 4.1 if available on your platform

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java;h=89833760281d02a249e4c0564930c2dc66b23f46;hb=HEAD#l68

https://jogamp.org/chuck/job/jogl/lastSuccessfulBuild/label=linux-x86_64-amd/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestGLProfile01NEWT/test01GLProfileDefault/?

https://jogamp.org/chuck/job/jogl/lastSuccessfulBuild/label=win7-x86_64-nvida/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestGLProfile01NEWT/test01GLProfileDefault/?

Using a GPU/driver w/o OpenGL 4* support, here OpenGL 3.3 only, appears as:

https://jogamp.org/chuck/job/jogl/lastSuccessfulBuild/label=linux-x86_64-nvidia/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestGLProfile01NEWT/test01GLProfileDefault/?

Have a look at those unit tests. Sure you can also try a forced a GLProfile,
however, not all are available on all machines, naturally.

~Sven

> There is a GL4 interface already for some time, but (on my OpenGL4 capable
> system), the following fails:
>
> GL4 gl = drawable.getGL().getGL4();
>
> Message: Exception in thread "AWT-EventQueue-0"
> javax.media.opengl.GLException: Not a GL4 implementation
>         at jogamp.opengl.gl4.GL4bcImpl.getGL4(GL4bcImpl.java:32456)
>
>  A similar line GL3 gl = drawable.getGL().getGL3()  works fine;  
> in that case, gl.glGetString(GL3.GL_VERSION); returns OGL version 3.3
>
> A tool like GPU Caps Viewer reports OGL 4.1, and it does run the OGL4
> tesselation demo fine.
>
> System:
> Jogl build: b391
> NVidia GTX 460, driver: 270.61(whql),  Win7 64 bits
>
> Any ideas?
>
> Job
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/OpenGL-4-status-tp2969055p2969055.html
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, visit