Hi Peter,

I don't know about your other questions about the GL 3 context, but I can answer this since I've been looking at it recently.

How do I get these default osg_ Uniforms into the StateSet ? The only
place where I find code for creaating them is osgUtil::SceneView, which
is marked as deprecated.

See the osgvertexattributes example, there you will see that you need to do:

  context->getState()->setUseModelViewAndProjectionUniforms(true);

once you've created your context. You'll probably also need

  context->getState()->setUseVertexAttributeAliasing(true);

Though I'm not sure exactly what it does.

Search in the OSG sources for getUseModelViewAndProjectionUniforms() and getUseVertexAttributeAliasing() and you'll see where they are used to create and update the uniforms / variables.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                    http://whitestar02.dyndns-web.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to