Ziye Liu's Blog
  • ( www.ziyeliu.com )
  • Home
  • Visual Effects Blog
    • Houdini >
      • Procedural Courtyard House
      • Procedural Music Animation
    • Maya - MEL >
      • MEL Rooftop Generator
      • MEL Circle of Spheres
    • Maya - Rendering >
      • Maya Render Premultiply Issue
      • Depth of Field and Bokeh
      • 3D Render - Match to a Real Object
      • RenderMan I
      • RenderMan II
    • Python >
      • Python Sampler Quilt
      • Motion Capture Data Parsing
      • Python and Turtle Graphics
  • Themes & Variations
    • The Film
    • Scene 1 - "Crazy Polka Dots"
    • Scene 2 - “Untitled”
    • Scene 3 - "Grapes"
    • Scene 4 - “Narcissus Garden”
  • 中文博客

Depth of Field and Bokeh

in Maya and Nuke

2014/02/25

What is Bokeh?

"the way the lens renders out-of-focus points of light"
“Forrest Gump” (1994)
“Nebraska” (2013)
“The Deer Hunter” (1978)

What’s the difference?

  • Arriflex 235, Panavision C-, E-Series and Super High Speed Lenses 
Picture
“The Dark Knight Rises” (2012)
Picture
35mm Anamorphic Lens
  • IMAX MSM 9802, Hasselblad and Mamiya Lenses 
Picture
“The Dark Knight Rises” (2012)
Picture
IMAX Lens / 35mm Standard Lens
Picture
Bokeh Shape of Anamorphic Lens
Picture
Bokeh shape of IMAX Lens
Picture
Picture
  • Anamorphic Format
  • Diaphragm

Mental Ray Lens Shader

“mia_lens_bokeh”

Picture
Picture
Picture
Create a lens_bokeh shader

Picture
Parameters of lens_bokeh Shader
Picture
Define the Focus Area (Distance from Camera)

Using Bokeh Shape

Picture
“Default” Bokeh Shape in 3D Software
Picture
Real Bokeh
Picture

Bokeh Shader (Default)
  • Radius 0.1
  • Sample 16
  • Bias 1.0
  • Blade Count 0
  • Blade Angle 0
Picture
Picture
Bokeh Shader
  • Radius 0.1
  • Sample 16
  • Bias 1.8
  • Blade Count 9
  • Blade Angle 0.2
Picture
Render Setting
  • Unified Sampling 2.0
  • Min 10, Max 100
Picture
Picture

Nuke ZDefocus

Picture
Picture
Parameters of Nuke ZDefocus Node
Picture
Picture
Picture
Picture
Focus near the Camera, Default Bokeh
Picture
Picture
Focus near the Camera, Anamorphic Bokeh
Picture
Focus far away from the camera
Picture
Artifact

www.ziyeliu.com
Digital Art, 3D, Photography
©Ziye Liu, 2011 - 2023, All Rights Reserved