Skip to main content
July 22, 2013
Answered

atf texture border has some...

  • July 22, 2013
  • 2 replies
  • 1433 views

I have 2*2 map tile (png) such as:

and I use atf , it become:

I use png, it always perfect.

But when I use atf, even if use atfviewer(Adobe Gaming SDKs).it have this too.

I don't know why.who can help me? thanks

This topic has been closed for replies.
Correct answer

thanks for reply.

the every title image is 256*256:

and I merge them to a complete image,such as:

2 replies

August 1, 2013

Final solution(starling):

png2atf.exe use param -4

and set

image.smoothing = TextureSmoothing.NONE;

The image packer tool

TexturePacker set Extrude = 1

sinious
Legend
July 22, 2013

Are you being explicit with the images you attached? The first image is 244x305 and the second 193x197, neither of which is a power of 2 (2x2, 4x4, 8x8, 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, 1024x1024, 2048x2048 or in AIR 3.8 4096x4096) which you'd need (with square size) if you're going to use compression. The png2atf would have to add meat to the picture to make it a proper texture. However I don't see where you're getting that extra information in the ATF like the dotted line, etc. I've never seen that happen.

ATF basics here:

http://www.adobe.com/devnet/flashruntimes/articles/atf-users-guide.html

Correct answer
July 23, 2013

thanks for reply.

the every title image is 256*256:

and I merge them to a complete image,such as:

sinious
Legend
July 23, 2013

So in the picture above you're showing how the ATF textures are aligning together and there's some kind of darkening on the outer edge of each 256x256 so it looks like each piece is squared?

Have you tried converting a few pieces without using the -c compression to see if the lines go away? It looks like an edge compression artifact.