Perspective Shadow Maps Marc Stamminger REVESINRIA SophiaAntipolis France

  • Slides: 26
Download presentation
Perspective Shadow Maps Marc Stamminger REVES/INRIA, Sophia-Antipolis, France now at: Bauhaus-Universität, Weimar, Germany George

Perspective Shadow Maps Marc Stamminger REVES/INRIA, Sophia-Antipolis, France now at: Bauhaus-Universität, Weimar, Germany George Drettakis REVES/INRIA, Sophia-Antipolis, France

Generate shadow n Kevin Weiler and Peter Atherton, Siggraph ‘ 1977 – Hidden Surface

Generate shadow n Kevin Weiler and Peter Atherton, Siggraph ‘ 1977 – Hidden Surface Removal Using Polygon Area Sorting n Franklin C. , Siggraph ‘ 1977 – Shadow Algorithms for Computer Graphics

shadow maps n Williams, Siggraph ‘ 1978 – render scene from light source –

shadow maps n Williams, Siggraph ‘ 1978 – render scene from light source – shadowing by depth comparison

Adaptive shadow maps n T. Lokovic E. Vearch , Siggraph ‘ 2000 – Deep

Adaptive shadow maps n T. Lokovic E. Vearch , Siggraph ‘ 2000 – Deep Shadow Maps n Randima F. Sebastian F. Kavita B. , Siggraph ‘ 2001 – Adaptive Shadow Maps

shadow map aliasing n prone to aliasing when zooming into shadow boundaries single shadow

shadow map aliasing n prone to aliasing when zooming into shadow boundaries single shadow map pixel

shadow map aliasing n perspective aliasing parallel light aliased okay

shadow map aliasing n perspective aliasing parallel light aliased okay

shadow map aliasing perspective aliasing oversampled – smooth transition aliased n

shadow map aliasing perspective aliasing oversampled – smooth transition aliased n

shadow map aliasing n projection aliasing parallel light

shadow map aliasing n projection aliasing parallel light

shadow map aliasing projection aliasing oversampled – very local aliased n

shadow map aliasing projection aliasing oversampled – very local aliased n

post-perspective world space perspective transformation

post-perspective world space perspective transformation

perspective shadow map standard shadow map n perspective shadow map image n

perspective shadow map standard shadow map n perspective shadow map image n

perspective shadow map standard shadow map oversampled n aliased n perspective shadow map

perspective shadow map standard shadow map oversampled n aliased n perspective shadow map

perspective shadow map in post-perspective space n just another shadow map projection n reduces

perspective shadow map in post-perspective space n just another shadow map projection n reduces perspective aliasing n regeneration per frame necessary n

light source transformation n parallel light becomes point light

light source transformation n parallel light becomes point light

post-perspective world space parallel light transformation

post-perspective world space parallel light transformation

post-perspective world space point light transformation

post-perspective world space point light transformation

best case: – parallel light in post-perspective space – no new perspective distortion post-perspective

best case: – parallel light in post-perspective space – no new perspective distortion post-perspective n world space discussion

non-optimal case: – point light close to frustum n worst case: – becomes uniform

non-optimal case: – point light close to frustum n worst case: – becomes uniform shadow map post-perspective n world space discussion

near plane selection n near plane as far as possible

near plane selection n near plane as far as possible

near plane selection n automatic selection: reading back depth buffer

near plane selection n automatic selection: reading back depth buffer

shadows from behind n virtually move camera backwards

shadows from behind n virtually move camera backwards

shadow map window n geometric method to include all necessary objects – details in

shadow map window n geometric method to include all necessary objects – details in the paper

results

results

results n first implementation on an Xbox game developer kit courtesy of Thatcher Ulrich

results n first implementation on an Xbox game developer kit courtesy of Thatcher Ulrich

conclusion n perspective shadow maps – shadow map in post-perspective space – just another

conclusion n perspective shadow maps – shadow map in post-perspective space – just another shadow map matrix – non-uniform shadow map resolution – needs recomputation per frame – minimal overhead for dynamic scenes

thank you

thank you