Re: [Plib-users] plib and shadows
Brought to you by:
sjbaker
From: <Rol...@t-...> - 2002-06-11 21:06:55
|
On Monday 10 June 2002 06:58, Steve Baker wrote: > Rolf Jakob wrote: > > 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. > > Yes - that's not a bad approach - but really all shadow algorithms come > with some ugly compromises. Many of the ones that are currently seen in > games only work because the light source is close to the camera and the > scene is quite restricted in size. Yes, I know. Compared to POVRAY's output it's lame, but it should give my scene a more natural look. > > 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. > > Well, you can place a draw callback on the top level SGGL node and have > it reset the parameters however you like. Emm, what do you mean by top level SGGL ? The first leaf in the tree ? Thanks, Rolf -- Rolf Jakob at home (rj...@du...) WWW : http://www.franken.de/users/duffy1/rjakob (KDE-Utils and CCS) |