Copy link to clipboard
Copied
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
thanks for reply.
the every title image is 256*256:
and I merge them to a complete image,such as:
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
thanks for reply.
the every title image is 256*256:
and I merge them to a complete image,such as:
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thank you.
it's due to compression.
I use -c with png2atf.exe and find the ETC1 format is normal, but the PVRTC and DXT1/5 also some kind of darkening on the outer edge.
maybe I can write compression algorithm by myself to solve the problem.
Sinious,Thank you again.
Copy link to clipboard
Copied
You're welcome and good luck!
Copy link to clipboard
Copied
Final solution(starling):
png2atf.exe use param -4
and set
image.smoothing = TextureSmoothing.NONE;
The image packer tool
TexturePacker set Extrude = 1
Find more inspiration, events, and resources on the new Adobe Community
Explore Now