That looks like the problem with boundingBoxVisitor called inside
MinimalShadowMap::ViewData::computeShadowReceiveingCoarseBounds() because it
takes node mask as an input.

Btw I started to suspect that there is an error inside above method. Possibly not involved in your investigation. BoundigBoxVisitor is run with Cast but should rather use Receive mask. It may be deliberate choice but I suspect this raher an error which went unnoticed till now because I usually keep both masks equal.

Cheers,
Wojtek

----- Original Message ----- From: "Jean-Sébastien Guay" <[email protected]>
To: "OpenSceneGraph Users" <[email protected]>
Sent: Friday, March 05, 2010 6:15 PM
Subject: Re: [osg-users] Shadows and negative renderbin?


Hi Wojtek,

MinimalShadowMap::ViewData::computeShadowReceiveingCoarseBounds() is
good place to start looking. Check what are the dimension of returning
volume. Good hunting ;-)

Thanks for the hint. I'll look there. In the mean time I did more testing
and found that even now that I've changed the renderbin to a non-negative
number, the skydome (which I remind you is set to NOT cast NOR receive
shadows) still interferes with shadows. From some angles, when the skydome
is active, the shadows on the crane (our main object) turn all black. If I
disable the skydome then the shadows are correct.

The turning on and off of the skydome is just switching the node mask of
its root node between 0 and (FFFFFFFF & ~CAST & ~RECEIVE) which are
single-bit masks.

So I really think that there is somewhere that's traversing the skydome
where it shouldn't, and setting the mask to 0 makes it really not traverse
it... I'll check.

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

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to