Shadows - Please help

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
MattyBoy
Posts: 19
Joined: Fri Oct 24, 2003 3:07 pm

Shadows - Please help

Post by MattyBoy »

I am starting to use Stencil shadows. They seem to be working good for me. BUT, they are displaying thru things. EX: If I have an overhead light with an object on a table, the shadow is displayed on the table AND the floor. Has anyone been able to fix this. I could fix this if someone could help me understand stencil shadows better. I can't figure out how the engine knows which nodes to display the shadow onto. Is this determined in the CShadowVolumeSceneNode?
MattyBoy
Posts: 19
Joined: Fri Oct 24, 2003 3:07 pm

Post by MattyBoy »

I did figure out that when using addShadowVolumeSceneNode, if you set the zfailmethod = true and infinity to a smaller value like 0.5f, it clips the shadow volume which you could then tune to keep it from displaying to far. FYI
Post Reply