Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory...

43
Subtle Anamorphic Lens Effects Real - time Rendering of Physically Based Optical Effect in Theory and Practice SIGGRAPH 2015 Course Masaki Kawase Silicon Studio, Corp. [email protected]

Transcript of Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory...

Page 1: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Subtle Anamorphic Lens EffectsReal-time Rendering of Physically Based Optical Effect in Theory and PracticeSIGGRAPH 2015 Course

Masaki KawaseSilicon Studio, Corp.

[email protected]

Page 2: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Anamorphic Lens

• To implement wide vision using the standard film format

– Project wide image onto the sensor with horizontal compression

– When screening, the image is stretched horizontally

2

-1

Original scene Compressed image Screen

Page 3: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Anamorphic Lens Effects

• Well-known effects– Horizontal lens flare and ghosts (streaks)– Oval aperture bokeh

• Less-known effects– Horizontally stretched lens flare– Horizontally stretched film grain– Anamorphic astigmatism– CA of horizontal magnification– Cylindrical lens distortion– Vignetting by oval aperture– And more …

3

Panasonic LA7200 Anamorphic Lens Flare by Andrei Jikh

http://vimeo.com/9493224#at=0

Anamorphic Lens Shots - Before & After

http://vimeo.com/16350276

Page 4: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Importance of Less-known Effects

• Helpful to create distinctive atmosphere

– Each effect on its own is subtle

– But together, they will affect the overall atmosphere

4

Page 5: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

5

Standard Lens Simulation

Page 6: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

6

Anamorphic Lens Simulation (with Well-known Effects)

Page 7: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

7

Anamorphic Lens Simulation (Adding Less-known Effects)*Exaggerated for presentation purposes

Page 8: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontally StretchedLens Flare and Film Grain

Page 9: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontally Stretched Flare and Film Grain

• The effects are stretched by anamorphic projector lens

• Implementation

– Shrink working buffer width for the flare

• Render flare normally

• The results become stretched automatically

– Scale the noise texcoord horizontally for the grain

9

Page 10: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

10

Standard Lens Flare

Page 11: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

11Entire lens flare and film grain is stretched horizontally

Anamorphic Lens Flare

Page 12: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Film Grain is also Stretched

Exaggerated for presentation

Standard lens Anamorphic lens

12

Page 13: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Anamorphic Astigmatism

Page 14: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Because of Cylindrical Lenses

• Anamorphic lens systems include cylindrical lenses• Astigmatism for anamorphic lens can be caused

– Similar to corneal astigmatism

14

Including cylindrical lenses

Anamorphic lens system

Horizontal Focus P1

Vertical Focus P2

Page 15: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontal blur at P2

Including cylindrical lenses

Anamorphic lens system

Horizontal Focus P1

Vertical Focus P2

Linear Blur by Astigmatism

• Horizontal or vertical focus generates linear blur• Never focus perfectly

– Circle of least confusionCompromised Focus P3

Vertical blur at P1

Circle of Least Confusion at P3

15

Page 16: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Vertical Focus

• Horizontal blur as back bokeh in this lens

16From real anamorphic lens

Page 17: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Circle of Least Confusion Position

• Cannot focus perfectly

17From real anamorphic lens

Page 18: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontal Focus

• Vertical blur as front bokeh in this lens

18From real anamorphic lens

Page 19: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Vertical Focus

Horizontal blur as back bokeh in this lens

Page 20: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Circle of Least Confusion

Cannot focus perfectly

Page 21: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontal Focus

Vertical blur as front bokeh in this lens

Page 22: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Implementation of Astigmatism

• Offset the horizontal and vertical focal planes in opposite directions by a little amount

• Calculate horizontal and vertical CoCs separately

22

Page 23: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Result: Vertical Focus

• Horizontal blur as back bokeh

Implementation results 23

Page 24: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Result: Circle of Least Confusion

• Cannot focus perfectly

Implementation results 24

Page 25: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Result: Horizontal Focus

• Vertical blur as front bokeh

Implementation results 25

Page 26: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Vertical Focus

Horizontal blur

Page 27: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Circle of Least Confusion

Cannot focus perfectly

Page 28: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Horizontal Focus

Vertical blur

Page 29: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Aberrations by Cylindrical Lenses

Page 30: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

CA of Magnification

• Optical Magnification ‘M’ differs by wavelength

30

Page 31: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

CA of Magnification (cont’d)

31

Page 32: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

CA of Horizontal Magnification

• Apply CA of magnification only in horizontal direction

CA of horizontal magnificationCA of magnification32

Page 33: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Anamorphic Lens

Page 34: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Anamorphic Lens

CA of horizontal magnification

Page 35: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Standard Lens

Page 36: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Cylindrical Lens Distortion

Horizontally strong barrel distortion

Anamorphic lens

Page 37: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Standard Lens Distortion

Barrel distortion

Standard lens

Page 38: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Conclusion

Page 39: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

Conclusion

• Anamorphic lenses yield various effects

– Well-known and less-known effects

• Less-known effects should not be ignored

– Each effect on its own is subtle

– But together, they will affect the overall atmosphere

39

Page 40: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

40

Standard Lens

Page 41: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

41

Anamorphic Lens (with Well-known Effects)

Page 42: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

42

Anamorphic Lens Simulation (Adding Less-known Effects)*Exaggerated for presentation purposes

Page 43: Subtle Anamorphic Lens Effects - Real-time Rendering of Physically Based Optical Effect in Theory and Practice - SIGGRAPH 2015 Course

References

• Kawase, M. “Camera, Optics Theory and Post Effects for Renderists.” Computer Entertainment Developers Conference, 2007.

• Kawase, M. “Practical Implementation of Cinematic Lens Effects.” Computer Entertainment Developers Conference, 2012.

43