[osg-users] Still problems turning off the light
David Callu
ledocc at gmail.com
Fri Sep 28 08:10:38 PDT 2007
Hi philipp
try to do
getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF |
osg::StateAttribute::OVERRIDE);
2007/9/28, Philipp Siemoleit <philipp.siemoleit at not.lfk.eads.net>:
>
> 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070928/a1cfbfd8/attachment-0003.htm>
More information about the osg-users
mailing list