The textured 3ds models I'm importing via osgDB::readNodeFile are too
dark. They seem to pick up some of the diffuse lighting, but are not
picking up much of ambient color from the light.
If I adjust the ambient color in
ReaderWriter3DS::ReaderObject::createStateSet():
material->setAmbient(osg::Material::FRONT_AND_BACK,osg::Vec4(0.2f,0.2f,0.2f,alpha));
to
material->setAmbient(osg::Material::FRONT_AND_BACK,osg::Vec4(0.9f,0.9f,0.9f,alpha));
The ambient component of my material gets brighter.
So why is OSG overriding the ambient colors of my model when they are
textured?
I want my textured models to look reasonable when the the scene light is
set to diffuse=1, ambient=0.4. Right now they are too dark compared to
non textured objects.
Thanks,
James
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/