Jump to content
  • Advertisement
Sign in to follow this  
darkbard

OpenGL Nvidia CG questions

This topic is 5121 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
And some of the advantages of GLSL:

- Not proprietary,
- Also compile at runtime for your platform,
- Multi-platform.

Share this post


Link to post
Share on other sites
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'

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!