Hi,

I would like to have two separate osgShadow::ShadowedScenes active in the same view. For example, I'd like to have a box casting a shadow from light 0 and a sphere casting a shadow from light 1. They don't need to cast the shadow on the same object. They can be completely independent branches of the scene graph.

I have tried to implement this and what happens is that only one shadowed scene is shadowed (whichever one I add first).

From other posts and reading the source I understand that ViewDependentShadowTechniques store view data keyed on the cull visitor, which there is only one of per view, meaning you can only have one ViewDependentShadowTechnique per view. Is that correct?

I am using ShadowMap and SoftShadowMap. These are not ViewDependentShadowTechniques so I should be able to have more than one per view, correct?

Thanks for any suggestions!

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

Reply via email to