Re: [Plib-users] plib and shadows
Brought to you by:
sjbaker
From: <Rol...@t-...> - 2002-06-15 18:34:53
|
some additional notes after trying several things : On Thursday 13 June 2002 13:07, I wrote: > Hello, > > I'm still trying to get shadows. That's still true ;-) > I tried two ways : > - use a glMultMatrixf((GLfloat *) floorShadow) in the callback function, > where floorShadow is the projection matrix > - use a setTransform(floorshadow) before calling ssgCullAndFace > > Both don't show a projection, the second shows parts of the scene at a > different place. > My guess is the first is superseded by ssg functions and the second is a > transformation but not a projection. Could that be ? No. The second way should work, there was a problem in the matrix. Meanwhile I get a second copy of the scene rendered and I can transform it however I like. So far so good. Now I try to switch off texturing (works), lighting (works) and replace all colors to a half transparent black. For the latter I added two lines to my callback function : glMaterialfv(GL_FRONT,GL_DIFFUSE,shadowColor); glColor4f(0.0, 0.0, 0.0, 0.5); but both seem to be ignored/overwritten. I think I'm almost there, only this last step is missing. Any hints ? Thanks, Rolf -- Rolf Jakob at home (rj...@du...) WWW : http://www.franken.de/users/duffy1/rjakob (KDE-Utils and CCS) |