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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
390 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 ...
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 ...
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 ...
3 votes
1 answer
2k 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 ...
0 votes
0 answers
17 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 ...
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 ...
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 ...
3 votes
1 answer
345 views

How can I achieve Fake Depth of field for a 2D Image Plane?

Let's say I have an Image plane and a Camera looking at the plane from some angle (large or small).  I want the middle part of the viewport of the camera to be in focus, the rest should be blurred, ...
0 votes
0 answers
84 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?
0 votes
2 answers
76 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 ...
30 votes
2 answers
13k 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 ...
2 votes
0 answers
133 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 ...
2 votes
2 answers
8k 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 ...
4 votes
1 answer
4k 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
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 ...
0 votes
1 answer
152 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 ...
3 votes
1 answer
699 views

How to get rid of white artifacts on the edge when rendering with Eevee DoF

This ugly lights appear in every shot taken with Eevee in dark light condition and a visible F-stop. I made a super easy file to demonstrate it: https://easyupload.io/omaibj This is the shot with and ...
0 votes
0 answers
126 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 ...
1 vote
1 answer
345 views

Is there a way to set depth of field to the _closest_ point on a focus object, or do it via nodes?

I'd like the in-focus plane to always be 1 meter closer to the camera than the center of the focus object, or equivalently the closest point on a 1-meter sphere at the center of the focus object. I ...
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 ...
0 votes
0 answers
190 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 ...
1 vote
0 answers
78 views

creating convex lens but focal length is not accurate [closed]

I made the biconvex lens with the following parameters: focal length=30 mm R1=30.4 mm R2=-30.4 mm lens diameter=19.1 mm center thickness=3.1 mm environment IOR=1 lens IOR=1.515 I set up a 2f optical ...
3 votes
0 answers
534 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 ...
2 votes
0 answers
152 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 ...
15 votes
2 answers
23k 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 ...
2 votes
0 answers
205 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 ...
0 votes
0 answers
226 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?
1 vote
0 answers
403 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 ...
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, ...
1 vote
1 answer
553 views

Depth of Field and Depth Pass problem

I seem to be having some trouble getting the look I need from DOF. Below is a render I did with DOF enabled: At first, everything looks fine, but, the corners of the glass box is also blurring, which ...
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 ...
1 vote
1 answer
3k views

Missing Mist and Z in render layers

I'm Really Confused, There is no Z and Mist under Render layers, I tried clicking what I could and still no clue why they are not there. I'm trying to put mist in the Simulation.
3 votes
1 answer
560 views

How to get rid of defocus node artifacts?

When compositing my render with an alpha over node to be able to edit my background and my foreground separately, if I use a defocus node to give my image some DOF, I always run into those weird ...
2 votes
1 answer
382 views

Camera: Focus Object shift

Is it possible to adjust a camera's focus when DOF is locked to an object ? As in: shift focus forward or back relative to dof.focus_object ?
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 ...
24 votes
3 answers
31k 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 ...
4 votes
2 answers
8k 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 ...
0 votes
2 answers
395 views

plane/3d object depth of field problem

I have a 3d frog and a plane with an image of a foot. but despite both being equidistant to the camera, foot is out of focus except for where it is in front of froggy. If you look at the image, you ...
0 votes
0 answers
950 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 (...
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?
1 vote
0 answers
213 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 ...
0 votes
2 answers
2k views

Set Camera Depth of Field so that the character is not blurry, but the scene behind it is

I set a scene in evee and I really like the effect of the Camera Depth of field. In this scene I have a character right in foreground. The effect of the camera blurs it way too much. Is there ...
1 vote
1 answer
3k views

Depth of Field with Grease Pencil Objects not working

I have two grease pencil objects: one at origin and the other at Y: 92m (far back from the camera.) I'm trying to get the background to be blurred using the camera. (I know I can blur the object ...
11 votes
1 answer
2k 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 ...
10 votes
4 answers
20k 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 ...
0 votes
0 answers
182 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 ...
3 votes
4 answers
3k 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
0 answers
254 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 ...
1 vote
0 answers
174 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 ...
0 votes
0 answers
642 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 ...