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

Pierre-Jean Petitprez pierre-jean.petitprez at inria.fr
Thu Apr 28 06:49:12 PDT 2016


Hi Robert,

Sorry for the missing information. I use SoftShadow technique, but 
tested with other techniques and they always produce the same effect.
And indeed I have a second light which is linked to the camera (moves 
with the camera). I totaly forgot this light and I think it does not 
work well with osgShadow which can manage only one shadow caster light.

Cheers,
Pierre-Jean.

Le 28/04/2016 15:40, Robert Osfield a écrit :
> 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.
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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


More information about the osg-users mailing list