[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: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine
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
Good
Good
Screen shot 2012-11-13 at 14.34.27.png (47.71 KiB) Viewed 1252 times
Bad
Bad
Screen shot 2012-11-13 at 14.34.48.png (28.63 KiB) Viewed 1252 times
Mixed
Mixed
Screen shot 2012-11-13 at 14.34.55.png (29.44 KiB) Viewed 1252 times

User avatar
Eugene
OGRE Team Member
OGRE Team Member
Posts: 185
Joined: Mon Mar 24, 2008 4:54 pm
Location: Odessa, Ukraine
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 99
Contact:

Re: [Patch] Stencil shadows artifacts

Post by Wolfmanfx »

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

Post Reply