Daniel,
Frankly, I have never thought about such usage. I must admit that LispSM
was not prepared for such scenario. All ViewDependentShadowTechniques
(LispSM included) make assumption that there is one technique per View. I
suppose that even if you use the same ShadowTechnique object but create two
parental paths it will work like there were two independent instances
rivalling for the same resources (shadow map /shadow cam view & projection
matrices/ texgen). So it will not work either.
I am not sure if this is possible with your app but you may solve the
problem by adding separate slave cameras (like HUD cams) for each extra
ShadowedScene. But it will only work with extra slave or extra view. Nesting
RTT camera in graph will not be enough. Each ViewDependentTechnique (and
derived classes) use ptr to CullVisitor to identify View and create separate
set of resources for this view. Graph nested cams use the same visitor as
their parent View so it will be impossible to identify which cam is actually
rendering and conflicts will be still present.
Cheers,
Wojtek Lewandowski
--------------------------------------------------
From: "Daniel Lazaroff" <[email protected]>
Sent: Tuesday, July 21, 2009 6:23 PM
To: <[email protected]>
Subject: [osg-users] osgShadow::ShadowedScene + multiple parental node paths
Hi guys,
I have been using the LSPSM technique with great visual results so far,
but I seem to be having an issue with the osgShadow::ShadowedScene node
and multiple parental node paths.
If the ShadowedScene node is deep into my scene graph and has a single
getParentalNodePaths() there are no problems. But once I have more than
one, the shadowing seems to be gone in the simplest of sg designs.
Probably there is a simple explanation or I am missing an important point,
thanks for any response !
Cheers,
Daniel
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15184#15184
_______________________________________________
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