Hi, I've got problems using shadows, I've followed the standard examples as following:
// create the shadowed scene m_OSG_Default_3D_Scene = new osgShadow::ShadowedScene; // create and setup the shadow technique m_OSG_ShadowMap = new osgShadow::ShadowMap; m_OSG_ShadowMap->setLight( m_OSG_Default_3D_Scene_SunLight_Source.get() ); m_OSG_ShadowMap->setTextureSize( osg::Vec2s(2048, 2048) ); m_OSG_ShadowMap->setTextureUnit( 1 ); // add the shadowed scene to the main camera m_OSG_Default_3D_Camera->addChild( m_OSG_Default_3D_Scene.get() ); The result does not behave as expected, Shadows appears in the wrong position, please refer to the attached images to look at the result. I'm not able to find more info about shadows in OSG, documentation is very poor and tutorials too much simple. Does anybody know why these artefacts appears? thanks Thank you! Roberto ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40852#40852 Attachments: http://forum.openscenegraph.org//files/24_06_2011_14_01_16_982.png http://forum.openscenegraph.org//files/24_06_2011_14_00_45_801.png _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org