create a shadow volume

Blitz3D Forums/Blitz3D Programming/create a shadow volume

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hello!
i have got a question about stencil shaodwing!
i managed to make a stencil buffer demo, but now i have to make a function which creates shadow volumes on the fly!
how can i do that?
note: the shadow volume should only be created with the mesh edges, and not with the whole polygons of the mesh, because it wont work ;)

should look like this: