Top Banner
Image-Based Proxy Accumulation for Real-Time Soft Global Illumination Peter-Pike Sloan, Naga K. Govindaraju, Derek Nowrouzezahrai * , John Snyder Microsoft * now at the University of Toronto
42

Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Dec 31, 2015

Download

Documents

arsenio-carter

Image-Based Proxy Accumulation for Real-Time Soft Global Illumination. Peter-Pike Sloan, Naga K. Govindaraju, Derek Nowrouzezahrai * , John Snyder Microsoft * now at the University of Toronto. Goal: Soft Global Illumination in Dynamic Scenes. soft shadows. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Peter-Pike Sloan, Naga K. Govindaraju, Derek Nowrouzezahrai*, John Snyder

Microsoft*now at the University of Toronto

Page 2: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

• soft shadows

Goal: Soft Global Illumination in Dynamic Scenes

Page 3: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Goal: Soft Global Illumination in Dynamic Scenes

• soft shadows• diffuse (indirect)

inter-reflections

Page 4: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Previous Work in Fast Shadow Rendering

Name Reference Lighting Constraints

shadow buffer/vol. [Williams78],… point -

accum. buffer [Segal92],… small area many passes

PRT (SH) [Sloan02],… low-freq static

PRT (all-freq) [Ng03],… all-freq static, diffuse

PRT (dynamic) [James03,05] low-freq precomp. sequences

LDPRT [Sloan05] low-freq local effects

ambient occlusion [Bunnel04],… DC no casting

shadow fields [Zhou05] low-freq few, rigid objs

SHEXP [Ren06] low-freq many, deform objs

Page 5: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Most Relevant Work

• soft global illumination from large-area lights• dynamic shading, motion not precomputed

Prev. Technique Our Improvement

SHEXP [Ren06] indirect lighting, simpler & faster (via splatting)

AO [Shanmugam07] cast shadows (via SH), indirect lighting, lower sampling rate

PRT DS + IR [Iwasaki07] faster, better sampling (screen space)

Radiance Transfer Field [Liu07] faster, better sampling (screen space)

Page 6: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

SHEXP vs. Ambient Occlusion

SHEXP

ray traced

ambient occlusion[Bunnell04]

Page 7: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

• Approximate blockers with spheres– accumulate over large blockers, not light directions– symmetry simplifies calculation

SHEXP Review

Page 8: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

• Approximate blockers with spheres– accumulate over large blockers, not light directions– symmetry simplifies calculation

• Represent low-frequency visibility/lighting in SH

SHEXP Review

Page 9: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

• Approximate blockers with spheres– accumulate over large blockers, not light directions– symmetry simplifies calculation

• Represent low-frequency visibility/lighting in SH

• For each receiver point p– accumulate visibility logarithm over blocker spheres– exponentiate– shade

SHEXP Review

Page 10: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

SHEXP Problems• Shading computed per-vertex• Visibility sampling rate coupled to shading• Receiver clustering/sphere hierarchies needed• Looping over blocker spheres bad for SIMD

vertex-based: 30fps60767 vertices

image-based: 63fps256256 receiver buffer

Page 11: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Our Approach

• Use feed-forward rendering model– “splat” logs by rendering spheres– loop implicitly via primitive stream– sample in screen space

• Exploit softness of GI effects– render into a subsampled buffer– upsample using bi-lateral filter– decouple visibility sampling from shading

Page 12: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Sphere of Influence

p close to blocker = lots of shadowing

p

Page 13: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Sphere of Influence

p far from blocker = negligible shadowing

p

Page 14: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Sphere of Influence

rule of thumb for 4th order SH: expansion factor = 15

Page 15: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Shrinking the Sphere of Influence

78 fps82 fps66 FPS

= 15 = 10clamping no clamping

Page 16: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 17: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 18: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 19: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 20: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 21: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Splatting Proxies

Page 22: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Upsampling

0

1

0

1

0

1

Page 23: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Bi-Lateral Upsampling

Page 24: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Bi-Lateral Upsampling

0

1

wb

i

Page 25: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Bi-Lateral Upsampling

0

1

0

1

wb

i

ip

z

i zzw

1

Page 26: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Bi-Lateral Upsampling

0

1

0

1

0

1

32ip

N

iNNw

wb

i

ip

z

i zzw

1

Page 27: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Bi-Lateral Upsampling

middle pixel

left pixel

right pixel

Page 28: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Comparison Images

Page 29: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Comparison Images

Page 30: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Indirect Lighting

• Lighting reflected from proxy onto receiver

• Assumptions:– distant lighting L

L

Page 31: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Indirect Lighting

• Lighting reflected from proxy onto receiver

• Assumptions:– distant lighting– diffuse/unshadowed proxy

Page 32: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Indirect Lighting

• Lighting reflected from proxy onto receiver

• Assumptions:– distant lighting– diffuse/unshadowed proxy– constant emission over proxy

• averaged over visible disk

• Issues:– average radiance?– accumulation?– overlap?

Page 33: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Averaging Indirect Radiance

• receiver near proxy sample single point

Page 34: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Averaging Indirect Radiance

• receiver near proxy sample single point• receiver far from proxy cosine weighting

Page 35: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Averaging Indirect Radiance

• receiver near proxy sample single point• receiver far from proxy cosine weighting• general case – closed form for D– approximate D via polynomials in sin()

– Single quadratic SH evaluation in

0

0.2

0.4

0.6

0.8

1

1.2

q

d

)(sin dDL

d

Page 36: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Indirect Lighting

• Accumulation– splat with =10

• Overlap– prevent unbounded accumulation– normalize by:

overlap) g(neglectin angle solid

overlap) (including angle solid

Page 37: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Pipelineshadowed

shadowed + indirect

66fps

48fps

Page 38: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Video: Fight Scene

63 FPS

Page 39: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Video: Acrobats

55 FPS

Page 40: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Limitations

• low-frequency visibility & lighting• distant lighting• approximate indirect lighting– single bounce– gather: radiance over proxies unshadowed– scatter: occlusion between proxies neglected

• sampling not adaptive

Page 41: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Conclusions

• simpler, faster, better than SHEXP• includes approximate indirect lighting• future work:– adaptive sampling – gradient based reconstruction– more accurate (but still fast!) indirect lighting

Page 42: Image-Based Proxy Accumulation for Real-Time Soft Global Illumination

Thanks!