The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Farabi on February 26, 2012, 06:17:37 AM

Title: Shadow Volume
Post by: Farabi on February 26, 2012, 06:17:37 AM
Im trying to create a shadow volume from extended line from each vertex. But I dont know how to draw the shadow form it. Nehe OpenGL example is very fast, but unfortunately I cant understand it. Anyone know how to draw the shadow from the extended line? The extended light is the white line you see here.

(http://omploader.org/vY3ZyMQ/untitled.PNG)

PS: I tried to use Physic engine for this, but it much too slow since my model contain too much vertex, but that kind of vertex count should be a standard for current realtime technology.
Title: Re: Shadow Volume
Post by: Farabi on February 26, 2012, 09:04:56 AM
Sorry for my lack of english. I mean, how to determine which vertex I need to draw to. I guess for creating the shadow I need to modify the texture on it. Unfortunately I cannot see the Stencil buffer so I dont know wheter is it right or wrong, Im only able to see the depth texture, but retrieving depth texture for the shadow is slow.