Hi philipp


try to do
 getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF |
osg::StateAttribute::OVERRIDE);


2007/9/28, Philipp Siemoleit <[EMAIL PROTECTED]>:
>
> Hi,
>
> i try to turn off the light on my scene - without success :(
>
> Here is the example code:
>
> int main(int argc, char* argv[])
> {
>   osgViewer::Viewer v;
>
>   osg::ref_ptr<osg::Node> node =
> osgDB::readNodeFile("bau_Bauernhaus.flt");
>   node->getOrCreateStateSet()->setMode(GL_LIGHTING,
> osg::StateAttribute::OFF);
>   v.setSceneData(node.get());
>   v.setLightingMode(osg::View::NO_LIGHT);
>   v.getCamera()->getOrCreateStateSet()->setMode(GL_LIGHTING,
> osg::StateAttribute::OFF);
>   return v.run();
> }
>
>
>
> What's wrong?
>
> Thanks for answers!
>
> Philipp
>
> _______________________________________________
> 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

Reply via email to