I scale a sprite and a tile map with same factor, but the quality is not the same.
Each left is a sprite. Each right is a tile map.
Why when scale up a sprite is not sharp as a tile map?
I scale a sprite and a tile map with same factor, but the quality is not the same.
Each left is a sprite. Each right is a tile map.
Why when scale up a sprite is not sharp as a tile map?
I haven’t noticed it before.
It seems that sprite enables antialias.
Well, is there any solution to fix this?
I found that, in TMXLayer::setupTiles()
, it invokes _textureAtlas->getTexture()->setAliasTexParameters();
. So it looks so sharp. You can apply that function to Sprite to be sharp. The codes looks like
sprite->getTexture()->setAliasTexParameters();
Thank you so much. You made my day.
My pleasure:)