FlxAtlas and sprite's border artefacts

22 views
Skip to first unread message

Vitaliy Kolesnikov

unread,
Aug 27, 2015, 1:25:14 AM8/27/15
to HaxeFlixel
Hi!

I use in my game textures generated in ShoeBox. When the game is working on Android, I see border artefacts (option FlxG.camera.antialiasing = true).
Here they are:


There are no artefacts if FlxG.camera.antialiasing = false:


But it looks no good.

The results of my experiments show that there is no problem if I use textures from TexturePacker.
Look: 

It's perfect.

So, I suspect that that textures are loaded or parsed in some different ways in FlxAtlas.fromSparrow and FlxAtlas.fromTexturePackerJson methods. Because in both textures I use extrude option. But for ShoeBox textures it has no effect in Flixel.

Any ideas or comments?

SruloArt

unread,
Aug 27, 2015, 4:20:38 AM8/27/15
to haxef...@googlegroups.com
* I don't really see anything in the code to explain the difference, so it's possible that the actual .png file output is different (different alpha color would explain it)...
* Anyways, you can use this: http://www.leshylabs.com/apps/sstool/ to pack your images in a one of the two TexturePacker formats...
Reply all
Reply to author
Forward
0 new messages