previous |  up  | next
 

Shadows   

Author:  DigiBen

Here is an introduction to shadows.  By creating a "shadow matrix", shadows of objects can be projected onto planar surfaces.  We combine the use of the stencil buffer to mask off areas where objects have already been rendered, thus rendering shadows only in open areas of the scene.

Functions Used:  glViewport(), glMatrixMode(), glLoadIdentity(), gluPerspective(), glClear(), gluLookAt(), glBegin(), glEnd(), glLight(), glPushMatrix(), glPopMatrix(), glNormal(), glStencilFunc(), glStencilOp(), glColorMask()


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials