Skip to main content

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.

48 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
2k 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 ...
bstnhnsl's user avatar
  • 2,710
4 votes
0 answers
132 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 ...
Jon Wesström's user avatar
3 votes
0 answers
525 views

there are easy way to set / order 2d object depth in blender?

there are easy way button / shortcut / plugin to set depth each object in blender? TLDR: I need button / function like this: Long Version: I'm (try to) use blender for 2d animation, where I import ...
udn jelek's user avatar
  • 111
3 votes
1 answer
1k views

Custom Bokeh Shapes

I'm trying to make a Bokeh background like this: I've got the Bokeh in blender with a particle system copying a sphere that has an emission modifier. I'm using the depth of field to blur out the ...
The Nuckster's user avatar
2 votes
0 answers
130 views

Simulate projector with depth of field using spotlight

I am quite new to Blender and trying to accurately simulate a projector with an image texture. Currently I simulate the projector using a spotlight with the following shader: which works well enough ...
Nikolai Nøjgaard's user avatar
2 votes
0 answers
151 views

How does depth of field work in Blender?

I am currently writing a paper on different renderers, I have created a scene and rendered it with different engines (Arnold, Renderman, Cycles and Luxcore) and it appears that different renderers ...
peter_greger's user avatar
2 votes
0 answers
198 views

Depth of Field - Visible Lines on Distance Change

As the distance of my Depth of Field effect changes (EEVEE), visible lines are drawn across the objects on which the effect is happening. These lines are the 'thresholds', I presume, between different ...
Candle's user avatar
  • 302
2 votes
0 answers
251 views

Depth of Field on Particles Disappears in Front of Plane

I created a simple animation with an image plane and a particle effect. The particles are an image of a flower petal with transparency mapped onto a plane. I used the Eevee render engine. I wanted to ...
Jaki Rose's user avatar
2 votes
0 answers
359 views

How to blur only the foreground?

like in photography I would like to have a blurry foreground and the rest of my scene focused to infinity (including the world background), I was unable to get this effect using the Depth of Field ...
Steve's user avatar
  • 21
2 votes
0 answers
2k 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 ...
Suraj Sirohi's user avatar
2 votes
0 answers
668 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 ...
Fabrizio's user avatar
  • 728
1 vote
0 answers
50 views

Object outlines suddenly clearer partway through render (Eevee) DOP issue?

I've rendered 2 animations in Eevee, and they both have a similar problem where at first the subject of the animation has a nice sort of light wrap/depth of field soft edge sort of thing or I don't ...
JohnnyBoy's user avatar
1 vote
0 answers
47 views

Blender 2.91.2 zooming out from an object until it disappears but will not come back when zooming in

Just loaded Blender 2.91.2 and the object in question is a small table (size x 240mm, y 150mm, z 230mm) and clip start settings are 0.001mm and clip end settings 100000mm. Furthermore, if I zoom out ...
Barry B's user avatar
  • 11
1 vote
0 answers
1k views

Use depth of field only for some objects and not for others

I am using depth of field, that is connected from camera to object, but I want to not cause blur efect for 2 other objects, is it even possible?
Dudzioo's user avatar
  • 11
1 vote
0 answers
205 views

how do I... comp/blur/depth of field an object so that it comes into view as the camera dollys?

Bad headline sorry, here's a frog in a cage the idea is, we first see froggy through the bars, which are so blurry we cant really figure them out. as shown in this comp attempt ^above^ .because the ...
Robert's user avatar
  • 186
1 vote
0 answers
402 views

Eevee Depth of Field causes weird pixels at the edge

I am rendering an image with the Depth of Field setting on the camera. This causes the edge pixels on the right-hand side to display an unwanted solid color. Here is an image from the viewport preview ...
Codezilla's user avatar
1 vote
0 answers
171 views

Animating Depth of field - not smooth change of focus

I've been trying to animate simple change of focus between background or foregroud. Everything should be fine, but for some reason focus change is not fluid - it looks like its changing depth of field ...
adamesko's user avatar
1 vote
0 answers
52 views

Dynamic occlusion-based target object for DOF

Is there a way (during animations) to have a Depth Of Field target calculated dynamically, based on the first occlusion plane that rays shooting from the centre point of the camera encounter? This as ...
Joachim's user avatar
  • 581
1 vote
0 answers
197 views

How to make the background of rendered depth image black?

So I am trying to render color and depth image at the same time. The color image for the scene is: As you can see, the background of this image is purely black. I want to have black background as ...
Wei's user avatar
  • 133
1 vote
0 answers
208 views

Defocus Node acting weird with blurred foreground. Fix?

I'm working on an animation, and in this particular scene, I have a close up of a naval gun turret. I wanted to focus on the middle gun, but the defocus node gives me trouble. In the image below, I ...
Nick's user avatar
  • 11
1 vote
0 answers
452 views

Change DOF Focal point in Compositor

Greetings to everyone from Chile! I am submerging in Blender world since a few week and probably I am dragging a little inertia habit from Nuke and After Effects trying to composing DOF from a ...
GeorgyBoy's user avatar
1 vote
0 answers
56 views

Represent "objects' field of view"

I have the following scenario: a model placed on the center and a plane beneath it. There is also a top view camera. When rendering: I have created four spherical gradients that depend on the ...
Miguel's user avatar
  • 165
1 vote
0 answers
419 views

DOF not working in Orthogonal view

I am currently using an orthographic camera in my scene, and I tried to used the camera DOF effect and to my surprise, it didn't work, or perhaps I couldn't make it work. I tried to make the camera ...
Retrax's user avatar
  • 1,520
1 vote
0 answers
221 views

Does the Z pass works with OpenEXR?

the Defocus (with use Z buffer checked) works perfectly with a render layer node (tested on one frame per time). however when i rendered the whole sequence as an OpenEXR (Multilayer or not) and ...
Venay's user avatar
  • 313
1 vote
1 answer
115 views

How to locate object parts of rigged object visible in camera

I'm pretty new to blender. Currently I work in animate a rigged character, and render the depth for a computer vision project. My scene consist of some walls, floor, random objects and a human ...
Legan09's user avatar
  • 11
1 vote
0 answers
80 views

Trouble with Particle system and forcefields

I have a simple particle system that is using an object (an icosphere subdivided a few times) with an emitter shader(color:red and strength: 15) and the particle system is affected only by a force ...
AkechiShiro's user avatar
1 vote
0 answers
1k views

How to get real Z-buffer value from Blender

This is in follow up to my previous post. I see that i can render the zbuffer into an image from the answer to my previous post. But can I get the real Z values some how using blender? I found this ...
desinghkar's user avatar
1 vote
0 answers
577 views

Blender cycles dof viewport problem

When I set dof in the viewport it looks ok but my rendering just doesn't show it in the same way. Just there is no dof. My scene has multiple layers in compositor. What have I missed? Thanks.
Claudio Trevisani's user avatar
0 votes
0 answers
16 views

Phantom edges created on object when rendered

I modeled a microchip and I'm trying to do a render of it rotating in Eevee and am using depth of field to give it a realistic effect. However, I notice that these strange edges appear and move as the ...
Zax Labs's user avatar
0 votes
0 answers
7 views

Linking Freestyle to Camera DOF

I was wondering if it is possible to use Freestyle in conjunction with the camera’s DOF? I would like to set up a wide angle camera with focus on a far away subject, and have the freestyle lines ...
Reinhardt Renders's user avatar
0 votes
0 answers
20 views

Evee DoF actual Render different to rendered camera view?

I'm new to Blender and was wondering can anyone shed some light on the following and why this would be happening please? (apologies in advance for any improper terminology) So, I've a rotating sphere ...
JPC's user avatar
  • 1
0 votes
0 answers
80 views

z-pass get jagged with depth of field on

I was rendering meshes and grease pencil with cycles, when I turned on depth of field, the edges of z-pass get jagged. I use 3060 laptop. Is there any way to solve this issue?
diandianli's user avatar
0 votes
2 answers
67 views

Why am i not getting depth of field in my picture

I cannot figure out why I am not getting a blurry background. I have the f stops all the way down. I have the distance set on my object. If I set the focus object to my object, Everything goes blurry ...
Ricky Bascom's user avatar
0 votes
1 answer
144 views

