Questions tagged [depth-of-field]

Depth of Field (DoF) is the distance between the nearest and farthest objects in a scene that appear acceptably sharp when using a lens based camera, although the term is commonly used to simply refer to the presence of unfocused areas.

Filter by
Sorted by
Tagged with
28
votes
2answers
8k views

How to create Bokeh circles?

How can I render bokeh circles? Nothing I do seems to work. I tried using an empty as the focus point for a cube, with some point lamps in the background with about 2000 strength, but it doesn't ...
22
votes
3answers
24k views

How can I get a Depth of field render pass?

How can one make a render pass with black and white data to display depth of field based on the Settings > Camera dof settings? I want to blur or defocus in the compositor, similar to the way it is ...
14
votes
2answers
19k views

Real depth of field in blender, without post processing

Last time I checked, blender could only render depth of field effects in a post process pass, using the "Defocus Node", which seemed to get it quite wrong. Is there now a way to include rays across a ...
13
votes
1answer
1k views

2d vs 3d Depth of Field

What is the difference between Depth of Field rendered at render time (3d) compared to Depth of Field created in post (2d). Both are depth of field, they look very similar if not the same. 2d depth of ...
12
votes
1answer
2k views

Blender (Cycles) Manual DOF

Is is possible to increase the depth of field in cycles while keeping the same blur size? I know this is not physically correct, but in some renders this would be useful. Here is a demonstration of ...
11
votes
1answer
1k views

DOF with a mirror?

I am working on a Medusa scene where she is staring into a mirror. We are looking at her from behind, looking into the mirror. I want to use DOF, However if you look closely the mirror is completely ...
11
votes
2answers
718 views

Freestyle depth of field

I am using Freestyle on a Cycles scene with some depth of field. The Freestyle doesn't get affected by the depth of field, and so pops out too much on objects that aren't in focus. I am looking for ...
9
votes
2answers
2k views

How to create real tilt-shift lens blur in Blender?

I basically want to rotate the DoF-Plane just as a real tilt-shift lens does, so that the depth influences the blur and not a gradient. Is there a way to recreate this effect in blender?
8
votes
2answers
881 views

How to get Smoke into Z-Depth Pass?

Is it possible to render smoke into the Z-Dpth pass? I did a setup following the advices found here but it renders only the domain as geometry no smoke.
7
votes
2answers
131 views

Depth of Field on glossy surfaces (cycles)

I have made a scene in Blender where there is a glossy ball on an icy lake. I noticed that there is no Depth of Field on the reflection of the ball. I could add a fake Depth of Field in post-...
7
votes
1answer
1k views

Blender 2.74 Depth-of-field is okay at 3D-viewport, but not in Render

Blender 2.74 has enabled one to add a depth-of-field effect in the 3D viewport. The problem is, when I hit F12 to render the camera-view, the depth-of-field doesn't show up. Any idea why?
6
votes
3answers
3k views

Noisy depth of field

So I tried one of the Blender Guru tutorials, which ends with depth of field settings. The blurred lights are however too noisy: Which is strange, because when I turn DOF off, the distant droplets ...
6
votes
1answer
3k views

Depth of field is not being rendered in Blender Internal

I have quite an annoying thing, that I don't know how to do. I'm about to render a small clip, but I don't know how to enable Depth of Field in animations render to make it visible in the final ...
6
votes
1answer
489 views

Why is the Z very noisy around out of focus objects?

I am doing a render of a tutorial I finished, and when I go compositing it I get a weird jitter on a defocused object. The tutorial had this too (at 1:04:00), but I wonder if it is possible to remove ...
6
votes
2answers
75 views

Swirly bokeh like that of a Helios 44m 2/58?

I recently discovered the Helios 44m, a lense which produces some awesome swirly bokeh effect unlike anything else I've seen. I can't get one for myself, but I was wondering if there's a way to ...
6
votes
2answers
2k views

Is it possible to create a render layer with no depth of field?

