Hi,

I'm using Visual Studio 2008 with osg 2.8.1. I have vary strange problem with 
with shadows on my scene. On vista all shadows are moved chaoticaly (see 
attached pictures ). However on XP everything is OK and I can see my shadows 
casted by camera lights.

I'm using the following code:

 const int ShadowTraversalMask = 0x2;
osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new 
osgShadow::ShadowedScene;
shadowedScene->setReceivesShadowTraversalMask(ShadowTraversalMask);

shadowedScene->setCastsShadowTraversalMask(ShadowTraversalMask);

osg::ref_ptr<osgShadow::ShadowMap> sm = new osgShadow::ShadowMap;
shadowedScene->setShadowTechnique(sm.get());
int mapres = 4096;
sm->setTextureSize(osg::Vec2s(mapres,mapres));

node->setNodeMask(ShadowTraversalMask);
shadowedScene->addChild(node);

How can I solve this problem on Vista 



Thank you!

Cheers,
Danny

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16496#16496



<<attachment: XP.JPG>>

<<attachment: Vista.jpg>>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to