Hi Peter,

Can't you use compatibility profile ? All stuff you mention is still available in compatibility profile.

eg place it at the begining of GLSL Shader:

#version 150 compatibility
[shader code]

Wojtek


--------------------------------------------------
From: "Peter Wrobrl" <[email protected]>
Sent: Wednesday, September 29, 2010 9:21 PM
To: <[email protected]>
Subject: [osg-users] Extract ModelView Projection Matrix for GLSL Programversion 150 and higher

Hi,

gl_ModelViewProjectionMatrix and ftransform() are deprecated since GLSL Version 120 ( but still working ), in Version 150 not working at all. Is there a straight forward way to extract the current ModelView and Projection Matrices ( e.g. from StateSet ? ), without having to pass around the Camera through the SG, or extract osg::Transform World Matrix ?

Moreover, gl_Vertex is depreciated as well, so how to create a VBO ? Is it possible to use only VertexAttribArray, without VertexArray, NormalArray, etc. ?


Thank you!

Cheers,
ParticlePeter

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32198#32198





_______________________________________________
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

Reply via email to