screen-space far-field ambient obscurance …wili.cc/research/ffao/hpg13_ffao.pdf1 screen-space...
TRANSCRIPT
![Page 1: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/1.jpg)
SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE
Ville TimonenÅbo Akademi University
High Performance Graphics 201319.7.2013
![Page 2: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/2.jpg)
CONTENTS
1. SSAO and previous approaches
2. Our method
3. Results
4. Left out from the presentation (in paper)
5. Questions
![Page 3: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/3.jpg)
1 AMBIENT OBSCURANCEIs an approximation for global illumination
![Page 4: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/4.jpg)
1 AMBIENT OBSCURANCEDefined as the cosine and falloff weighted hemisphere visibility
![Page 5: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/5.jpg)
1 AMBIENT OBSCURANCEScreen-Space Ambient Obscurance
• General AO solutions quite not real-time ready
• Screen-Space methods work on the depth buffer geometry only
• Constant amount of geometry
• Restricted geometry makes room for optimizations
![Page 6: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/6.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCEThis is a depth map (dark = far, light = near)
A by-process of most graphics pipelines
![Page 7: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/7.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCESo this is what SSAO does:
For the blue point...
Sample the surroundings...
![Page 8: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/8.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCESo this is what SSAO does:
Deproject points to world space and evaluate AO:
![Page 9: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/9.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCETwo components of SSAO
1. Input geometry (i.e. samples of the depth field)
• This is our main contribution, presentation’s topic
2. Obscurance estimator (i.e. how to integrate AO from the samples)
• Our secondary contribution; supports any falloff function, efficient to evaluate and converges to ray traced reference, beyond presentation’s scope
![Page 10: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/10.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCEKey problem of SSAO
Sampling the near fieldis not a problem
But far field easily becomes prohibitively expensive:
Have to seriously undersample
![Page 11: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/11.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCEPrevious 2 approaches:
Direct depth buffer samples easily miss important occluders
![Page 12: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/12.jpg)
1 SCREEN-SPACE AMBIENT OBSCURANCEPrevious 2 approaches:
Mip-mapping flattens the geometry
![Page 13: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/13.jpg)
2 OUR METHOD
![Page 14: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/14.jpg)
We capture points important for AO
2 OUR METHOD
![Page 15: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/15.jpg)
We capture points important for AO2 OUR METHOD
Scans in multiple directions (one direction below)
We find highest “projections” (m0, m1) every n steps, and write them out
Time complexity of this phase is small w.r.t. to full SSAO
![Page 16: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/16.jpg)
Final sample points, hi
2 OUR METHOD
Out of these values, we construct final sample points hi at the intersections
![Page 17: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/17.jpg)
Results2 OUR METHOD
Along each azimuthal sampling direction, results are goodBut banding persists between directions
![Page 18: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/18.jpg)
Averaging the sectors2 OUR METHOD
Instead of sampling along straight lines, we can average m0 and m1 across the azimuthal sector width
For fast averaging, we turn arrays of m0 and m1 into prefix sums
![Page 19: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/19.jpg)
Overview of the 3 phases2 OUR METHOD
This way we get scene points hi that represent the entire sector, and therefore the full depth buffer
![Page 20: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/20.jpg)
3 RESULTS
![Page 21: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/21.jpg)
3 RESULTS
![Page 22: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/22.jpg)
3 RESULTS
Roughly as fast as mipmap samples, but higher quality results and converges to ground truth faster
![Page 23: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/23.jpg)
3 RESULTS1280(+256)x720(+144), 4.6ms/frame, Radeon 7970
![Page 24: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/24.jpg)
4 LEFT OUT FROM THE PRESENTATION
![Page 25: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/25.jpg)
4 LEFT OUT FROM THE PRESENTATION
• The obscurance estimator
• Fixed thickness depth fields
• Multiple levels of detail for the projection intervals
• Interleaved sampling (quick preview next)
• Combining with a near field search (quick preview next)
![Page 26: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/26.jpg)
4 LEFT OUT FROM THE PRESENTATIONPreview: Interleaved sampling
4.6 ms/frame, interleaved ray traced
• Evaluate a subset of sectors per pixel, gather in a selective box filter pass
• Used in the video as well
![Page 27: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/27.jpg)
4 LEFT OUT FROM THE PRESENTATIONPreview: Combining with a near field search
Far field ≥15px (our method)
Near field <15px
Final result
![Page 28: SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE AMBIENT OBSCURANCE Two components of SSAO 1. Input geometry (i.e. samples of the depth](https://reader034.vdocuments.mx/reader034/viewer/2022050521/5fa4c0dc80dc4e5d7f4abd8d/html5/thumbnails/28.jpg)
Or comments...5 QUESTIONS
?Sources available online, under the BSD license
http://wili.cc/research/ffao/