CatalystApps/StarlingGAFPlayer

ATF support

Closed this issue · 10 comments

GAF animation for Flash and Starling has png atlases. I think it will be nice to support ATF atlases also.

from: http://gafmedia.com/forum/viewtopic.php?f=3&t=45&p=187#p187

+1

The support of ATF atlases is ready. All you need to do is:

  1. Convert png atlas to atf with any available tool, i.e. png2atf from Adobe Gaming SDK.
  2. Before you load any game resources by ZipToGAFAssetConverter you need to set textureFormat = GAFGFXData.ATF like this:
class FiremanGame
    ...
    private function onLoaded(event: Event): void
    {
        var zip: ByteArray = (event.target as URLLoader).data;

        var converter: ZipToGAFAssetConverter = new ZipToGAFAssetConverter();
        converter.addEventListener(Event.COMPLETE, this.onConverted);
        converter.addEventListener(ErrorEvent.ERROR, this.onError);
        converter.textureFormat = GAFGFXData.ATF;
        converter.convert(zip);
    }
    ...

More info coming soon to our blog.

Thanks you!

Mb it is possible to add some settings where user can define location for adobe game sdk and choose output atlas format (png \ atf) also imho it whould be good if ZipToGAFAssetConverter can detect atlas format by file extension.
Also there is need any option to define atf-compilation parameters, because this format support different compression options (for different platforms), i think it can be any textfield, which value we add like additional compiler options.
Ideally we need ability to define several output files with different compilation options for one asset-file. Because often we prepare assets specially for target platform (e.g. for ios we have asset with one compression, for android we have the same asset but with another compression).

Mb split that in smaller tasks.

Agree with LordXaoca, it's will be cool to convert to GAF in one step.
Also set textureFormat to converter is wrong way, converter should detect atf/png itself.

Hi! Can you reopen this issue or add any comment?

@LordXaoca for now we don't have plans to include ATF support right into GAF Converter. We are concentrating on the other tasks with high priority. But maybe you will be able to automate conversion into ATF by yourself when we release CLI

I understand your point, can you estimate when you release CLI? And maybe there is any detail description about it

We are working on CLI right now. There is one technical issue that limiting us in CLI development. But I think first release will be in the middle of September. And there is no detailed description about CLI because we still haven't decided which way to implement CLI from technical point of view. You can subscribe to our blog here http://gafmedia.com/blog and be sure that you won't miss any updates.