Hi all. Im a bit new to Jogl although i think i’ve more or less managed to get the hang of it. I was wondering… has Cg managed to make it into the MacOSX release yet? I believe the answer is no. In which case, is it possible with Jogl to code up some vertex programs? It may actually be better to use the arb stuff i guess since im using an ATI card (powerbook 1.5 ghz Radeon 9700). Any ideas please? Cheers
Cg has not made it to OSX.
You could try using GLSL, which works good for me on Windows. Another possibility would be to compile your Cg-Shaders to ARB Vertex/Fragment Program, but I was unable to get this to work (But could only be me being stupid
)
Good Luck!
[quote]You could try using GLSL, which works good for me on Windows. Another possibility would be to compile your Cg-Shaders to ARB Vertex/Fragment Program, but I was unable to get this to work (But could only be me being stupid
)
Good Luck!
[/quote]
Apple is still behind on this front as well. Its ‘coming’ but current support is very incomplete.
It is not Apple that is behind but we, the javagaming community, since nvidia is shipping CG for MacOSX
The lack of CG is completely a JOGL issue, not a MacOSX.
MacOSX users out there, please !! JOGL + CG + MACOSX ;D
// Tomas
This is good news. Could you please file an RFE using the JOGL Issue Tracker to add Cg support to JOGL’s Mac OS X port?
Does Linux already have support? If so you just need to dynamic load the requisite libraries in the OSX GL core and it will work.
JOGL on linux supports CG. But which libs should I load and where ?
Cheers
// Tomas
A little more work than this will be needed – the JOGL build process for OS X needs to be updated to generate the Java interface to Cg on that platform. If someone wants to look at the build.xml and piece together how to do this that would be great, otherwise please file an RFE and we’ll try to get to it in the next beta.
Tomas I’m having some issue just trying to get the framework to actually do something meaningful. Have you installed the framework and actually gotten it to work?
I just installed it and was able to compile and run the runtime_ogl example but not the runtime_ogl_vertex_fragment example. However I have a really poor graphics card in my Mac (GeForce 4 MX – the titanium version wasn’t out when I bought the machine).
[quote]Tomas I’m having some issue just trying to get the framework to actually do something meaningful. Have you installed the framework and actually gotten it to work?
[/quote]
I have installed it but haven’t done any testing. I just had the fortune to lend a G5 from Apple for a couple of days during a tradeshow. So I have just done some quick testing trying to get Megacorps running on it.
// Tomas
We’ve upgraded JOGL’s Cg support to NVidia’s latest Cg 1.3 beta 2 headers. This should work cleanly on Mac OS X; I’ll try to incorporate this into the Mac build process within the next day or two and put out a new JOGL beta build.
Great ;D
FYI, JOGL’s CVS repository now has support for building the Cg binding on Mac OS X. Compile with ant macosx -Djogl.cg=1 as on other platforms.
Will there be an official november release of jogl with cg support ?
Cheers Tomas