Maniphest T77301

EEVEE: Depth of Field not working properly in ReflectionPlane
Closed, Archived

Assigned To
Alaska (Alaska)
Authored By
Vit Kovalcik (Blackx)
Jun 3 2020, 12:10 PM
Tags
  • BF Blender
Subscribers
Alaska (Alaska)
Vit Kovalcik (Blackx)

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.92

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: rB375c7dc4caf4
Worked: (optional)

Short description of error
DOF for objects visible in mirrors using ReflectionPlane are not blurred according to the camera->mirror->object distance, but they are blurred only according to the camera->mirror distance. The object distance is not taken into account, only the mirror "reflection texture" is blurred.

Exact steps for others to reproduce the error
I understand it is a thing of a concept of the reflection in eevee and the DOF post-processing and I am not sure it is fixable at all. But maybe someone will find a way.

Anyway I attached a scene with two cubes. They are similarly distant from the camera, but the red one is visible through a very close mirror (covering just the right part of the camera view). The mirror is in focus, but the reflected red cube shouldn't be. The DOF blur is therefore incorrect. It is very different for both cubes, although it should be similar to the green one in both cases.

Related Objects

Event Timeline

Vit Kovalcik (Blackx) created this task.Jun 3 2020, 12:10 PM
Alaska (Alaska) closed this task as Archived.Jun 3 2020, 12:47 PM
Alaska (Alaska) claimed this task.
Alaska (Alaska) added a subscriber: Alaska (Alaska).

I understand it is a thing of a concept of the reflection in eevee and the DOF post-processing and I am not sure it is fixable at all. But maybe someone will find a way.

As you said, this is due to the DOF being a post processed effect. Clément has a task setup for improving the DOF in EEVEE, however, it will most likely have the same issues as from my understanding it is still post processed based. T68468

From my understanding, a fix for this would require the use of ray tracing, something that is currently available in Cycles.

Marking this report as invalid as it is more of a feature request and this site is reserved for bugs and crashes.