[osg-users] shadows and LOD scale

Robert Osfield robert.osfield at gmail.com
Fri Oct 19 11:35:29 PDT 2007


On 10/19/07, Terry Welsh <mogumbo at gmail.com> wrote:
> Hi Robert,
> My own PSSM code and osgshadow both exhibit this problem.  The code
> you wrote that makes shadow cameras measure LOD distances from the
> main camera's position works fine... until you introduce a LOD scale
> on the main camera.  The shadow cameras keep using a LOD scale of 1.0
> instead of using the LOD scale that you set on the main camera.
>
> I am able to work around the problem by explicitly setting the LOD
> scale on all of my shadow cameras, but this won't work for people
> using osgshadow unless they are given access to all of its shadow
> cameras.

OK I understand better where you are coming from now.  I don't have a
solution though :-)

Perhaps the osgShadow::ShadowTechniques could check the LOD scale and
adjust things accordingly.

Robert.



More information about the osg-users mailing list