


































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































































! Purely image-based technique ! Works with any rasterizable geometry !
! Silhouette based techniques such as smoothies andpenumbra wedges ! Silhouette detection robustness issues ! Do not work with alpha-tested geometry
! PCF (Percentage Closer Filtering) ! VSM (Variance Shadow Maps) ! CSM (Convolution Shadow Maps) ! ESM (Exponential Shadow Maps) !
! PCSS (Percentage Closer Soft Shadows) ! PCSS + VSM/CSM ! Backprojection
Percentage Closer Filtering (PCF) !
! Filter the binary results in a given kernel !
! NVIDIA and recent AMD GPUs implement 2x2 PCF in one fetch ! Using same sample locations and weights as for bilinear filtering
Texture2D
!
! Trades banding for noise regular sampling irregular sampling
! Bias = constant bias + slope-based bias ! Issue: huge depth biases may be required for large PCF kernels
z d depth bias should increase Ground plane False occlusion ( z < d )
Backfaces and Large PCF kernels!
! Not due to FP precision or shadow map resolution ! But reverse of the surface acne issue
! Average( (d < z) ) != (Average( z ) < d) ! Filtering the depth buffer would smooth theheightfield of the shadow map ! Does not generate soft shadows ! May introduce artifacts !
! Goal: blurring the shadow map to generate realisticsoft shadows
Consider depth values in the filter kernel as a depthdistribution [Donnelly06] [Lauritzen07] ! Approximate the depth values in the kernel by aGaussian distribution of mean μ and variance σ 2 ! σ 2 = E(z 2 ) – E(z) 2 ! μ = E(z) ! Probability of being lit ! Using Chebyshev’s inequality ! P(d < z) <= max( σ 2
σ 2
2 ), (d < μ
! E(X) = average of X in filter kernel ! So the VSM (z, z^2) can be prefiltered ! Can also be rendered using MSAA + resolve
μ d σ 2 = E(z 2 ) – E(z) 2 μ = E(z) ! Self-shadowing can be handled simply by clamping σ 2 to some small MinVariance parameter
! Filterable format on all DX10-class graphic hardware ! Can also use FP16 [Donnelly06] !
2
!
! Can use an orthographic projection ! z = mul(wPos, mObjectToLightOrtho).z !
Images with and without plane rendered in VSM ! If receivers are not in the VSM, will blur the object texels withz = MAX_Z
missing occlusion ! CSMs and ESMs also have this limitation ! Shadows look bad when blurring shadow map without everythingrendered into them VSM VSM