OpenGL 3.0 support on OSX.

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

OpenGL 3.0 support on OSX.

anandcta123
Hi,

I am using MAC MINI with OSX Movericks and it is having Intel HD Graphics 3000. In their documentation, they will tell OpenGL 3.0 is supported. But when I call JOGL getGL3(), I will an exception indicating GL3 not implemented. Is there any way to configure to use OpenGL 3.0. I am having latest JOGl version and also XCode is upgraded with latest SDK.

Thanks and Regards,
Anand
Reply | Threaded
Open this post in threaded view
|

Re: OpenGL 3.0 support on OSX.

Xerxes Rånby
Please generate and attach a run-time debug log using your OSX system and it will include which profiles are supported by your OpenGL driver.
http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing
http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Runtime_Debug_Logs


2014-02-05 anandcta123 [via jogamp] <[hidden email]>:
Hi,

I am using MAC MINI with OSX Movericks and it is having Intel HD Graphics 3000. In their documentation, they will tell OpenGL 3.0 is supported. But when I call JOGL getGL3(), I will an exception indicating GL3 not implemented. Is there any way to configure to use OpenGL 3.0. I am having latest JOGl version and also XCode is upgraded with latest SDK.

Thanks and Regards,
Anand


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/OpenGL-3-0-support-on-OSX-tp4031450.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogamp, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: OpenGL 3.0 support on OSX.

Sven Gothel
Administrator
In reply to this post by anandcta123
On 02/05/2014 11:50 AM, anandcta123 [via jogamp] wrote:
> Hi,
>
> I am using MAC MINI with OSX Movericks and it is having Intel HD Graphics
> 3000. In their documentation, they will tell OpenGL 3.0 is supported. But when
> I call JOGL getGL3(), I will an exception indicating GL3 not implemented. Is
> there any way to configure to use OpenGL 3.0. I am having latest JOGl version
> and also XCode is upgraded with latest SDK.
>

You need to ask for the best 'core' or programmable GLProfile
when creating your GLCapabilities, see:

GL2ES2
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getGL2ES2%28%29>

MaxProgrammable:
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getMaxProgrammable%28boolean%29>

MaxProgrammableCore:
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getMaxProgrammableCore%28boolean%29>

OSX only support OpenGL >= 3.0 as core profiles.
The default GLCapabilities will result using the highest
compatibility profile, i.e. GL4bc, GL3bc or GL2.

See demo/unit-test:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java;h=5d5b0c9a1d8d59414e3e0c7b844203a09d9b4b54;hb=HEAD#l464>


~Sven

> Thanks and Regards,
> Anand
>


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

Re: OpenGL 3.0 support on OSX.

LordSmoke
In reply to this post by anandcta123
Hmm, this might be related to me.

I was recently teaching a workshop on the use of my Java3D/JOGL software. It has primarily been developed on a Mac. All of the Windows users in the class downloaded and ran the program just fine. The three OS X users could not. Two of these had Intel HD 3000 graphics. They also had an older OS, but since the class, one user reports upgrading to the current OS didn't help.

The program reports that JOGL is not found, but that is the result of the following code to text for the presence of JOGL:

        // Check for JOGL2
        try {
            GLProfile.initSingleton();
            joglVersionString = com.jogamp.opengl.JoglVersion.getInstance().getAttribute(java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION);
            System.out.print("JOGL "+ joglVersionString+" detected...\n");
            hasJOGL2 = true;
        } catch (Error e) {
            System.out.print("JOGL not detected...\n");
            e.printStackTrace();
        }

Any ideas?

The third user (Intel HD 4000 graphics and latest OS) could run the program from the command line or batch file, but the OS would not execute Apple Scripts for hiding Java 1.6 files and starting the program. Doesn't sound like a JOGL issue, but any suggestions on this would be appreciated, too, while I await comment from the Apple community.

Sorry for only dropping in only occasionally with problems, but otherwise everything works so well.

-LS
Reply | Threaded
Open this post in threaded view
|

Re: OpenGL 3.0 support on OSX.

gouessej
Administrator
Please post at least the full stack trace and check that there is no other version of Java3D or JOGL installed as an extension.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: OpenGL 3.0 support on OSX.

LordSmoke
gouessej wrote
Please post at least the full stack trace and check that there is no other version of Java3D or JOGL installed as an extension.
I cannot reproduce the problem locally, but my student in Germany reported:

"when I tried to run the .jar with the console window open actually nothing appeared in the window. It stayed completely clear."

The stack trace in the above code should be dumped to the console window, right?

Here is the terminal output from starting from the command line:

JOGL not detected...
java.lang.NoClassDefFoundError: javax/media/opengl/GLProfile
    at m_globals.M_environmentProbe3D.<init>(M_environmentProbe3D.java:40)
    at m_00startup.M_startup.main(M_startup.java:45)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLProfile
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 2 more
Java3D detected...
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/awt/GLJPanel
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at m_00startup.M_startup.main(M_startup.java:50)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.awt.GLJPanel
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 13 more

They have moved any 1.6 Java files to a benign directory. The characteristic behavior of that issue is that the program opens, but the graphics are not interactive. Terminal reports Java 1.7