Quads have borders from neighbours (Tileset)
Posted: Sat Sep 07, 2019 10:48 pm
Hi,
I am trying to cut a tileset into its pieces. For some reason if I cut a tile, the colors from the tile next to it are mixed into my main tile, like if the pixels of the image got interpolated.
In the original tileset there is a clear border: In Love2D however, the brown color seems to be mixed into the left border: (the same quad placed next to each other two times)
I used the following commands to obtain the quad
So how can I avoid this effect?
Would appreciate help, thanks in advance.
(I did some research on google and on the forum about "interpolation" and "tilesets" with the engine, but I didn't find anything helpful.)
I am trying to cut a tileset into its pieces. For some reason if I cut a tile, the colors from the tile next to it are mixed into my main tile, like if the pixels of the image got interpolated.
In the original tileset there is a clear border: In Love2D however, the brown color seems to be mixed into the left border: (the same quad placed next to each other two times)
I used the following commands to obtain the quad
Code: Select all
img = love.graphics.newImage("myImage.png")
quad = love.graphics.newQuad(x, y, tileWidth, tileHeight, xDimension, yDimension),
Would appreciate help, thanks in advance.
(I did some research on google and on the forum about "interpolation" and "tilesets" with the engine, but I didn't find anything helpful.)