Hi, when I use osgShadow, when I put enableShadow=true:
Code:
if(enableShadow)
{
shadowedScene->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene->setCastsShadowTraversalMask(CastsShadowTraversalMask);
osg::ref_ptr<osgShadow::ShadowMap> sm = new osgShadow::ShadowMap;
shadowedScene->setShadowTechnique(sm.get());
}
I can't see anymore my widgets.
I make my widgets with
Code:
camera = windowManager->createParentOrthoCamera();
In windowManager I add box, label, widget etc.
and then
Code:
shadowedScene->addChild(camera);
Why?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36531#36531
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org