[osg-users] Shadow projected on the opposite side too

Robert Osfield robert.osfield at gmail.com
Thu Apr 28 06:40:15 PDT 2016


Hi Pierre,

I think there is probably a couple of issues.

You don't say which osgShadow::ShadowTechnique you use, it may well be
you've picked a very simple one that isn't capable of handling this type of
geometry combination.

Second, shadows on back faces should be the same colour as the back face
because essentially there are same thing - a face without any direct
lighting.  The lighting model for you data is clearly not coherent between
the shadow and the back face.  I don't know how you've set up your lighting
but clearly something is amiss here.  Are you using a different light
sources?  Do you have ambient lighting different between the shadow and box
rendering?

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160428/aa461f2b/attachment-0003.htm>


More information about the osg-users mailing list