ehm... HLSL is the high level shading language for direct X, I don't
know any porting of openscenegraph for directX.
If you want to use some HLSL shader you can convert them to GLSL with
the hlsl2glsl tool. http://sourceforge.net/projects/hlsl2glsl
dmu_rhx ha scritto:
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
<http://lists.openscenegraph.org/listinfocgi/osg-users-openscenegraph.org>>:
>/ 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.
------------------------------------------------------------------------
[????] ??????????????-????????
<http://popme.163.com/link/003985_1010_7027.html>
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org