Hello, I'm using MinimalShadowMap in an application and I would like to display objects with their specular value. But whenever I use a sub class of StandardShadowMap my objects appear totally "matte finish". If I use ShadowMap my objects are well rendered with specular so the problem comes from MinimapShadowMap I guess. I looked in the code but wasn't able to find anything that could solve my problem. Is there something I'm missing?
Here is my code for light parameters and shadow : Code: //light _light->setAmbient(osg::Vec4(0.35, 0.35, 0.35, 1.0f)); _light->setDiffuse(osg::Vec4(0.65, 0.65, 0.65, 1.0f)); _light->setSpecular(osg::Vec4(1.0f,1.0f,1.0f,1.0f)); _light->setPosition(osg::Vec4(30, 30, 170, 1)); //shadows osg::ref_ptr<osgShadow::MinimalShadowMap> sm = new osgShadow::MinimalShadowMap(); sm->setTextureSize(osg::Vec2s(2048, 2048)); sm->setLight(_light); _sceneRoot->setShadowTechnique(sm.get()); I'm using Windows 7 pro 32 bits, with an ATI X1950XT card and the lastest drivers. I got the same result using osg 2.8.3 or 2.9.7. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35998#35998 Attachments: http://forum.openscenegraph.org//files/specular_nospecular_480.jpg _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

