With regard to the shadow volumes.

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

With regard to the shadow volumes.

Post by Mel »

The shadow volumes still render incorrectly (there is still a small shadow floating out there, besides the shadow casted), and i've been wondering 2 things.

Do you cap the shadow volume correctly, or do you cap it at all? I don't understand very well that part of the code (i rather the shadow maps) but as far as i can see, the shadow volume generation creates an extruded volume out of all the triangles of a mesh, but the behavior of the stencil buffer makes it that when some polygons are rendered well, others are inverted, a sort of XOR operation with the polygons that have the normals inverted. Could that be why the stencil shadows still have that small flaw and appears a small silouette floatoing out of nowhere? Just wondering.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: With regard to the shadow volumes.

Post by hybrid »

I'm also still puzzled with the stencil shadow generation. But the generation should be largely correct. Only the sillhouette edges are used for extrusion. Capping happens where necessary. You should also look into SVN/trunk, because that's where the changes are developed. Some things are not yet commited, though, and some things are simply not yet working at all.
Post Reply