Hi, 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.
https://www.youtube.com/watch?v=hyFBX0jGjaw osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene; shadowedScene->getShadowSettings()->setLightNum(1); shadowedScene->setReceivesShadowTraversalMask(GetShadowNodeMask()); shadowedScene->setCastsShadowTraversalMask(GetShadowNodeMask()); osg::ref_ptr<osgShadow::SoftShadowMap> st = new osgShadow::SoftShadowMap; st->clearShaderList(); st->setAmbientBias(osg::Vec2(0.5,1.0 - 0.5)); shadowedScene->setShadowTechnique(st.get()); view->addChild(shadowedScene); shadowedScene->addChild(scene); // Set the Scene Data mViewer->setSceneData(view); Any points that you may have, might help us. Does osgShadow supports multiple lights? Greetings, Catalin -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/mailman.70892.1582030546.7169.osg-users-openscenegraph.org%40lists.openscenegraph.org.
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/mailman.70892.1582030546.7169.osg-users-openscenegraph.org%40lists.openscenegraph.org.