[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.
Post Reply
User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 182
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine

[Patch] Stencil shadows artifacts

Post by Eugene » Tue Nov 13, 2012 1:44 pm

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
Good
Screen shot 2012-11-13 at 14.34.27.png (47.71 KiB) Viewed 1055 times
Screen shot 2012-11-13 at 14.34.48.png
Bad
Screen shot 2012-11-13 at 14.34.48.png (28.63 KiB) Viewed 1055 times
Screen shot 2012-11-13 at 14.34.55.png
Mixed
Screen shot 2012-11-13 at 14.34.55.png (29.44 KiB) Viewed 1055 times
0 x

User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 182
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine

Re: [Patch] Stencil shadows artifacts

Post by Eugene » Thu Nov 15, 2012 3:36 pm

Hello? Anybody home?
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: [Patch] Stencil shadows artifacts

Post by Wolfmanfx » Thu Nov 15, 2012 4:10 pm

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

Post Reply