Hi Wojtek,
Thanks a lot for your pointer. I will see to it.
Cheers
Sumit
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Wojciech
Lewandowski
Sent: Monday, May 16, 2011 3:44 PM
To: [email protected]
Subject: Re: [osg-users] Shadow is not updated with the light
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 compared
with lights active in the scene. If your light is found shadow casting
projection is built. There is no magic in this method. So if it does not
work, it means shadow casting light ptr has changed in the meantime.
Cheers,
Wojtek
-----Oryginalna wiadomość-----
From: Martin Scheffler
Sent: Monday, May 16, 2011 8:32 AM
To: [email protected]
Subject: Re: [osg-users] Shadow is not updated with the light
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
_______________________________________________
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org