Hi Peter, osg::State in svn/trunk and later 2.9.x series has support for assigning a osg_ModelViewProjectMatrix, when you build for GL 3 or GLES 2 it'll use this by default. You can switch this on via:
state.setUseModelViewAndProjectionUniforms(true); Robert. On Wed, Sep 29, 2010 at 8:21 PM, Peter Wrobrl <[email protected]> wrote: > 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

