This is my first attempt at making a simple shadow on a plane. (Also, it is one of my first programs using GLX instead of SDL or GLUT.)
These are the rendering steps:
1. Draw the ground plane normally.
2. Draw the ground plane again into the stencil buffer, so that the following shadow doesn't extend over the limits of this plane.
3. Draw the model, scaled with y=0 (so it's flat) and moved to the plane, with a black color, alpha blending (so the ground texture is still visible a bit), with special stencil operations (to avoid double blending) and no depth testing. This is the shadow.
4. Draw the model normally.
At the resolution seen in the video (640x480), my graphics card, an NVidia GeForce GTS 450, renders 1000 frames in about 0.1 seconds, reaching almost 10000 FPS :^]
Computers are awesome and OpenGL is fun!
@Edange I don't think the method used in my program is either one of them, but I'm not sure.
Benedek93 1 month ago in playlist Uploaded videos
Shadow map, Shadow volume?
Edange 1 month ago
@Danny77uk Thanks :-)
Benedek93 8 months ago
Impressive
Danny77uk 8 months ago