[osg-users] Still problems turning off the light
Philipp Siemoleit
philipp.siemoleit at not.lfk.eads.net
Fri Sep 28 06:03:20 PDT 2007
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
More information about the osg-users
mailing list