Adding depth of field to Individual passes i.e Emission, Ambient Occlusion, mist, etc?

So I've been using the built in depth of field in blender more on my renders, however I notice this isn't transferred over to any of my passes, making it harder for me in my compositing stage. I've ...
Wupyaup's user avatar
0 votes
0 answers
125 views

Artifacts when using DoF, transparency and VSE

I'm rendering a scene with Cycles and using it in another scene's VSE as a scene strip. It has transparent film settings, and depth of field effect. After putting this together in VSE, along with ...
skrat's user avatar
  • 103
0 votes
0 answers
186 views

White edge around objects because of Depth of Field - Eevee

This white fringe very often appears in my renders. This began after Eevee's depth of field rework in one of the latest patches. I have this fringe both in blender 2.93 and 2.93.5. The white edge is ...
Code 0.58341 . 6's user avatar
0 votes
1 answer
388 views

How can I convert data from camera data node(view distance) into a file output(image or CSV or anything)?

I am trying to extract the location(x,y,z) of the objects from the camera in my scene(highway scene -autobahn). Note: I have imported the .obj file as my scene (obtained from elsewhere, not created by ...
prath171's user avatar
0 votes
0 answers
222 views

Depth Pass for Particles in Blender

Can't find much information on this but I have tried using the Depth > Normalize > ColorRamp to control depth pass for particles but doesnt seem to work. Any ideas?
Chris's user avatar
  • 1
0 votes
0 answers
62 views

Generate DOF (not depth) map from blender

I've found several ways to generate depth map from blender, but if my focus point is not the closest one, or the width of my focus area is bigger, I can't really use them to add depth of field later, ...
gtrg's user avatar
  • 27
0 votes
0 answers
203 views

Depth of Field with object copies/instances

My scene has a 3D array of cubes, and the camera is looking at one of the corners: I want to apply a depth of field such that the closest corner cube is in focus, while the cubes in the background ...
YGL's user avatar
  • 101
0 votes
0 answers
932 views

Blender render object scale different from viewport

So I've been doing this animation in Blender, but when I hit render to check on the lighting, I found that one of the object changed. Here's the picture of the viewport: And here's the render result (...
Rizqi Rabbani's user avatar
0 votes
0 answers
174 views

Particle System error with Depth of Field

I'm trying to make a shot in a grassy field with a DoF effect but the grass particle system is having errors with it. I've outlined where it's visible. The DoF focus is just in front of the radio. I ...
DieselD261's user avatar
0 votes
0 answers
636 views

(EEVEE) Can't get Depth Of Field to focus on one object! (.Blend file included)

i'm currently having a huge problem where i cant seem to make the camera focus on only one object, i want it to focus on the rabbit character: https://i.gyazo.com/8a12c2843f8448bd6b2120e10753aa2e.gif ...
Crowny Valentine's user avatar
0 votes
0 answers
47 views

Getting consistent image with distributed rendering

I have a homemade render farm that I cobbled together out of several retired PCs. My script splits the image into several slices, sends each slice to a node (6 slices for 6 nodes) and then combines ...
ry_ol's user avatar
  • 3
0 votes
0 answers
846 views

How to get the right values for Z depth rendering

I wonder how I can set the values in the Map Value node to get the best output. I want the pixels values of objects to be rendered according the to the distance from the camera in meters unit. I'm ...
Tak's user avatar
  • 6,303
0 votes
0 answers
93 views

Artifact when DOF is applied to layered render

Notice that the background follows around the skin of the body and cuts through the hair, which is on a separate layer from the body
Marcus Mravik's user avatar
0 votes
2 answers
2k views

Blender 2.8 Eevee depth of field "geometry clipping" issue

I have a problem with strange depth of field artifacts in Eevee on my Mac Pro (tech specs on the pictures below). It looks like everything is what it should be. defocused is cliped by the camera (but ...
Maciej Sobolewski's user avatar
-1 votes
2 answers
1k views

Any recommendations for animating the f-stop depth of field properly when moving the camera around a scene?

In the render window the changing depth of field works when the camera is animated but it does not render that way. We are stumped. Basically here is what is going on. I setup an animation with some ...
Randy Van Nostrand's user avatar