Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

atf texture border has some...

Guest
Jul 22, 2013 Jul 22, 2013

I have 2*2 map tile (png) such as:1副本.jpg

and I use atf , it become:2副本.jpg

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

TOPICS
ActionScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jul 23, 2013 Jul 23, 2013

thanks for reply.

the every title image is 256*256: QQ图片20130723222443.jpg

and I merge them to a complete image,such as:QQ图片20130723223030.jpg

Translate
LEGEND ,
Jul 22, 2013 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 23, 2013 Jul 23, 2013

thanks for reply.

the every title image is 256*256: QQ图片20130723222443.jpg

and I merge them to a complete image,such as:QQ图片20130723223030.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 23, 2013 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 25, 2013 Jul 25, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 29, 2013 Jul 29, 2013

You're welcome and good luck!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 01, 2013 Aug 01, 2013
LATEST

Final solution(starling):

png2atf.exe use param -4

and set

image.smoothing = TextureSmoothing.NONE;

The image packer tool

TexturePacker set Extrude = 1

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines