Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem using Nvidia's Cg toolkit to create OpenGL pixel shaders

0 views
Skip to first unread message

Bill Kraus

unread,
Jul 15, 2002, 2:22:22 PM7/15/02
to
I've been using Nvidia's Cg toolkit/programming language to create
vertex shaders for OpenGL. Now I need to create pixel shaders. Problem
is that it is unclear to me from the documentation Nvidia provides
exactly what profile I pass in to the cgAddProgram and
cgGLEnableProgramType routines. For a OpenGL vertex shader, it's
cgVertexProfile'. But while the docs list two seperate profiles for
DirectX8 (one for vertex shaders and one for pixel shaders), there is
no mention of a pixel shader profile for OpenGL.

So, how do I go about adding and enabling a pixel shader program using
Cg in OpenGL?

Jason Allen

unread,
Jul 15, 2002, 8:47:52 PM7/15/02
to
OpenGL pixel programs are currently not supported in the beta release of Cg.
What you can do (for now) is to use the DX8 pixel shader profile and then
use nvparse to convert that pixel shader assembly to OpenGL texture shader
and register combiner calls.

Jason A.

"Bill Kraus" <bkr...@digitalbiology.com> wrote in message
news:93352d62.0207...@posting.google.com...

Bill Kraus

unread,
Jul 15, 2002, 9:35:35 PM7/15/02
to
Ok - my understanding is that Nvidia's Cg toolkit does *not* currently
support pixel shaders for OpenGL. Instead, I need to use register
combiners. If this is NOT a correct understanding, please let me know.
;-)

bkr...@digitalbiology.com (Bill Kraus) wrote in message news:<93352d62.0207...@posting.google.com>...

Eric Grange

unread,
Jul 16, 2002, 3:05:09 AM7/16/02
to
Exact, see

http://www.cgshaders.org/forums/viewtopic.php?t=204

for details on how to "get them" via DX8.1 PS and NVParse.

Eric Grange
http://glscene.org

0 new messages