Godot rough edges

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nv7-GitHub

I have found that the edges of my cube in Godot look very rough, like a poorly rendered circle. Here is an image of what I mean:
When I created this in Unity, I had smooth edges:
Why are edges in Godot so rough? Is there a setting I can change to make them smooth like Unity?

:bust_in_silhouette: Reply From: DDoop

Edge roughness in computer graphics is solved via anti-aliasing.
In Godot, you can set rendering quality at the project level in the project settings screen under Rendering>Quality>Filters>MSAA
enter image description here

This is what a cube looks like at 16x MSAA with all the other settings at default:

Note that 16× MSAA is very slow and tends to be implemented by graphics drivers as 2× SSAA + 8× MSAA. This can cause various visual glitches down the line.

I’d recommend sticking to 2× or 4× MSAA most of the time.

Calinou | 2020-07-09 07:20

I used a ploygon2D and still with MSAA 16x, the borders for polygon is rough, what can I do for 2D? :frowning:

SdSaati | 2021-05-29 02:14

That’s because MSAA onl works with 3D games. Please, take a look on this Anti-alias in 2D · Issue #12840 · godotengine/godot · GitHub
Hope it works!

Catsyser | 2021-08-17 01:18

Yes it was a great link, thank you!

SdSaati | 2021-08-18 00:17