Horde3D

Next-Generation Graphics Engine
It is currently 02.05.2025, 13:55

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: shadow problem
PostPosted: 12.07.2008, 11:22 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
The shadow of my character doesn't start at it's feet but a bit higher which produces this odd effect.
It seems like the shadow is cut off at his knees. I've lowered the character to stand a bit in the ground to show he's not flying above it.

Image

Is there a way to fix this?


Top
 Profile  
Reply with quote  
 Post subject: Re: shadow problem
PostPosted: 12.07.2008, 12:51 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
This is a common shadow mapping phonomenon which is called peter-panning. It is the result of a too high shadow bias. On the other hand, if you choose the shadow bias too low you get surface acne (artefacts on the model). Finding the right bias can sometimes cause you headaches and often it is not possible to find the perfect one. This problem is not specific to Horde but to shadow mapping in general. CG movie studios often spend days just tweaking the bias for each shot.


Top
 Profile  
Reply with quote  
 Post subject: Re: shadow problem
PostPosted: 12.07.2008, 13:14 
Offline

Joined: 10.04.2008, 09:13
Posts: 86
Thanks, I managed to get it right setting the LightNodeParams::ShadowMapBias to 0.001, the default (0.005) was to high for this setup.

Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 59 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group