Hi. 

I have some models in a scene rendering perfectly. But when I add a specific 
model everything becomes dark. 

All models are child of a single  osg::Group. I guess it´s a lightning problem 
with that model, so i tried to turn lights off for that model (with no luck) 
with:


osg::StateSet* ss = model->getOrCreateStateSet();
ss->setMode(GL_LIGHTING, osg::StateAttribute::OVERRIDE | 
osg::StateAttribute::OFF);
ss->setMode(GL_LIGHT0, osg::StateAttribute::OVERRIDE | 
osg::StateAttribute::OFF);
ss->setMode(GL_LIGHT1, osg::StateAttribute::OVERRIDE | 
osg::StateAttribute::OFF);

I don´t have access to the original model, so i cannot modify it. Can someone 
give me a hint of how to correct it?

Thanks in advance !

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to