As i’m still a noob in game development, i wanted to stick with 2D games first. Now i activated the Paper2D plugin and started making animations from my spritesheets.
But i have a huge problem: my sprites (pixel art) are blurry and they are lit in the scene, eventhough there aren’t any lights and i attached a spritematerial to those sprites, where ‘Lightning Model’ is ‘Unlit’.
Here’s a picture of the scene with some sprites:
And here’s a picture of the spritesheet, imported in UE4:
(well, this doesn’t really look good :P)
So… does anyone know the trick? Because i’m simply stumped for an answer.
Oh, and i didn’t changed anything on those settings. So everything’s at “normal state”.
Not sure about the lighting; that should be 100% controlled by the material assigned to the sprite, but you want to change filtering from linear to nearest on the texture you used for your spritesheet to get rid of the blurriness.
You are not at a pixel multiple of the size of your sprite. To get ‘pixel-perfect’ sprites you need to move your camera in or out (perspective) or adjust the ortho width (orthographic) until you end up at a nice multiple. For example, say you want to have a 320 ‘pixel’ screen but the actual screen width is 1920, then you need to be back so that each ‘pixel’ is really 6 pixels on the screen. If you’re not exactly on a multiple, you’ll see some source pixels being larger than others (e.g., if you’re at 4.5, then some pixels will map to 4 destination pixels while others map to 5).
That’s wierd: this solved this light issue. The sprites are still lit, but not as much as before.
I have only one question left: the spritesheet is now sharp, but i have still these wierd red artifacts in the background and now that camera is “pixel-perfect”, i see those artifacts in the game. Is there any trick?
I went into Tappy Chicken to see how their materials are set up differently than mine. Turns out they are not, so I compared the source art to the displayed Chicken, and the same “lightening” is happening here, too. It’s a bug, me thinks.
Check to see if you have automatic exposure/eye adaptation enabled or disabled on your global post process volume. If you disable it (or force exposure to +0), you shouldn’t see any change in brightness.
I figured it out, There is a “sRGB” setting that said “uncheck if using alpha channels individually as masks” I thought applied to me. Re-checking it made the texture match again.
I went back to tappy chicken to double check what I’d found. Sure enough, there is a grey border to the chicken’s (eyes?) that gets lost (bleached white) when you press play. My sprite is matching much better now, but I wonder why Tappy Chicken is still brightening by the smallest ammount…
I’m having trouble attaining the visual clarity I want. When you say “move back”, what do you mean, exactly? By how many Unreal units should we move the ortho width ‘back’ to get the desirable pixel perfection?
My sprites won’t show up in nice, crisp form. Running a 1920x1080 monitor.