[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 » Sun Jun 21, 2009 11:38 am

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.
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: Update to latest Cg Toolkit

Post by CABAListic » Sun Jun 21, 2009 11:41 am

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 :)
0 x

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
Contact:

Re: Update to latest Cg Toolkit

Post by Praetor » Mon Jun 22, 2009 2:14 pm

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.
0 x
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
Contact:

Re: Update to latest Cg Toolkit

Post by jacmoe » Mon Jun 22, 2009 2:18 pm

It's easy enough: copy headers and lib and DLL over and recompile the cg plugin manager. :)
0 x
/* 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 » Wed Jun 24, 2009 9:03 pm

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. :)
0 x

JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm

Re: [solved] Update to latest Cg Toolkit

Post by JDX_John » Fri Dec 09, 2011 1:32 pm

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?
0 x

CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
Contact:

Re: [solved] Update to latest Cg Toolkit

Post by CABAListic » Fri Dec 09, 2011 5:39 pm

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.
0 x

Post Reply