<div dir="ltr"><div>Hi,</div><div><br></div><div>We are trying to test the shadows using OSG, We have multiple lights, but for now we are playing with only one light, a point source light type. We are some weird effects, the shadows are cut, a mirror scene as shadow behind the light. See the video.</div><div><br></div><div><a href="https://www.youtube.com/watch?v=hyFBX0jGjaw">https://www.youtube.com/watch?v=hyFBX0jGjaw</a></div><div><br></div><div>osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene;<br><br>        shadowedScene->getShadowSettings()->setLightNum(1);<br>     shadowedScene->setReceivesShadowTraversalMask(GetShadowNodeMask());<br>        shadowedScene->setCastsShadowTraversalMask(GetShadowNodeMask());<br>   </div><div><br></div><div>osg::ref_ptr<osgShadow::SoftShadowMap> st = new osgShadow::SoftShadowMap;<br>       st->clearShaderList();<br>     st->setAmbientBias(osg::Vec2(0.5,1.0 - 0.5));</div><div><br>       </div><div>shadowedScene->setShadowTechnique(st.get());<br>
</div><div><br></div><div>view->addChild(shadowedScene);<br>

shadowedScene->addChild(scene);<br><br>  // Set the Scene Data<br> mViewer->setSceneData(view);</div><div><br></div><div>Any points that you may have, might help us.</div><div><br></div><div>Does osgShadow supports multiple lights?<br></div><div><br></div><div>Greetings,</div><div>Catalin<br></div></div>