Grid is Drawn on top of the Selection Outline
Closed, ResolvedPublic

Description

System Information
Windows 8.1
NVidia GT640: Driver version: 350.12

Blender Version
Broken: 2.74|000dfc0
Worked: 2.73

Short description of error
Grid is being drawn on top of the Selection Outline. Looks worse when having width of outline set to about 2-3 pixels and Antialiasing set to x4 or x8, on a smooth object like Suzanne with SubDivs applied and Smooth Shading ON

Exact steps for others to reproduce the error
I deleted Blender Foundation folder from User/AppData/Roaming. Started Blender, Set the Outline to 5 (to see the error easier). Created Monkey. Smoothed it to subDiv 4, shading to Smooth. Selected it. BAM :) Drawing error is there

Dumitru-Alin (HunterD) updated the task description. (Show Details)
Dumitru-Alin (HunterD) raised the priority of this task from to Needs Triage.
Dumitru-Alin (HunterD) set Type to Bug.

Error on 2.74: http://i.imgur.com/D2M6Gtn.png
No error on 2.73: http://i.imgur.com/8gPc4mi.png

To make clear the error reproduction steps: Deleted Blender Foundation folder, started Blender, set Outline Width to 5 pixels, Select an Object

Bastien Montagne (mont29) triaged this task as Normal priority.Apr 26 2015, 3:00 PM

Can confirm the issue here (linux, GTX850m, nvidia drivers 340.65). Antony, is it known glitch from changes in draw code?

It's due to viewport compositing. The idea is that we draw the grid last without depth mask, not first, so that it won't get a halo from ambient occlusion effects.

I would close as working as expected unless others think it should be as it was before.

Well… not crucial, but to me it’s not really nice to have that grid always in front of outline… Also inconsistent with behavior of grid with solid object itself (where zbuffer must be active somehow?). Pure 'user feeling', I do not know enough code behind it to judge. ;)

I will just make it drawn after only if we use ambient occlusion...will still have the issue when using compositing but then at least we can close those reports with a nice "shooo and wait for new viewport" reply.