Hi! Robert.Thank you. Osgteapot example is a pure opengl code. Can you tell me 
other examples for OSG+OpenGL+HLSL. Thanks.                                  
rhx?HI rhx?

20008/10/22 dmu_rhx <dmu_rhx at 163.com>:
> Hi!
> I have developed a program with opengl+cg. Now I want to use this program in
> OSG, and I know that OSG supports glsl. Does OSG support Opengl+Cg?

The OSG itself does not support Cg, GLSL is the route to the full
programmable pipeline.

Marco Jez released an osgNV NodeKit that did provide Cg support ontop
of the OSG, but hasn't updated this project and no longer support it.

If you already have your own implementation then potentially you could
implement a custom Drawable and wrap up all your OpenGL code and Cg
calls, but you'd have to be very careful about state leaking in and
out of your drawable.  osgteapot provides a very simple example of
this approach.

Robert.
 
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to