[Plib-users] plib and shadows
Brought to you by:
sjbaker
From: <Rol...@t-...> - 2002-06-10 16:42:03
|
Hi, As a newbie in OpenGL and plib I searched the web for possibilities to have shadows in a scene. I found one simple tutorial for pure OpenGL from a guy at nvidia using the stencil buffer. Now, this requires to draw the scene twice - one for the projection on the ground and one to actually show the scene. It's working fine with an object created using OpenGL directly, but I would like to use modelled scenes from AC3d and benefit from plib's features. Is it possible to make SSG draw the scene with some settings and transformation and stencil buffer, so that the shadows can be calculated ? ssgCullAndDraw() don't seem to work as it's setting up OpenGL the way it needs it to draw it from the eye's point of view. Maybe there are other ways to get shadows with plib ? Thanks in Advance, Rolf -- Rolf Jakob at home (rj...@du...) WWW : http://www.franken.de/users/duffy1/rjakob (KDE-Utils and CCS) |