Le Sat, 19 Dec 2009 22:06:00 +0100, Danny Lesnik <danny...@walla.co.il> a écrit:

Hi,

I created scene in 3D studio max and set up appropriate light.
When I'm loading this 3DS in the OSG I don't have these lights enabled.

I tried to turn on the lights on these specific node however it did not solved 
the problem.

I tried the following:

cessnaNode = osgDB::readNodeFile("C:\\Lights.3DS");
osg::StateSet *state = cessnaNode->getOrCreateStateSet();
state->setMode( GL_LIGHTING, osg::StateAttribute::PROTECTED | 
osg::StateAttribute::ON );

How can I enable original lights from 3D studio Max?

Thank you!

Cheers,
Danny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=21705#21705





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Hi Danny,

The 3DS file format isn't suited for more than basic meshes... Well I know the 
3DS format supports lights but I'm not sure the reader does. It may be added... 
or not! Please have a look at the FBX plugin, which is far more powerful. I'm 
not sure the reader supports lights, but at least you'll have less limitations.

Cheers,

--
Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to