[osg-users] ShadowMap Question
Andreas Goebel
a-goebel at gmx.de
Sat Nov 3 07:47:49 PDT 2007
Hi,
after applying Mihai´s Fix for ShadowMap (thank you!) I am able to use
ShadowMap in my program.
There are two issues:
- triangles only cast a shadow when their normal is directed towards the
light. While this is, of course, the desired behaviour for "real"
models, it is not so nice when just displaying a triangle. How can I
make triangles cast shadows regardless how they are directed?
- I get the "artifact" that dirties surfaces because of self-shadowing.
An older post said to change the polygon-offset. I see that there is a
state attribute for that, is that meant? And in which way could I
experiment with that?
Thanks for your help,
Andreas
P.S.: When I first tried ShadowMap with Mihai's fix, everything was
shadowed. After some thought I found out that I had decorated my light
with a small sphere, that cast shadow on everything ...
More information about the osg-users
mailing list