[osg-users] Problem turning off the lights with override
Hello. I try to turn off the lights in my scene using the following code but it fails. group-getOrCreateStateSet()-setMode(GL_LIGHTING, osg::StateAttribute::OFF || osg::StateAttribute::OVERRIDE ); When i use this though, the lights are turned off successfully. group-getOrCreateStateSet()-setMode(GL_LIGHTING, osg::StateAttribute::OFF ); What's wrong with the first one ? group has only 1 child with the default value in lighting mode. thnx. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problem turning off the lights with override
Hello Peterakos: Hello. I try to turn off the lights in my scene using the following code but it fails. group-getOrCreateStateSet()-setMode(GL_LIGHTING, osg::StateAttribute::OFF || osg::StateAttribute::OVERRIDE ); Did you by any chance mean: osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE instead of osg::StateAttribute::OFF || osg::StateAttribute::OVERRIDE :-) cheers Sebastian When i use this though, the lights are turned off successfully. group-getOrCreateStateSet()-setMode(GL_LIGHTING, osg::StateAttribute::OFF ); What's wrong with the first one ? group has only 1 child with the default value in lighting mode. thnx. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org