Pixel border is blurry when moving

PechvogelPechvogel Posts: 11Member
edited August 10 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 :

Answers

  • MegalomaniakMegalomaniak Posts: 1,641Admin
    edited August 10

    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: 1,641Admin

    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 10

    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: 1,641Admin

    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

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file