2D sprites in game view are not rendered correctly

Hello, I have the following picture with:

  • a green shield sprite with point no filter and wrap mode Clamp
  • a black explode sprite with point no filter and wrap mode Clamp
  • a white square sprite (unity default)
  • a black explode sprite with point no filter and wrap mode Clamp

however in game view (not in scene view) there are some artifacts.

For example:

  • the black sprite into green sprite have some light green at its edges
  • the black sprite into white sprite have some pixels not perfectly squared.

What’s the problem?

Is there some settings I must do to achieve perfect pixels in game view?

Thanks.

Try to change the following:
-Max size → bigger is better quality
-Resize Algorithm -->Mitchell
-Format → RGBA 32

I already have that values setted as you said…

i did not use it… but exist something called “pixel perfect” maybe it can solve your problem. Read about it.

https://blogs.unity3d.com/es/2019/03/13/2d-pixel-perfect-how-to-set-up-your-unity-project-for-retro-8-bits-games/

Thanks, with pixel perfect the problems are gone away.

In any case I wonder before this component, make games with 2d graphics had this imperfection? Possible?

I really don’t know… i’m a noob with this… some time ago i was trying with some graphics libraries but never arrived so far like with unity… But i can tell you they had very bad quality… the best was OpenGL…

And when i was a child (80’s and 90’s) the games was very very simples. Very bad quality. In those times the programers had a lot of hardware limits. (You should watch the Spectrum, Amstrand, Amiga500 or Atari games… probably you will have a heart attack XD)…

So, in whatevercase today you can program games thousen times better than since 20 years ago… so, don´t worry about. XD

Best regard!!

I explain: Because unity is a 3d engine it will try to render your 2d graphics as 3d, therefore you have to create perfect conditions if you want to use perfect pixel art, or else there will be small 1 pixel errors in many cases, because unity was not created to be used for pixel art games, its a bonus feature that you can use it for 2d.

Try disabling antialiasing in your project’s quality settings. I had similar issues before and that solved them. Additionally, make sure you’re importing the sprites correctly: in your case I think you want Filter Mode to be Point (no filter), to get the traditional retro pixelated style.
For example:

Filter Mode: Point (no filter)
6955607--818696--upload_2021-3-20_13-50-26.png

Filter Mode Bilinear

Disabling antialiasing is a good advice. Images looks better. However for a perfect 2d pixel the pixel perfect camera is today the best solution.