Bug with smoothed images whose edges reach the edge of the sprite

I don’t know if anyone has reported this before. There is a bug with images whose edges reach the edge of the sprite size if they are set with the “Smooth Image” option enabled. These edges do not have correct smoothing (it is as if the image was cut without smoothing at those edges). This could be solved by making the sprite at least one pixel larger so that the image does not reach the edge of the sprite. However, for objects like Tiled sprite and Panel sprite (which happens the same thing) there are not as many options to solve it because many times it is necessary to cover the entire length and/or width of the sprite.
I clarify, this error is not only in new versions of Gdevelop, but it is from a long time ago.

1 Like

This is not an error or bug with GDevelop. This is an unrealistic expectation. You have given GDevelop an image, said “Here is the sprite image to use” and then expect it to increase the dimensions on some occasions. That’s not how it works. You need to provide an image with enough space around it to cater for the smoothing effect. Otherwise it could lead to issues where the image size is required to be an exact size, and the smoothing would change that and render it to an incorrect size.

I understand what you are saying, so I made it clear that it can be solved the way I mentioned in the common objects. However, tiled sprites and panel sprites are made to repeat, so images are most often used to fill the full height or width of the sprite.

How do you think this can be solved in a tiled sprite or panel sprite?
If these objects don’t look good at the edges when the image is smoothed, it’s still a problem.

With a panel sprite by having enough space around the edge and corner images where they make up the outside of the panel. The middle image and insides of the edge & corner tiles will need to be hard up against the edge, otherwise it looks weird.

I can’t see a way with a tiled sprite, or why you’d want to do that. If you smooth the edges of the tiles sprite image, then each individual tile will have a smoothened edge.

Smoothen the edges of the images yourself, in an art package?

Could be.

Perhaps an easier option is to use the panel sprite instead of the tiled sprite whenever possible. I don’t know if there is a difference in performance between using one or the other. In the editor it slows down a lot by having many of these objects in the scene, but it does not translate as much into consumption during the game.