Very Basic Cg Problem


#1

Hi!

My first post here, but I have been visiting for a while. I’m new to computer graphics and basically my problem is that I don’t know what I’m doing! I need to learn to use the Cg language, I have the tutorial book, and I have downloaded the toolkit. The problem I have is that I don’t know how to get the code to compile, I have used the book to write a very simple vertex program, and a Fragment program to go with it. But the book doesn’t do a very good job of telling you how to actually compile and run this code, I can’t get it to do anything. Can someone please explain in layman’s terms what I need to do to set up, and compile with Cg? I would be very grateful to anyone who could!

Thanks
Twib


#2

The Cg user’s manual available at http://developer.nvidia.com does a pretty good job of explaining what to do.

The easiest way’s to do it from within a C program. Again, the manual tells you how to do it…


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.