Can JOGLAppletLauncher load jogl_cg library?

I’m trying to get an applet going that uses the jogl_cg library, but I saw in the JOGLAppletLauncher sourcecode that only jogl, and jogl_awt were being loaded. Maybe because not every jogl-natives library has a jogl_cg counterpart?

So my question is, should I try making my own applet launcher which loads the jogl_cg library - which I’m thinking would require me to sign the applet (which I haven’t done), (plus I have a lousy signature). Or, could someone add this option to the JOGLAppletLauncher?

Wild Bill Kelso

Correct, not every platform supports Cg. We currently don’t supply a JNLP extension for the Cg libraries for this reason and also because using Cg requires additional run-time libraries even on platforms which do support Cg. I’ve heard that some people have deployed JOGL apps using Cg via Java Web Start by bundling both the jogl_cg library as well as the CG DLLs/.so’s for the various platforms in their native library jar files. We’re unlikely to do this in our distribution.

That having been said, if you prototyped adding a parameter to the JOGLAppletLauncher which would cause the Cg libraries to be loaded if available then we’d gladly incorporate the patch. Or feel free to file a Request for Enhancement with the JOGL Issue Tracker.

Ken can you say what platforms do not support CG? and will be support for them in future?

NVidia doesn’t yet supply Cg for Solaris/x86, for example. I have no idea whether this is planned, but since they now ship Solaris/x86 drivers equivalent to the latest Linux drivers one would think it would be trivial to also supply Cg.