[osg-users] shadow mapping for point lights with shadow cube maps?

Christian Buchner christian.buchner at gmail.com
Wed Mar 16 07:50:55 PDT 2016


I wonder if anyone here would be able to share some OSG based sample code
demonstrating shadow cube maps for point light sources.

While the osgShadow::ShadowMap class will currently detect point lights and
use a perspective frustum for rendering the shadow map, I believe this does
not currently cast shadows in all directions

Rendering into all 6 faces of a cube map seems quite costly, so I wonder if
there are more efficient ways to do shadow casting in all directions,
say... rendering into two halves of a spherical map for example. Or going
completely crazy... a tetrahedral shadow map requiring 4 projections
instead of 6 for a cube map,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160316/cde5bba3/attachment-0002.htm>

More information about the osg-users mailing list