Hello Wojtek,
Just for some context, I am replying to this message of mine:
I tried today to integrate the last version of your ViewDependentShadow
code into our framework (which is still using OSG 2.2). I was curious as
to how hard it would be, and if it would even work at all... The answer
for now is "almost" (more details at the end of the message), but I'd
like to give you some feedback.
[...]
Just FYI, when I ran one of our samples (small scene, about 200 units
square, and one directional light source) with your shadow code using
StandardShadowMap, it worked well. Using any other shadow technique,
though, I had no shadows. The symptom I saw was that the bounding volume
calculation seemed to be completely off, and didn't include any objects,
so the shadow map was empty. Displaying the debug HUD confirmed that
this seems to be what's happening.
I have now transitioned our framework to use OSG 2.6 (which was easy and
in fact what took the most time was waiting for compiles). I just tested
your ViewDependentShadow code with that, and it works well, as expected.
So there seems to be some difference between OSG 2.2 and 2.6 that caused
it not to work when our framework was built against OSG 2.2. I can't
really say what that would be.
Anyways, not really your problem, but I just wanted to let you know.
One thing I noticed is that the shadow pass in ViewDependentShadow
doesn't seem to use textures at all. In particular, we use textures with
alpha a lot to represent visually complex objects as simple planes in
low LODs, and with your shadow shaders, those objects have incorrect
shadows (the parts that are alpha'd out in the texture still cast a
shadow). The osgShadow::ShadowMap shader handles this correctly.
Hopefully an easy fix.
Thanks again for the great submission. I really hope Robert can review
this quickly so more can test it out.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org