[osg-users] osgShadow 3.6.3

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue Feb 18 06:38:35 PST 2020


Hi Catalin,

None of the osgShadow technique support shadows that surround a point light 
source as you have in your scene.  This limitation is due the way that 
projective texturing is used for the shadow map, essentially you are 
limited to FOV from the light source to less than 180.

The only way to remove this limitation is to use multiple shadow maps, such 
as using a cube map for the shadow map.  None of the osgShadow techniques 
support this though so you'd need to implement this yourself.

The osgShadow shadow techniques are also limited to a single light source, 
to enable support for a number of light sources you have to built a 
separate shadow map for each light source.

For you application I would suggest handling spot lights with a single 
shadow map, and point lights that are within the volume as a cubemap, if 
you have directional lights then potentially you could use a single shadow 
map, though it's likely you'd want to make the the shadow map view 
dependent to avoid under sampling when you zoom into local areas.

I'm afraid general purpose shadowing is hard, it's a huge topic, it won't 
be just a case of tweaking bits of an existing implementation.  

Cheers,
Robert.


-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/85c74239-037c-497b-9fe2-cb1285f1bf18%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200218/2ae6d0c7/attachment.html>


More information about the osg-users mailing list