1
Graphics / Re: texture smoothing causes render artifacts
« on: December 02, 2023, 08:45:31 pm »
Thanks for responding Hapax!
"I'm not sure why you want to smooth solid colours..."
Indeed, this is just a solid color example of the problem I'm seeing in the actual game engine that uses textures that are not simple solid colors.
"...this is a common problem when using tiles at non-perfect integer pixels..."
Please help me understand this. What about my example texture in the code provided is a "non-perfect integer pixel"? How can I create source texture tilemaps that ARE perfect integer pixels. I would gladly do whatever this is to avoid having to create tilemaps that have transparent buffer zones around each tile. I'm just interested in learning how to do this the smart way, or whatever way everyone else does it to avoid this bug.
"I'm not sure why you want to smooth solid colours..."
Indeed, this is just a solid color example of the problem I'm seeing in the actual game engine that uses textures that are not simple solid colors.
"...this is a common problem when using tiles at non-perfect integer pixels..."
Please help me understand this. What about my example texture in the code provided is a "non-perfect integer pixel"? How can I create source texture tilemaps that ARE perfect integer pixels. I would gladly do whatever this is to avoid having to create tilemaps that have transparent buffer zones around each tile. I'm just interested in learning how to do this the smart way, or whatever way everyone else does it to avoid this bug.