Hi Sumit,
mayb you have to update the light direction vector instead of the light
position? I think the LISP shadow ignores light position and only uses light
direction.
Cheers,
Martin
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39385#39385
Hi Summit,
Your problems suggest that the light casting shaodws is not found during
cull traversal.
See debug method:
const osg::Light* StandardShadowMap::ViewData::selectLight ( osg::Vec4
lightPos, osg::Vec3 lightDir )
This it the place in he code where light passed to technique is
Hi Wojtek,
Thanks a lot for your pointer. I will see to it.
Cheers
Sumit
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Wojciech
Lewandowski
Sent: Monday, May 16, 2011 3:44 PM
To:
While working with shadow I stumbled across the problem. I am using
LightSpacePerspectiveShadowMapDB. If am passing the light from the viewer to
minimalshadowmap(base class of LightSpacePerspectiveShadowMapDB), then the
shadow doesn't works. If I don't intitialize it with the viewer's light(or
4 matches
Mail list logo