This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

Pixel border is blurry when moving

PechvogelPechvogel Posts: 11Member
edited August 2019 in 2D

Please see the black borders of my image. When going up, my pixels are clear. When not going in a straight line (slanted) my pixels are getting unclear.

Any things I can do to fix this?

PS: I already tried unchecking the filter from import but that just made it worse.

Thanks a lot!

Tags :


  • MegalomaniakMegalomaniak Posts: 2,580Admin
    edited August 2019

    Try disabling mipmapping?

    edit: so in project settings, Rendering - Quality, you could try toggling use pixel snap under 2d or Use nearest MipMap Filter under filtering.

  • PechvogelPechvogel Posts: 11Member

    I tried but I got worse. Or is this caused by the default grey background? I tried using the default image but got the same result there. I am pushing rigidbody2d's around the world, nothing fancy there right?

  • MegalomaniakMegalomaniak Posts: 2,580Admin

    Honestly it's kind of hard to tell from the tiny screenshot and would be easier with a testable file.

  • PechvogelPechvogel Posts: 11Member
    edited August 2019

    Could you tell me the correct way to import sprites? What dimensions should be used? Is the quality in the editor downscaled from the quality of the final .exe-file?

    I could give you a file but I just use an rigidbody2d to move in a not straight way. As sprite I am using the default image and you will see the edges being pixelated.

    Edit: after a lot of searching online, the problem I have is that my lines are aliased so I need to apply anti-aliasing. What helped for me is leaving 2 transparent pixels around my tiles so 32x32 has a border of 2px transparent and then my sprite starts.

  • MegalomaniakMegalomaniak Posts: 2,580Admin

    Ah, I see. I thought your issue with some blurring, but if it\s the opposite then that's a whole other story.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.