Hi,
week ago, Abraxas send me message about VisualBASIC 6 tutorials, which show how to use NVIDIA CG in VB.
VB uses wrapper library created by Paul Dahuach, but as it is DLL, thinBASIC can use it too.
Yesterday I made another exam, so to celebrate a bit I did the conversion
Here is attached sample "Ejemplo 2" ( see all original VB samples here ), which basically paints primitives red .
You will need NVIDIA CG installed ( or at least have cg.DLL and cgGL.DLL in same directory as the script ), not sure if it is suitable for ATi/Intel/S3/Matrox... , I guess not :'(
The CG is shader language developed by NVIDIA, something like GLSL, but little different.
You can design shaders in kind of visual way using NVIDIA FX Composer too.
Have fun, more complex samples will come once I will have more time again.
Bye,
Petr
P.S. The wrapper cgVB.DLL probably will not be necessary once I will do cg*.h headers conversion
Learning resources
The CG Tutorial
eBook from NVIDIA, explains CG from the basics
Bookmarks