I find that using depth of field (DOF) distorts the render pass masks, especially for very out of focus objects with a low f-stop (large aperture). I am trying to get around this by making a separate ...
6
votes
1answer
3k views

Can I control depth of focus (v depth deph of field)

I'm creating some studio-shot style images of products. I'm trying to get the foreground elements in focus while having the background blur slightly. I've done a lot of real world studio photography ...
5
votes
1answer
11k views

How do I set focus range?

I know about depth of field but I have no clue how to set it to my liking. Is there an add-on for those of us who aren't camera savvy about adjusting focus? Like a visual line to show what is in ...
5
votes
1answer
7k views

Depth of Field F-stop not doing anything?

I'm trying to achieve DOF using Blender Internal 2.75a. Everything seems to work, except that the F-stop doesn't seem to do anything, nor in the Defocus node nor in the camera DOF settings. I just get ...
5
votes
2answers
833 views

Creating depth of field from Beauty+Depth passes (rendered in another software)

Creating DoF in the compositor is very easy if you have the scene rendered in Blender and the camera depth set right. But what if you rendered a beauty (raw render) and depth pass in another program? ...
4
votes
2answers
8k views

Render depth maps with world-space z distance with respect the camera

I am trying to write the depth map of a scene in a 16-bit PNG, without any sort of normalization. I would like to pixels of such depth image to be set to the distance with respect to the camera, and ...
4
votes
1answer
599 views

Does cycles DOF use more resources?

In blender's internal renderer DOF was highly faked, complex, and used much resources from the computer. Cycles DOF does not seem to need anything more than the usual sample setting (and that applies ...
4
votes
1answer
710 views

Bokeh - From Horizontal to Vertical

