[solved] Update to latest Cg Toolkit

What it says on the tin: a place to discuss proposed new features.
Post Reply
yeahRIGHT
Halfling
Posts: 74
Joined: Sun Sep 07, 2008 5:09 pm

[solved] Update to latest Cg Toolkit

Post by yeahRIGHT »

Is it possible to update to the latest version (2.2) of the Cg Toolkit with the next release? It seems, that currently version 2.0 ist used, which I suspect to have some obvious bugs in the compiler (like "optimizing" away results which need to be preserved). I think this would help a lot to write cross-API shader programs even more easily and shouldn't be too much of a breaking change.
Last edited by yeahRIGHT on Sat Feb 06, 2010 10:59 pm, edited 1 time in total.
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58
Contact:

Re: Update to latest Cg Toolkit

Post by CABAListic »

If you compile Ogre from source, then you can already use Cg 2.2. Cg 2.0 is just the version which is shipped with the precompiled dependencies or the official SDKs, because those haven't been updated yet. But Ogre itself doesn't much care about the version of Cg, so feel free to replace it and compile away :)
User avatar
Praetor
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3335
Joined: Tue Jun 21, 2005 8:26 pm
Location: Rochester, New York, US
x 3
Contact:

Re: Update to latest Cg Toolkit

Post by Praetor »

The Cg version should be updated when the new version is released. But if you want to upgrade the version used with 1.6.x you'll need to compile from source as CABAListic said.
Game Development, Engine Development, Porting
http://www.darkwindmedia.com
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: Update to latest Cg Toolkit

Post by jacmoe »

It's easy enough: copy headers and lib and DLL over and recompile the cg plugin manager. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
yeahRIGHT
Halfling
Posts: 74
Joined: Sun Sep 07, 2008 5:09 pm

Re: Update to latest Cg Toolkit

Post by yeahRIGHT »

Yeah, I think it would be a job easy enough for me to do :) . However, when I wrote that the 2.0 version was a nuissance, I meant this as a (still very valid) rationale for the suggestion, it's not that I need the update desperately. In effect, I just wanted to make sure that this will not be forgotten, since it's not even 2.1 that is currently used. :)
JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm
x 2

Re: [solved] Update to latest Cg Toolkit

Post by JDX_John »

Raising a dead thread to life... what Cg version is in the current version of Ogre? In 1.7.3 (the version I'm using) I see 2.2, did you move to version 3.x in 1.8?
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58
Contact:

Re: [solved] Update to latest Cg Toolkit

Post by CABAListic »

Since we haven't done any SDK releases for 1.8, that question is a bit moot. But yes, we are going to ship the 1.8 SDKs with Cg 3.

Even Ogre 1.7 can be compiled against Cg 3, if you like.
Post Reply