Nvidia CG questions
Hi,
I'd like to start programming shaders for OpenGL, and I planned to use Nvidia CG toolkit because I already got a book about it.
It is a good choice?? or maybe OpenGL Shading Language is better? why?
Shaders compiled using Nvidia CG toolkit works only with Nvidia graphic cards??
tnx a lot, bye
one of the advantages of a HLSL should be/is that its compiled on the fly (once) for the targeted subsystem (ATI/NVidia etc).
1) Start app
2) Load HLSL source
3) compile for subsystem
4) run
1) Start app
2) Load HLSL source
3) compile for subsystem
4) run
As good a choice as any I guess. Get FX Composer (if you're using windows) aswell. It's a great little app. Well, big app.
And some of the advantages of GLSL:
- Not proprietary,
- Also compile at runtime for your platform,
- Multi-platform.
- Not proprietary,
- Also compile at runtime for your platform,
- Multi-platform.
As far as I know, CG can be used both with OpenGL and DirectX. So once you learn it you be able to write shaders for both APIs. It's a big advatage I think.
See ya'
See ya'
Given that the two languages are so similar (and they're driving the same hardware), the important thing becomes the tools available for them. I've used NVidia's Cg tools and they're ok; I don't know what you'd use for GLSL.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement