Re: [osg-users] Shadow is not updated with the light

2011-05-16 Thread Martin Scheffler
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

Re: [osg-users] Shadow is not updated with the light

2011-05-16 Thread Wojciech Lewandowski
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

Re: [osg-users] Shadow is not updated with the light

2011-05-16 Thread Sumit Pandey
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:

[osg-users] Shadow is not updated with the light

2011-05-15 Thread Sumit Pandey
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