I Peter,
PSSM is probably the best choice for large scene. PSSM technique have been fixed in osg 2.9.9 or 2.9.10 for minor bug. If you didn't see shadow in your scene with this technique, this probably a bug in your code. Take a look to osgshadow example to know how use it. You have to run "osgshadow --pssm" to see pssm in action. HTH David Callu 2011/1/3 Peter Amstutz <[email protected]> > Hello all, > > I am trying to determine the right approach to apply shadows to a large > scene. My test scene is 2k x 2k, but I need to support larger terrains > as well. The scene consists of static geometry (ordinary osg::Geodes) > and animated dynamic entities. I have a single directional light as the > "sun". I'm using osg 2.8.3 with a Radeon 3400 on Windows 7 64 bit. > > I've attached some screenshots. First is a view with no shadows for > reference. > > I tried osgShadow::ShadowMap as that seems to be most recommended. This > "works" but unfortunately the resolution of the depth map is far too low > relative to the terrain size, resulting in numerous artifacts (see > attachment). Increasing the shadow map resolution don't help, as a > 2048x2048 shadow map is still much too small (attached). > > After doing some research, it seems that cascaded shadow maps are a > possible solution to the resolution problem, so I tried > osgShadow::ParallelSplitShadowMap. This doesn't work at all, as seen in > the attached image. > > I've also been looking at doing an offline radiosity render and baking > the results into shadow maps, but that creates its own set of challenges > and doesn't deal with shadows from dynamic entities. > > I'm not sure where to go from here. Are there other shadow techniques > that I should try? Does PSSM work any better in osg 2.9? Should I look > at fixing writing my own cascaded shadow map implementation and/or try > to fix PSSM? Or do something else entirely? > > By the way, the wiki page discussing shadows seems to have last been > updated for osg 2.4, which adds to the confusion: > > http://www.openscenegraph.org/projects/osg/wiki/Support/ProgrammingGuide/osgShadow > > Advice will be very appreciated. Thanks! > > -- > Peter Amstutz > Senior Software Engineer > Technology Solutions Experts > Natick, MA > 02131 > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

