[osg-users] ShadowMap problem...

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Tue Nov 10 11:31:18 PST 2009


Hi Wyatt,

> Any suggestions? 

I haven't tried your code, but I don't see you calling 
ShadowMap::setLight() anywhere... Try to add this once your light source 
is initialized:

sm->setLight(ls->getLight());

Other than that, at first glance your code seems OK.

Hope this helps,

J-S
-- 
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com
                                http://www.cm-labs.com/
                         http://whitestar02.webhop.org/


More information about the osg-users mailing list