+ All Categories
Home > Documents > SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE...

SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE …wili.cc/research/ffao/HPG13_FFAO.pdf1 SCREEN-SPACE...

Date post: 10-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
28
SCREEN-SPACE FAR-FIELD AMBIENT OBSCURANCE Ville Timonen Åbo Akademi University High Performance Graphics 2013 19.7.2013
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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Or comments...5 QUESTIONS

?Sources available online, under the BSD license

http://wili.cc/research/ffao/


Recommended