Page MenuHome

Inconsistent anti-aliasing in wireframe viewport
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.16299-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.75

Blender Version
Broken: version: 2.83 (sub 11), branch: master, commit date: 2020-03-29 21:36, hash: rBa103d09df485
Worked: I can't find a previous version where this ever worked correctly.

Short description of error
Inconsistent and broken behaviour of sampling/anti-aliasing settings for wireframe viewport

Exact steps for others to reproduce the error
Default cube view on startup; switch to wireframe render; Edit | Preferences... | Viewport | Quality; Changes to Viewport Anti-Aliasing appear to have no effect, the viewport remains as the default view with no anti-aliasing applied.

Next, toggle X-Ray (ALT+Z); select No Anti-Aliasing followed by any of the other options e.g. 5 Samples; viewport now only shows silhouette edges

Also, clicking in the viewport now causes a redraw which ignores the settings and reverts to a no anti-aliased render.

With a full white viewport background there can be a difference in line thickness between silhouette edges and interior edges when switching between sample counts (Single was thick and 32 thin).

Viewport Render Image and Viewport Render Animation appear to ignore these settings as well.

Viewport Sampling in Workbench seems to imply that this is the same control as in Preferences but appears to be disconnected and has no effect that I could observe.

I was unable to create any output images files with anti-aliased wireframe edges.

Event Timeline

Ankit Meel (ankitm) removed Ankit Meel (ankitm) as the assignee of this task.Mar 31 2020, 2:53 PM

It's good enough to comment, and tag. Don't assign.

My report is about the omission of any antialiasing in the viewport when enabled. However, I can see from T73494 that there might be some tiny changes in the viewport that I didn't notice in my testing when stepping through the sampling options. My case does not involve Edit mode. My scene generates output with missing edges when changing to specific sampling settings which are not persistent when switching focus back to the viewport with a mouseclick.

With No Anti-Aliasing set:

then switch to Single Pass Anti-Aliasing (the image disappears):

then switch to 5 Samples and you see grey silhouette edges (interior edges missing):

switching to 32 Samples appears to make no difference:

switching back to 5 Samples renders with thicker lines:

clicking back into the viewport redraws the scene with a quality of the No Anti-Aliasing option as in the first image in this post.

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Mar 31 2020, 6:53 PM

@Paul McManus (PaulMc) can you upload sample .blend file?

@Richard Antalik (ISS) The default cube exhibits this as in my first post. The steps involved can't be recorded to a blend file.

Richard Antalik (ISS) changed the task status from Needs Information from User to Needs Information from Developers.Apr 16 2020, 10:09 PM

I am going over older reports that are waiting for info, I forgot to change status on this report. I apologize.

Was this fixed in final release? It does resemble T75815 for sure.

Ankit Meel (ankitm) changed the task status from Needs Information from Developers to Needs Information from User.Jun 28 2020, 7:49 PM

@Paul McManus (PaulMc) please update if it's been fixed or not.

No, this is not fixed. However, the inconsistent behaviour now appears more consistent. The scenes I used to test this initially still show aliased lines in the viewport and also in the output image when using View | Viewport Render Image to take a snapshot of the active viewport. This produces the same image irrespective of the sample settings in Quality | Viewport Antialiasing. The Overlay Smooth Wires option does appear to improve things slightly with few edges but most are still badly aliased.

@Paul McManus (PaulMc) Did you try updating your graphics driver? I know you were using 445.75 when reporting the bug, but the newest one is 451.48.

What you can also do is try launching blender using blender_debug_gpu_glitchworkaround.cmd and see if it changes anything.

Anyway could you attach the result of running blender_debug_gpu.cmd here so we can see if there is anything wrong. Also your system-info.txt would be nice.

Hi @Clément Foucault (fclem) , I was using 446.14 but have updated to 451.18 and the results are the same.

Here are the log files

Running blender_debug_gpu_glitchworkaround.cmd appeared not to make any difference.

This is quite strange as you have a quite usual setup and there is no other reports like this one. Can you try using factory startup to see if that does not come from an addon?

Running from blender_factory_startup.cmd made no difference. Is that a sufficient test?

To add to this a little (and repeat some earlier comments) my graphics card is noisy which means I can hear a sound when it is processing. When I open the Preferences dialog and change the sample settings there is a noise as if the screen is re-rendering but the on-screen image doesn't change. It is as if there is double-buffering in place but the buffer never gets switched. As I move down the sample settings to 32 the sound gets longer ~ 1/2 second on the last one (32) with a big scene and just a tiny click on the top one with no anti-aliasing. Changing that setting makes no difference to the screen image. The only option in this panel that appears to make any change is the Overlay Smooth Wires checkbox. I've now tried this on another computer and the results are the same. This was a laptop with a GTX 980M NVIDIA card. Will any still or video screen captures help?

@Paul McManus (PaulMc) Video capture can help to understand yes. BTW did you tried 2.81.1 and 2.90 alpha to see if it makes any difference?

Here are some screen captures and zoomed in areas from all three versions (2.81, 2.83 & 2.90). I didn't do every combination of settings, just a sample to show the differences. If there are any that you'd specifically like to see then please let me know.

I see nothing wrong in you aatest.pdf

I think you are just reporting that the antialiasing changed in 2.82. Yes it changed as we have completely rewritten how antialiasing is done for overlays. There was technical benefits for this choice but overlays and viewport render are antialiased separatedly. The dashed edges are one of the issues but I fixed it entirely in 2.83 if I remember correctly.

So to be clear:

  • Viewport Anti-Aliasing: Should affect Shaded Outlines (the one you can change the color in shading pop-over) and shaded meshes.
  • Smooth Wire: Should affect selection outline and all overlays (empties, wireframes, etc...).

I was under the impression that you were reporting that the wireframes disapeared under certain settings.

This is what this scene shoud looks like with smooth wires.


Sorry, @Clément Foucault (fclem) it sounds like my original post might have misled you.

I wasn't aware that the Viewport Anti-Aliasing option only applied to shaded outlines.

I also wasn't aware of the criteria for when Smooth Wire would be applied. Or that these two options were in face separate. The online documentation is confusing in this respect.

In my original report the "interior" lines (non-silhouette edges) did indeed disappear. However, that effect seems no longer reproducible.

I always thought that anti-aliasing would cause a perceived reduction or removal of the steps in a diagonal line normally associated with the underlying grid of pixels on the screen.

If you look in the sample I sent there are still jagged lines where I would have expected them to be a lot smoother. Also in some cases, particularly silhouette edges, the lines are broken with parts that are invisible - is this what you are referring to as the dashed edges issue?

Your sample image is also a lot lower resolution than my screen, and it looks like the lines are thicker. Is the fact that I'm on a 4K monitor a factor in this, perhaps?

Ha yes if you have DPI scalling to 2 or line thickness is big, the aliasing can be worse. But the dashed wire edges shouldn't be there which your images suggest it's not the case.

Other than that there is not issues.

Clément Foucault (fclem) closed this task as Resolved.Jun 30 2020, 3:37 PM
Clément Foucault (fclem) claimed this task.

I will close this report as the original issue has been resolved.