Hi Daniele,

When using shadow techniques, you have to put all your child that are supposed to be shadowed in separate scene below the shadowed scene, as a sibling to the rest of the scene.
E.G. if you have a hud:

        root
            |
        --------
    |            |
HUD      SHADOW
                   |
               MODELS


This should fix your problem.


cheers
Sebastian

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


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

Reply via email to