Hi Wojtek,
I was sure you would answer my question :-)
Simplest method I can think of: is modification of osgShadow:: LisPSM
techniques and related to give well defined unique names to rtt cameras
they create. Its maybe not particularly bright idea but its simple and
effective.
I think names like "osgShadow_StandardShadowMapCamera" and
"osg_MinimalDrawBoundsAnalisisCamera" could do the trick...
Heh... Matching by name always strikes me as a hack. :-) It will work of
course. The cameras are actually already named "ShadowCamera" and
"AnalysisCamera".
I thought of something else, perhaps not that much better but a bit more
general: adding the ShadowTechnique as the UserData of the camera(s).
Then if the camera has userdata and the userdata's libraryName matches
osgShadow / ViewDependentShadow then it's a shadow camera. It will work
for all shadow techniques...
I bet if we think about it we could come up with something even better.
But for now it will do. Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org