Hi J-S,
thank you for your answer, and sorry my late response, was without
connection for some time.
I activated the uniforms, but still the uniforms don't get printed
through my update callback.
When I activate these uniforms, does this mean at all that they should
be get in any StateSet of any Node ? I think they should, as otherwise I
couldn't use them, right ?
Does anybody else tell me how I can create and confirm a proper GL3
context ?
Thank you,
Cheers, PP
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org