[osg-submissions] osgShadow softShadowMap
Bruno Herbelin
bh at aaue.dk
Fri Aug 10 06:49:46 PDT 2007
Hello
I have adapted to osgShadow the soft shadow map technique described in
"Efficient Soft-Edged Shadows Using Pixel Shader Branching" by Yury Uralsky,
Chapter 17 of GPU Gems 2 (Matt Pharr ed. Addison-Wesley).
Here is my code in attachment: basically, it works in the same way as
osgShadow/ShadowMap (core code is copied from it) but implements a specific
GLSL shader for the soft rendering of penumbra.
I have tested it under Linux with a NVidia graphic card, but there should be
no dependency on platform nor on the graphics driver (as far as they support
GLSL 2). Screenshots attached show the current results (frame rate bound to
v-sync, but the shader takes actually not much time).
I think this could be integrated in osg as an extra shadow technique.
Best regards
Bruno
--
Bruno Herbelin Ph.D.
Assistant Professor
Sensorama Laboratory
Aalborg University Esbjerg
Niels bohrs Vej 8, 6700 Esbjerg
+45 79 12 77 26
http://aaue.dk/~bh
http://sensoramalab.aaue.dk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070810/0e70df12/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osg_SoftShadowMap.tgz
Type: application/x-gzip
Size: 6348 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070810/0e70df12/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot_osgSoftShadow1.png
Type: image/png
Size: 333283 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070810/0e70df12/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot_osgSoftShadow2.png
Type: image/png
Size: 605737 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070810/0e70df12/attachment-0003.png
More information about the osg-submissions
mailing list