Hi,
I'm having trouble getting some CGFX shaders (namly the IcUber Shader from
http://blog.leocov.com/p/downloads.html) to work. I have an Nvidia Quadro FX 3500 and am running DirectX 11 and have all the latest drivers as far as i can tell. However when i link up all the lights and texture maps it stays pink, i never get to the green untextured faze. I've got hardware texturing applied and am in textured mode but no luck. Wired thing is that i can get some cgfx shaders to work, but both the kodde and icuber shaders are having it. Anyone come across this problem before?
Replies
http://www.laurenscorijn.com/viewportshaderfaq
Gotta be honest though, Maya is really shitty with viewport shaders, if you want decent support, go to 3DS Max.
CGFX was developed by Nvidia and is cross-platform. It works with OpenGL as well as DirectX. Unreal engine uses this to keep support for PS3 for example.
HLSL was developed by Microsoft and only works with DirectX (and thus windows/Xbox360). It's very similar to CGFX though.
You might wonder "but Maya is OpenGL, how can HLSL even work then?". That's what the plugin does I guess, don't ask me how exactly but they might just be translating the HLSL code to CGFX first (possible since it's similar).
The whole difference really doesn't matter to you much. Most Maya shaders are written in CGFX since the support and compiler is slightly better, while in Max it's the other way around, HLSL is much better supported. That's why I choose to stick with it.