I am using osgShadow::ShadowMap to create shadows:
shadowedScene = new osgShadow::ShadowedScene;
shadowedScene->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene->setCastsShadowTraversalMask(CastsShadowTraversalMask);
sm = new osgShadow::ShadowMap;
//sm->setLight();
int mapres = 8192;
sm->setTextureSize(osg::Vec2s(mapres,mapres));
shadowedScene->setShadowTechnique(sm.get());
I have aircrafts and an airport.
When I have aircrafts moving shadow is vibrating.
When i remove aircrafts there is no problem.
I have tried every possible shadowing tecniques but couldn't find any solution.