Page MenuHome

Viewport Shading 'Depth Of Field' 'Wireframe' / 'Bounding Box' issue
Closed, ResolvedPublic

Description

System Information
Windows 7 x64
GNU/Linux Mint 17.1 Cinnamon x64

HD 3000
GTX 580m

Blender Version
2.74 x64 (000dfc0) Windows and GNU/Linux
2.74.5 gooseberry (e4b1b17) Windows and GNU/Linux
2.74.5 gooseberry (920aa5e) Windows and GNU/Linux

Short description of error
Viewport Shading 'Depth Of Field' focal point calculation issue happens when objects are close to camera while using 'Wireframe' or 'Bounding Box' display modes.

Exact steps for others to reproduce the error
After opening attached .blend.


Press keyboard keys 'g' then 'y' to grab and move the Focal Point object along the Y axis, in all Viewport Shading modes (except for 'Wireframe' and 'Bounding Box') the focus follows the Focal Point object as expected.

Reset the Focal Point object.

Switch Viewport Shading to 'Wireframe', even before moving the 'Focal Point' object, it is obvious the area in focus has moved.

Now moving the 'Focal Point' object has the reverse effect, as the 'Focal Point' object progresses further along the Y axis towards infinity (or behind the camera), the cylinder object comes into focus.

Real world examples (chair object is to actual size with 1 Blender unit equaling a 1 meter).


Tested on Windows 7 and GNU/Linux Mint, with Intel HD 3000 then NVIDIA GTX 580m graphics cards.

David

Event Timeline

David Black (david_black) raised the priority of this task from to 90.
David Black (david_black) updated the task description. (Show Details)
David Black (david_black) edited a custom field.

Can confirm the issue - also maybe interesting, if you combine solid and wireframe object in same view, DoF effect seems OK.

Antony, bet this one is for you. :)

Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.May 4 2015, 12:41 PM

Things are simple:

Scene does not use depth buffer at all in wire mode, so all points have the same depth (1.0). Basically moving the focus point just applies the same effect to all the scene according to how close the focus is to the far plane. Probably deactivating effects in wireframe is the thing to do after all.

Sorry been unable to reply sooner.

Thank you for your quick commit.

One further question, should the viewport Transform Widget be affected by DoF (below image)?

Reference .blend

David

It shouldn't but I tried fixing this and it's causing issues elsewhere unfortunately.