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

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

01-06-2010, 05: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, 06: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.

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