# Questions tagged [depth-of-field]

The tag has no usage guidance.

8 questions
Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

### Depth of Field algorithm implementation issue

I am trying to implement the paper: Real-Time Depth-of-Field Rendering Using Anisotropically Filtered Mipmap Interpolation from Sungkil Lee, Gerard Jounghyun Kim and Seungmoon Choi. Everything works ...
• 1,111
1 vote
0 answers
100 views

### Blur calculation in shader with fixed CoC

I have just started learning how to use and create shaders in ThreeJS and, while going through some shaders in the example folder, I have come across a bokeh shader. Inside the shader, blur is ...
2 votes
2 answers
108 views

### Why are reflections in a spherical surface sharp, regardless of depth of field?

A question has come up recently in Blender SE, remarking on the absence of blur due to depth of field in reflections in a spherical surface. This is a real-life effect.. can anyone come up with a nice ...
• 123
4 votes
1 answer
305 views

### Deriving blur from real optical formulae

Looking at the Wikipedia page for Circle of Confusion, and at such posts as this one, I completely understand how to calculate the values for near, far, focal planes and hyperfocal distance. I am also ...
6 votes
2 answers
2k views

### Bokeh from depth map

How do I generate bokeh that simulates shallow depth of field given a perfect depth map? Here's what I tried: Generated a sample scene using blender and corresponding depth map Using Python, ...
6 votes
1 answer
3k views

### Depth of Field in Path Tracing: What do I do with the secondary ray?

How can I implement Depth of Field in my Path Tracer? I have read this article which explains the theory behind everything & I already have a good understanding of what this effect needs to ...
• 2,491
10 votes
2 answers
187 views

### Is depth of field incongruous in a 3D still image?

If rendering an image in 2D, adding depth of field effects (blurring objects further from the focal distance) adds realism and draws the eye to the object of the image. With a 3D (i.e. stereo) image, ...
12 votes
1 answer
4k views

### How is Depth of Field Implemented?

I know that depth of field involves blurring. There's some great information about how to do a Gaussian blur in the question How is Gaussian Blur Implemented? But, other than that, how is depth of ...
• 7,751