Ben,

Looks like back projection issue. If your light is spot light with cone < 180 
deg then it could be fixed by one of the tricks used to clip back projected 
textures (additional clip plane or special 1D texture). You should find a lot 
of stuff in the web that explain texgen projections and related issues.
 
But if your light is omnidirectional I am afraid none of the shadow mapping 
algorithms in osgShadow will work. They may do if omnidirectional light could 
be approximated by spot light for this particular view/frame. 

But in general case omnidirectional light requires more than one shadow map. 
And your picture  looks like such situation where one shadow map does not 
suffice.  

Cheers,
Wojtek



  ----- Original Message ----- 
  From: Ben Axelrod 
  To: [email protected] 
  Sent: Friday, February 13, 2009 5:08 PM
  Subject: Re: [osg-users] inverse shadows


  *ping*

   

  Sorry for the repost, but there has not been a response on this in several 
days.

   

  I am seeing some strange behavior with the ShadowMap.  The attached images 
show a white sphere which is at the same location as the only light in the 
scene.  It is between an arrow, and a cube.  The shadow on the arrow gets 
back-cast to the cube, and even shows up on the back of the cube.  

   

  Is this normal?  How can this behavior be fixed?  I am using OSG version 2.6.

   

  Thanks,

  -Ben



------------------------------------------------------------------------------


  _______________________________________________
  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