Hi guys,
I am loading bitmaps from a large 2048x2048 pix TexturePack using
local pack = TexturePack.new("gfx/vaWalk.txt", "gfx/vaWalk.png", true)
local anim_crawl = {}
for lp=25,74,1 do
anim_crawl[#anim_crawl+1] = Bitmap.new(pack:getTextureRegion("va0"..lp..".png"))
end
And, at first, the bitmap looks fine, see top image, yet its anchor points are off, see top picture.
But when I try
body.bitMap:setAnchorPoint(0.5,0.5)
the bitmap get blurry... any ideas how to fix that? Thanks!
Comments
Try to turn off filtering to false see if that helps.
Likes: SinisterSoft
local pack = TexturePack.new("gfx/vaWalk.txt", "gfx/vaWalk.png", true)
when I set it to false, the bitmap still looks crisp after setAnchorPoint(0.5,0.5), but starts getting jagged after rotating.
But if I keep and filter on true and not use setAnchorPoint(0.5,0.5), bitmap look great, even then rotated, yet it is offset from the position.
Right now the best solution looks like finding some alternative to setAnchorPoint(0.5,0.5)
edit:
noticed that this blurring occurs ONLY then I use body.bitMap:setAnchorPoint(0.5,0.5) , but (0,0) or (1,0) or ( 1,1 ), etc. would do fine.
Likes: RogerT
Likes: RogerT
Likes: RogerT