HELP: Depth map shadows are really grainy if you scale up

   4981   4   1
User Avatar
Member
14 posts
Joined: Oct. 2008
Offline
I m using a spotlight with depthmap shadows(512,512 not transparent) pointing to a plane. If i scale the scene up 100times i get a really bad grain. If the scene is 1 unit i get a really clean image. Is this a bug or what?I ve never seen any 3d program where the depth shadow map quality depends by the scale of the scene. I also set the clipping for the shadow maps to the minimum range necessary to get a better quality map, but it didn t solve the problem at all.
I hope anyone could help…

Thanks
Sergio

Attachments:
grain.jpg (16.0 KB)
grain.hip (157.9 KB)

User Avatar
Member
8690 posts
Joined: July 2007
Online
it seems that shadow bias has affect on this
just scale it up by the same factor
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Shadow bias is in scene units so if you have a huge scene, you need to compensate accordingly.

It's a part of the game when dealing with depth map shadows and the limited precision available.
There's at least one school like the old school!
User Avatar
Member
14 posts
Joined: Oct. 2008
Offline
Thanks a lot…the explanation helped me.

Cheers
Sergio
User Avatar
Member
14 posts
Joined: Oct. 2008
Offline
Thanks a lot…the explanation helped me.

Cheers
Sergio
  • Quick Links