1
Technical forum / Strange artifact on scaled png
« on: March 02, 2016, 03:00:49 PM »
Hello,
Recently, I've been noticing strange things happening on the transparent pngs I use for my game when they are scaled by the engine.
Here is an exemple:
My main character has subframes for animations (turning the head, blinking,...):

Sometimes, when the character is scaled in-game, strange lines appear on the edges like this:


(those images are screenshots from the game. I've created a scene with a white background so the problem is easier to spot)
You can see there is no strange line on the 100% size. They appear only when the character is scaled.
Also:
- it happens when transparent png are downscaled but also when they are upscaled.
- on my example it happens on subframes but I also saw it on single sprites with no subframe.
- it happens when I play the debug version from Project Manager but also when the game is compiled.
- it doesn't happen all the time but only from time to time.
I have no idea where it comes from!
And I don't how to solve it.
So if you have any idea, it would be wonderful!
Many thanks in advance.
Recently, I've been noticing strange things happening on the transparent pngs I use for my game when they are scaled by the engine.
Here is an exemple:
My main character has subframes for animations (turning the head, blinking,...):

Sometimes, when the character is scaled in-game, strange lines appear on the edges like this:


(those images are screenshots from the game. I've created a scene with a white background so the problem is easier to spot)
You can see there is no strange line on the 100% size. They appear only when the character is scaled.
Also:
- it happens when transparent png are downscaled but also when they are upscaled.
- on my example it happens on subframes but I also saw it on single sprites with no subframe.
- it happens when I play the debug version from Project Manager but also when the game is compiled.
- it doesn't happen all the time but only from time to time.
I have no idea where it comes from!
And I don't how to solve it.
So if you have any idea, it would be wonderful!
Many thanks in advance.