I have a problem with scaling.


#1

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?


#2

I haven’t noticed it before.
It seems that sprite enables antialias.


#3

Well, is there any solution to fix this?


#4

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();

#5

Thank you so much. You made my day. :slight_smile:


#6

My pleasure:)