[Patch] Stencil shadows artifacts

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Kraków, Poland
x 41

[Patch] Stencil shadows artifacts

Post by Eugene »

Our QA team found problem with stencil shadows. When light source is placed inside the object then shadows sometimes looks good, sometimes bad and sometimes partially good and partially bad as on screenshots

The reason is that when shadow is extruded in opposite directions the shape of dark cap of the shadow volume is very important and McGuire method that simplifies it is unapplicable.

Patch is here https://bitbucket.org/sinbad/ogre/pull- ... k-cap/diff
Screen shot 2012-11-13 at 14.34.27.png
Screen shot 2012-11-13 at 14.34.48.png
Screen shot 2012-11-13 at 14.34.55.png
You do not have the required permissions to view the files attached to this post.
User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Kraków, Poland
x 41

Re: [Patch] Stencil shadows artifacts

Post by Eugene »

Hello? Anybody home?
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 100

Re: [Patch] Stencil shadows artifacts

Post by Wolfmanfx »

Sorry planned todo it yesterday :) had to take a quick look on it - its merged.