Hi. Can the third bug be related to different view projection matrices? My shadow camera uses ortho. Thanks.
2013/10/21 Marcel Pursche <[email protected]> > Hi, > > the shadow on the wall is probably created, because the wall is outside of > the shadow cameras view frustum. How do you setup the wrapping of your > depth texture? You could fix it, if you set the mode to clamp to border and > set the border "color" to your far plane. This way everything that cannot > be seen from your light source will not be shadowed(as in is outside of the > view frustum). > The shadow on your torus looks like a self shadowing problem. You will > always have some errors because of the limited floating point precision. > You should use a small offset in your depth comparison to get rid of this > artifacts. A bit of tweaking will be necessary to get a good value. > The last bug is indeed a bit strange. I'm not sure how it is produced. But > it is view dependent, so it must have to do something with the view matrix > of your main camera. > > Thank you! > > Cheers, > Marcel > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=56910#56910 > > > > > > _______________________________________________ > 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

