+2 votes

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?

in Engine by (52 points)

1 Answer

+5 votes
Best answer

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:

by (741 points)
selected by

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.

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

That's because MSAA onl works with 3D games. Please, take a look on this https://github.com/godotengine/godot/issues/12840
Hope it works!

Yes it was a great link, thank you!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.