Why Irrlicht doesn't support Cg and CgFX ?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
marco.siino
Posts: 14
Joined: Thu Oct 13, 2005 2:36 pm

Why Irrlicht doesn't support Cg and CgFX ?

Post by marco.siino »

There is a particular reason for which irrlicht doesn't support Cg and CgFX ? I want to try to implement it, but first i want to know if there is a reason for which it has not be done before (incompatibilities, etc...)

THanks!
--
Marco Siino
Software Developer for an italian Software House

"Reality is merely an illusion, albeit a very persistent one" - Albert Einstein
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Cg needs external libraries to do the same thing as all the other shaders AFAIK. So it would be better to use a Cg compiler initially and put the generated shader into the app. But since many people like Cg it might become part of the contribution files of Irrlicht.
marco.siino
Posts: 14
Joined: Thu Oct 13, 2005 2:36 pm

Post by marco.siino »

I think an effect shader might be useful more than Cg itself. But DirectX FX files are not cross platform, so i think CgFX support in Irrlicht could be an useful thing. I think external libraries is not a very big problem...
--
Marco Siino
Software Developer for an italian Software House

"Reality is merely an illusion, albeit a very persistent one" - Albert Einstein
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I believe Cg shaders are the only fully cross-platform shaders in the sense that a cg shader can be compiled for use with directx or opengl, and the Cg API provides functions for handling Cg shaders in both OpenGL and DirectX . To the best of my knowledge this is not possible with HLSL or GLSL, although both of those language obviously have their own advantages.
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
Post Reply