From: Rasmus A. <ra...@vr...> - 2003-04-30 05:55:39
|
On Tue, 2003-04-29 at 09:19, Rasmus Agerholm wrote: > On Mon, 2003-04-28 at 23:22, Michael Babcock wrote: > > Rasmus Agerholm wrote: > > >>Nvidia has a CgFX format that specifies some semantics for parameters, > > >>as well as a Maya plugin to use it, but it seems both the plugin and > > >>CgFX runtime is currently only available for Windows (we're using Linux). > > >> > > > > > > > > > Nvidia has released the Cg Toolkit, which includes both the Cg compiler > > > and the Cg runtime, for linux as well. So it is possible to use the CgFX > > > file format, which by the way is compatible with MS HLSL format. I have > > > successfully compiled/run a few examples on my Radeon 9700 linux box. > > > > I have the Cg toolkit for Linux, and have used .cg files with it, but > > the cgfx examples seem to be stripped out. Did you really get cgfx files > > to work or just .cg files? > > Sorry, just .cg files. Right, it looks like CgFX runtime is a different > story, currently only told on Windows :-( > > > > > cg files just specify a single program. cgfx adds semantics about > > parameters and multiple passes. > > And techniques, yes. Sorry, I shortly collapsed Cg and CgFX into one > toolkit. > > > Without that how do you get OpenSG to > > set the parameters correctly, because the inputs to a cg program are > > arbitrary? Even just setting the current transform matrix seems > > impossible without knowing what it's called in the cg program, right? > > Right, the CgFX semantics seems to be a must to avoid parsing parts of > the file one self or create some sort of cg-interface implemented in C++ > on a per shader basis, which would probably be too much work. > > I guess we just have to ask Nvidia to make the linux implementation > available ASAP. The have neglected their promise to release a linux > version of the "Accompanying Software" for quite a while now! FYI: I took the liberty of mailing Nvidia the question. The answer was that the next Cg release, which is scheduled for around June, will be the first CgFX release including a linux version. They may have beta versions earlier. /Rasmus -- Rasmus Agerholm Research Assistant VR Media Lab (+45) 9635 8792 Niels Jernes Vej 14 DK-9220 Aalborg Phone: (+45) 9635 8784 Fax: (+45) 9815 2444 http://www.vrmedialab.dk/~rasta |