Hey everyone.
My skeleton model has a gap between mesh and ground plane. Any ideas why this might happen?
greetings
Hey everyone.
My skeleton model has a gap between mesh and ground plane. Any ideas why this might happen?
This is a shadow map artifact referred to as “peter panning”. Thus called as it looks like the object is detached from its shadow, as Peter Pan can be. It’s caused by having the bias setting on the light set too high.
Reducing the bias too much can cause another shadow map artifact called “shadow acne”, which will appear as lines, dots, triangles, or a general greying of the areas that should be in light. The solution to that is to increase the bias or normal bias.
Important Note: There may be no one set of bias settings that avoids both shadow acne and peter panning at the same time, but it is entirely possible to have both artifacts. Generally you just have to pick the setting that is the least offensive to you. Also note that the shadow quality, resolution, and light’s range can change what bias settings are “best”. It’s a never ending war that all real time engines face.