Can't get OpenGL 3.x with JDK 7

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

Can't get OpenGL 3.x with JDK 7

Nikos132
Hello all,

i've got a strange problem, when using JDK 6 I get a gl_version 3.3 and a correct NVIDIA vendor for my old 9600M GT card, so far so good.

But when I switch to JDK7 I get 1.1.0 gl_version and generic Microsoft vendor, all other things the same.

Did someone experienced this annoying problem?

Thanks for any help.
Regards
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

Nikos132
I forgot to add that my system is XP 32 bits...

Regards
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

gouessej
Administrator
In reply to this post by Nikos132
Hi

Pass the parameter -Dsun.java2d.d3d=false to the JVM to disable Direct3D. I assume the Direct3D pipeline is enabled by default under Windows with Java 1.7.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

Nikos132
Thank for the tip, I'll check that tomorrow morning... I used to set this flag but it's a good explanation!

I'll let you know.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

gouessej
Administrator
If it isn't enough, try to get all available profiles. Maybe the default profile isn't the one supporting OpenGL 3. You can use GLProfile.getMaxProgrammable(true) or GLProfile.getMaxFixedFunc(true) to favor the hardware rasterizer and skip Microsoft GDI crappy OpenGL driver. If you're on a laptop, you have to force the performance profile in NVIDIA graphical user interface to prevent your operating system from using another graphics chip (Intel) with Microsoft's driver.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

Nikos132
Hello,

I just tried the d3d=false without success... I already tried to use the getMaxFixedFunc(true)  instead of default profile without any luck in this way.

In fact I get a correct OpenGL 3 profile for an offscreen drawable that I want to share with an onscreen drawable. On the later I can't get more thant 1.1 GDI. Maybe the problem lies in the poor installation of XP drivers on the customer hardware.

Anyway thanks again for your help, I'll try to post a solution / explanation if I find one.

Have a nice day.
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

gouessej
Administrator
Ok but don't hesitate to give us some more information about your configuration. You say that you're under XP 32 bits. I know that there could be some problem if you tried to use a 64 bits JVM whereas your driver is 32 bits but it's not your case. What is the version number of your driver?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

Nikos132
Hi again...

We entered a rush delivery phase, so the laptop was returned to "Systems" guys with a no-go for JDK 7... If I get any chance to put my hands on the laptop again I'll give you the driver versions...

As far as I know they tried to install a 2013 January version of the generic NVidia driver which can't be installed properly on the HP laptop... So I certainly won't blame JOGAMP team on that.

Anyway, thank again and I'll let you know the follow ups.
Reply | Threaded
Open this post in threaded view
|

Re: Can't get OpenGL 3.x with JDK 7

gouessej
Administrator
Ok. It's still good to understand why it doesn't work. If you use JavaFX, you have to use another property to force Prism not to use Direct3D.
Julien Gouesse | Personal blog | Website