After some investigations I figured that the fixed pipeline functionality
wasn't used and I came across this code that seems to explicitly disable that
regardless of OpenGL version (I'm running 2)
OSGRenderer.cpp lines 210
Code:
for(osgViewer::Viewer::Windows::iterator itr = windows.begin();
itr != windows.end(); ++itr)
{
(*itr)->getState()->setUseModelViewAndProjectionUniforms(false);
(*itr)->getState()->setUseVertexAttributeAliasing(false);
(*itr)->getState()->setShaderCompositionEnabled(
false); // TODO: check if we need it ???
}
Removing these lines fixes the problem for me, but I want to make sure it will
work for other versions (OpenGL 3) as well. As far as I understand and could
see in the OSG code these settings are already applied correctly when setting
up a View in OSG and none of these are necessary?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76670#76670
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org