View Full Version : Shadow
11-20-2007, 05:36 AM
What is the best shadow technique to use for large scale environment? I implement shadow maps but... they just don't do the job well any pointers?
11-20-2007, 05:53 AM
Search for perspective shadow maps.
11-20-2007, 06:26 AM
As a wise person said:
"Friends don't let friends implement perspective shadow maps"
You're much better of using cascaded shadow maps a.k.a. parallell split shadow maps.
11-20-2007, 08:09 AM
stable and scalable implementation of any perspective approach requires lots on not quite obvious work, but the result is quite impressive. The main advantage is that you are still using single shadow access per-fragment and you don't have to handle border situations when softening shadows.
We're totally satisfied using LiSPSM with some trapezoidal tricks.
So many people - so many opinions.
11-20-2007, 11:08 AM
And consider combining these popular yet distinct approaches. Take for example VSM, TSM and PSSM... attorneys at law. VSM for really nice/fast soft shadows and say TSM/PSSM for maximal area projections.
I'm not aware of any single approach that's perfect... they all have some notable shortcomings.
11-20-2007, 12:04 PM
could someone give me google friendly names for these: LiSPSM, VSM, and TSM. I figured out PSSM the others are a mystery to me.
11-20-2007, 01:51 PM
Light Space Perspective Shadow Maps.
Variance Shadow Maps
Trapezoidal Shadow Maps
I would suggest cascaded shadow maps. It works well and is fairly easy to implement. The biggest disadvantage of all these warping schemes is that resolution is not constant. Turn the camera and there's noticable pixel movements along the shadow edges. It can look pretty nasty. With cascaded shadow maps you can solve the problem by aligning each shadow maps movement on the subpixel level so if you turn around and the shadow frustum changes you can adjust it so that the same area on the ground always maps to a single (but possibly different) pixel in the shadow map. This removes all the ants from the shadow edges.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.