HLSL is  not supported  by OpenGL  and thus not supported by OSG

 

If you want to use shaders then you will have to use GLSL

 

 

HLSL is DirectX only

 

__________________________________________________________
Gordon Tomlinson 

 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
IM:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
 <http://www.vis-sim.com/> www.vis-sim.com
<http://www.gordontomlinson.com/> www.gordontomlinson.com 

__________________________________________________________

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dmu_rhx
Sent: Thursday, October 23, 2008 5:42 AM
To: [email protected]
Subject: [osg-users] Examples for OSG+OpenGL+HLSL

 

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

Reply via email to