PDA

View Full Version : Nvidia cg


Dr_s99
11-21-04, 09:46 AM
Hello,
well i want to get started and start learning CG (http://developer.nvidia.com/Cg).

I was wondring if there is any way to use this "language" in c#??
other then c/c++....!

and how can i do that?
is there a tutorial or examples which i could look at?

thank you!

Subtestube
11-23-04, 01:54 PM
Cg should be able to easily interface with any language that can use OpenGL or Direct3D - you need those binding semantics and function calls. Best bet for you is to download the Cg handbook, and the NV SDK. It has HEAPS of examples, admittedly using C and C++. As for C#, I've never used it myself, but I can't see any reason why you couldn't use Cg, so long as you can use one of the 3d APIs with it anyhow.

If you do have any more questions, feel free to ask - I've been programming using Cg for the better part of a year, and will offer whatever I can. Wish I could be of more use regarding C#.

Dr_s99
11-23-04, 04:36 PM
thank you