[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.

[Patch] Stencil shadows artifacts

Postby 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-request/26/disable-mcguire-method-when-such-dark-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 1012 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 1012 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 1012 times
User avatar
Eugene
OGRE Team Member
OGRE Team Member
 
Posts: 181
Kudos: 36
Joined: 24 Mar 2008
Location: Odessa, Ukraine

Re: [Patch] Stencil shadows artifacts

Postby Eugene » Thu Nov 15, 2012 3:36 pm

Hello? Anybody home?
User avatar
Eugene
OGRE Team Member
OGRE Team Member
 
Posts: 181
Kudos: 36
Joined: 24 Mar 2008
Location: Odessa, Ukraine

Re: [Patch] Stencil shadows artifacts

Postby Wolfmanfx » Thu Nov 15, 2012 4:10 pm

Sorry planned todo it yesterday :) had to take a quick look on it - its merged.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
 
Posts: 1525
Kudos: 107
Joined: 03 Feb 2006
Location: Austria - Leoben


Return to Developer talk

Who is online

Users browsing this forum: No registered users and 2 guests