stencil shadows

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Percival
Gnoblar
Posts: 5
Joined: Wed May 18, 2005 12:10 pm

stencil shadows

Post by Percival »

Sometimes when I'm using stencil shadows, some of the shadows start to flicker when moving the camera (it depends on the angle between the object and the light to see such efect). Any thoughts on that? How do I prevent such anomalies?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

The stencil volume is probably nearly coplanar with the geometry. Try to avoid situations where this happens over a large surface - it tends to happen more with directional than point lights, just position / angle your lights slightly differently.