Op#miza#ons for Rendering Realis#c Lens flares in Polynomial - - PowerPoint PPT Presentation

op miza ons for rendering realis c lens flares in
SMART_READER_LITE
LIVE PREVIEW

Op#miza#ons for Rendering Realis#c Lens flares in Polynomial - - PowerPoint PPT Presentation

Op#miza#ons for Rendering Realis#c Lens flares in Polynomial Op#cs Stephen DiIorio CS Department Talk June 1 st , 2015 Photo Credit: HWRG Lens Flare


slide-1
SLIDE 1

Op#miza#ons ¡for ¡Rendering ¡ Realis#c ¡Lens ¡flares ¡in ¡Polynomial ¡ Op#cs ¡

Stephen ¡DiIorio ¡ CS ¡Department ¡Talk ¡ June ¡1st, ¡2015 ¡

slide-2
SLIDE 2

Lens ¡Flare ¡

Photo ¡Credit: ¡HWRG ¡

slide-3
SLIDE 3

Lens ¡Flare ¡

slide-4
SLIDE 4

Lens ¡Flare ¡– ¡In ¡a ¡Perfect ¡World ¡. ¡. ¡. ¡

slide-5
SLIDE 5

Lens ¡Flare ¡– ¡Complex ¡Paths ¡

slide-6
SLIDE 6

Lens ¡Flare ¡– ¡Mul#ple ¡Samples ¡

slide-7
SLIDE 7

Lens ¡Systems ¡Are ¡Complex ¡

Johannes ¡Hanika ¡and ¡Carsten ¡Dachsbacher. ¡Efficient ¡Monte ¡Carlo ¡ rendering ¡with ¡realis#c ¡lenses. ¡Computer ¡Graphics ¡Forum ¡ (Proceedings ¡of ¡Eurographics), ¡33(2), ¡April ¡2014. ¡

Canon ¡Zoom ¡

slide-8
SLIDE 8

Mapping ¡Func#on ¡

x θ f(x, θ) ≈ Ax2 + Bθ2 + Cxθ + Dx + Eθ + F

slide-9
SLIDE 9

Mapping ¡Func#on ¡

slide-10
SLIDE 10

Problem ¡

How ¡do ¡we ¡best ¡evaluate ¡these ¡polynomials? ¡

Best ¡refers ¡to ¡how ¡quickly ¡we ¡evaluate ¡the ¡polynomials ¡and ¡which ¡polynomials ¡retain ¡enough ¡ informa#on ¡to ¡create ¡images ¡with ¡high ¡fidelity. ¡

Two ¡Approaches: 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

Produced ¡Images ¡

slide-20
SLIDE 20

Produced ¡Images ¡

slide-21
SLIDE 21

Produced ¡Images ¡

slide-22
SLIDE 22

Evalua#on ¡

slide-23
SLIDE 23

Summary ¡

  • Lens ¡flares ¡are ¡hard ¡to ¡compute! ¡

– Can ¡make ¡improvements ¡by ¡dropping ¡terms ¡and ¡ memoizing ¡data ¡

Future ¡Work ¡

  • Adjust ¡coefficients ¡in ¡the ¡polynomial ¡to ¡beger ¡

meet ¡a ¡ground ¡truth ¡image. ¡

– See ¡if ¡we ¡can ¡recover ¡images ¡that ¡look ¡like ¡a ¡lens ¡ flare ¡but ¡are ¡not ¡exact. ¡

slide-24
SLIDE 24

Other ¡Efforts ¡

  • Fixed ¡exponen#a#on ¡implementa#on ¡
  • Removed ¡terms ¡just ¡by ¡their ¡coefficients ¡
  • Horner’s ¡method ¡

– ¡19 ¡+ ¡7x ¡– ¡4x2 ¡+ ¡6x3 ¡ ((((0)x ¡+ ¡6)x ¡– ¡4)x ¡+ ¡7)x ¡– ¡19 ¡

slide-25
SLIDE 25

Experimental ¡Setup ¡

¡ "Why ¡Use ¡an ¡Achroma#c ¡Lens?" ¡Edmund ¡Op#cs. ¡Edmund ¡ Op#cs ¡Inc., ¡2014. ¡Web. ¡3 ¡May ¡2015. ¡ ¡

  • Degree ¡3 ¡polynomials ¡
  • Achroma#c ¡Lens ¡System ¡
  • Paths ¡consis#ng ¡of ¡2 ¡and ¡4 ¡

reflec#ons ¡

  • Using ¡Polynomial ¡Op#cs ¡

Library ¡