Questions tagged [depth-of-field]
8 questions
12
votes
1 answer
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 field implemented?
What are the rules about how you…
Alan Wolfe
- 7,711
- 3
- 29
- 72
10
votes
1 answer
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, looking at an object in the image at a given…
trichoplax is on Codidact now
- 6,222
- 2
- 22
- 67
6
votes
2 answers
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, generated what sigma (standard deviation) to use at…
Saravanabalagi Ramachandran
- 204
- 1
- 7
6
votes
1 answer
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 achieve based on previous experience with a DSLR but I am a…
Arjan Singh
- 2,463
- 3
- 20
- 37
4
votes
1 answer
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 aware of the Zeiss formula for my desired…
SgerbwdGwyn
- 43
- 3
2
votes
2 answers
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 explanation of it?
Robin Betts
- 123
- 4
1
vote
0 answers
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 computed using a formula, but I dont really understand…
0
votes
1 answer
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 fine till I reached chepter 5 (Smoothing forground…
Thomas
- 631
- 1
- 3
- 11