0 votes

Dear all,

I'm using 2D sprite node with a png of a plain circle and the render quality is quite bad. Does someone know how I could improve the rendering?

in Engine by (21 points)
edited by

It seems to be related to transparency, color used(white) and format. Is there any better format than png to use ?

I found a way to workaround the issue. My png was owning a circle with the same diameter as the picture size. When I enlarge the size of my picture, the artifacts disappears. Can we consider this as a bug in godot rendering ?
But I still have a kind of black border when the color behind is lighter ( such as white circle on yellow)


Is the first picture taken on a sprite seen smaller as it really is? In that case the renderer is going to discard some pixels. You could try to toggle mipmaps and filter, to see if it improves?

Also, it's not that clear, do you actually don't want the black borders?
The docs have a section about it http://docs.godotengine.org/en/stable/tutorials/asset_pipeline/importing_textures.html#blending-artifacts

Could be a texture filter thing (like mipmapping), that thing use to affect edges, check the texture options (edit or the arrow right of the texture property).

That can be some png exporting option issue too (like alpha values), but can't be sure, try playing with both (export options of your editor and texture options).

Yes that's what i noticed. It would be nice to find the right combination. I'm surprised nobody noticed it before ...

Please log in or register to answer this question.

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 webmaster@godotengine.org with your username.