PDA

View Full Version : does nvidia's CG work with non-nvidia cards?



crankygoo
01-06-2010, 04:36 AM
seems it makes sense to write shaders in cg if it supports ATI cards.
so does it support non-nvidea cards?

martinsm
01-06-2010, 06:31 AM
Cg supports bacend for generation shader in GLSL language. And ATI supports GLSL in OpenGL (it is in OpenGL core since verion 2.0). So yes - Cg supports ATI card.

Dark Photon
01-06-2010, 07:26 AM
Check out these threads for more details:

* Thread 261307 (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=261307&Searchpa ge=1&Main=50681&Words=%2Bati+%2Bcg+%2Barb_vertex_p rogram&Search=true)
* Thread 50259 (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=259057&Searchpa ge=1&Main=50259&Words=%2Bati+%2Bcg+%2Barb_vertex_p rogram&Search=true)
* Thrad 51288 (http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=264861&Searchpa ge=1&Main=51288&Words=myMatrixProjection+&Search=t rue)

The last one has Ilian showing how to use cross-compile GLSL to ARB_vertex_program/ARB_fragment_program using Cg.

crankygoo
01-09-2010, 10:20 AM
thanx, guys )