Hi guys I want my camera to display vertical bokeh stretch instead of horizontal. The rotation option in DOF settings of camera, doesnt rotate the bokeh. Horizontal stretched bokeh (low res render ...
4
votes
1answer
385 views

Fake DOF in the Compositor

You see, I had a very long render of about 5 hours. And in the end I found out that I totally forgot to add depth of field. So now I am thinking of a way to do that: either outside blender or in ...
4
votes
0answers
65 views

split up and render depth slices (for extreme dof)

I'm doing a particle simulation of fire embers swirling around, to be matched up to a filmed plate. The plate has a very shallow depth of field, which creates a problem when comping it in. It takes ...
3
votes
3answers
5k views

How to display F-stop limits in viewport?

I know you can show focus limit in viewport by checking the Display > Limits on, but can you show the starting and ending points of focused area in viewport? Now I have been rendering the image over ...
3
votes
1answer
11k views

Z depth pass in Cycles, rendering white [duplicate]

Using Cycles as a render engine, I assigned an empty as a camera Track To target, and as the focus target in Depth of Field, yet rendering the scene, the depth pass is rendering all white, as if there'...
3
votes
1answer
5k views

Z-buffer output from blender as file

I am trying to synthetically generate depth image mimicing a real Kinect. So I have set the camera params as below using python script. I have setup the nodes and able to get the depth image as ...
3
votes
1answer
1k views

What causes these artifacts around the edges of objects when using the defocus node?

Continuing on with the same logo reveal. The depth of field in Blender results in this horrible effect around the edge. I've seen this sort of blurring a lot in games, Assassin's Creed is quite famous ...
3
votes
2answers
3k views

Depth of Field in 2.68? [duplicate]

I can't get "depth of field" to work as expected in version 2.68. Here are the steps I'm taking (from a brand new file): I clone the default cube a few times, and place all the cubes in a row. I go ...
3
votes
1answer
120 views

Why is the DOF check box in BGE gray?

I know there may be a very simple answer, but I'm still kinda new at Blender's Game Engine and was wondering if I don't have something checked in the "addons" area that will enable the DOF check box ...
3
votes
1answer
355 views

Match Depth of Field of Background Image

Either using Cycles or Blender Render - Need to match the depth of field on an object to a background image. Basically, I want to have a background image (that has DoF in it by itself), mapped flat on ...
3
votes
0answers
416 views

Distance of HDRi backgrounds

Almost 90% of the time I light my scenes with an HDRi background. Is there a way to control the virtual distance of the background image so I can control bokeh and blurriness of the image when using ...
2
votes
3answers
2k views

depth of field to work not working

I have blender 2.78 and I am trying to get the depth of field to work, but I just can't make it. I think I have all that as needed the camera and the target an object, the compositing is on, I even ...
2
votes
2answers
2k views

Can I model a double convex lens

I'm fairly new to blender and not a graphics person by any stretch of the imagination. I've been having some success though modelling semi-reflective glass for a project I wish to build (physically) ...
2
votes
1answer
2k views

How to accurately simulate an anamorphic lens

I am aware of the aperture ratio slider in the camera properties. However, I am wondering if there is a way to actually render squished in Blender, and stretch it out in the compositor later. I ...
2
votes
3answers
1k views

Mist + dof + alpha in cycles

I'm working on an animation where I want both mist and dof combined with a rather dark world background. The main problem is my mist pass washes out my background, and the only solution I found was ...
2
votes
1answer
551 views

Blender 2.76b Depth of Field doesn't work

Blender 2.76b Depth of Field doesn't work. Any idea why?
2
votes
1answer
907 views

Composite node/ Viewer node preview not showing

I am trying to get a depth map of my imported model for which I found out this tutorial. So far here is the picture of my work. As you guys can see there is no preview in the backdrop or the nodes of ...
2
votes
1answer
63 views

Surface rendered with a different blur frame by frame

I'm using Blender 2.79 to render an animation. While many frames look consistent, every three or four frames, a series of frames crop up where a surface is rendered differently than the rest, often ...
2
votes
0answers
622 views

Depth of field in viewport and render different

I've same values for depth of field for viewport and render but I'm getting different results. This is depth of field correctly working in viewport, this is the aim: This is what I get after ...
2
votes
0answers
464 views

Blender Rendered viewport is different from the rendered image in Cycles

I have this scene: It's basically a bunch of particles that have an emission shader. The camera is using depth of field and gives this results using the rendered viewport: But When I render the ...
2
votes
1answer
457 views

Change focus on mist pass for getting DOF in composition [duplicate]

I'm trying to get DOF in Compositing from an OpenEXR image with Combined/Alpha/Mist passes. This is the combined pass: I can get DOF by a defocus node using the Mist pass (after a ColorRamp to define ...
1
vote
2answers
938 views

Why is my render blurry?

In the camera settings I didn't set anything regarding Depth of Field but it is still really blurry. I have bump maps included in the sofa, curtains, floor but none is visible because of the ...
1
vote
2answers
835 views

What is the simplest way of extracting the depth values of the scene?

I am totally new in the 3D-world, But I am really interested in having the depth values of the scene (in the raw floating point numbers format), Unfortunately, I could not find an associated question (...
1
vote
1answer
635 views

Depth of field in EEVEE not focusing on selected object, works fine in cycles

I can't wrap my head around this. For some reason, no matter how much I try, I can't get the depth of field setting to do anything but make my entire shot blurry. My goal here is to have the F/C in ...
1
vote
1answer
2k views

How to get depth data using python api

I know how to do this manually but I want to know how to do this with a python script. I was trying to use nodes to connect the z buffer to the output. However, when I save this, the outputs are all ...
1
vote
1answer
20 views

Custom Depth of Field in User Perspective view?

Hello is it possible to set different Depth of Field when editing 3D model in Perspective view? Not in rendering.
1
vote
1answer
58 views

Can cycles render motionblur and dof at the same time in 2.80?

I'm trying to wrap my head around this. I've got a simple scene with some falling cubes which I'd like to render in cycles. When I activate motion-blur, it renders with motion-blur without a problem. ...
1
vote
1answer
539 views

Get a full numeric z-depth from a rendered image

I know this issue has been mentioned before but I looked at all similar questions and did not find my exact answer. So here is my problem: I need to get a full depth map of my render. I mean the ...