Hi Saravanan,

On 21/09/10 20:04 , Saravanan Sivaprahasam wrote:
> I'm using osgShadow::ShadowedScene to render shadows using shadowmap. The 
> shadows are
> rendered correctly. As my scene graph gets complex i want to add the 
> ShadowedScene as a
> child to another node as shown below
>... 
> As shown above if i add the shadowedScene to scene and set the scene data to 
> scene, the
> shadows are not getting rendered. If i set the sceneData to shadowedScene the 
> shadows
> are rendered correctly. But the scene graph has some other elements such as 
> ODE
> physics, shaders applied to some nodes etc., are getting disabled if i set 
> sceneData to
> shadowedScene.

Are you setting your shadow casting/receiving objects to be children of the 
ShadowedScene
node?  Apart from that it shouldn't matter if the ShadowedScene is set as scene 
data
directly or through one or more intermediate children.  (Which can be useful if 
you want
to have objects that are not affected by shadows, such as skydomes, HUDs, etc).

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to