Jan
25
2014

Flash SWF Anims To Unity (GAF Converter)

gaf_animation_converter_unity_test_1

GAF Animation Converter

What is it: Flash Animation Converter (convert .swf animations to Unity)

Quick test with GAF+Unity, let’s see how it works

–          Download & Import GAF Player from AssetStore (free) : http://u3d.as/content/catalyst-apps/gaf-animation-player/62G
–          Lets get some sample flash animations from:  http://www.glitchthegame.com/public-domain-game-art/ ( I took the “Overlays (Effects) SWFs (3MB)”, and 1 file from there “rainbow_superharvest.swf”)
–          Then go to their website: http://www.gafmedia.com/converter/
–          Drag & drop the swf to that conversion preview place
–          Enter your email for more details.. hmm just sends the same preview link, how to get the actual file?
–          I guess have to register..
–          Ok, now can login and create new project
–          Target frame work: Unity3D
–          Target FPS: 31 (i’ll use the default value)
–          There is option to select [ ] HD Textures, ill skip it for now
–          Ok, now can upload animations, I’ll drag the “rainbow_superharvest.swf” here
–          Click convert..only took 10sec or so
–          Download GAF file
–          Hmm its zip file.. (have to read docs..)
–          Ok, unzip it, copy those 2 files to unity
–          Start GAF Converter (Window / GAF Converter)
–          Select GAF animation file (the text file from the zip)
–          Click Process GAF
–          Displayes some frame info and new options, I’ll just use defaults
–          Game Window appears with the animation object
–          Lets hit play!
–          Looking nice! (except half of the rainbow is missing, it did display correctly in the conversion preview window **In the webplayer the rainbow is actually correct)

2nd Try

–          Lets try bigger animation “rook_fly_up.swf”
–          Upload for conversion
–          Download GAF zip
–          Open zip
–          Drag files (using explorer) to unity assets folder
–          Start GAF Converter (Window / GAF Converter)
–          Click Process GAF
–          Click Create GAF Animation
–          Hit Play in unity!
–          This one worked perfectly.

Is it free?
Seems to be free for limited amount of files (per month)
http://gafmedia.com/converter/?action=faq#faq_6_1


Webplayer of the results:

http://unitycoder.com/upload/demos/Unity_GAF_test/


Ideas/Feedback:

– Getting couple notices from script “Assets/GAF Animation Player/Editor/GAFEditor/GAFConverterToolUnity.cs(301,29): warning CS0618: `UnityEngine.Camera.mainCamera’ is obsolete: `use Camera.main instead.'”
– Game window undocks/popups everytime after conversion? (if it was open)
– Some kind of batch conversion tool might be nice..
– Anims could be converted as Unity builtin 2D animations? (then could use them as actual sprite objects?)
– Uploading animations, have to hit that upload div exactly, otherwise browser tries to open the local file instead.. (could have full window upload area)
– Downloading GAF files as invidual zips, not so fun, you cannot drag & drop the files to unity project window from zip directly (have to open explorer).. Rather could download all in one zip, or download those 2 files and can drag & drop them to unity from browser downloads list..
– Docs mention that .json file gets converted to .txt, that could be done in the web converter already (because they use AssetImporter to rename *.json files to *.txt, what if I want to have .json files on my project?)

Image2: web based swf2gaf converter

gaf_animation_converter_web_upload_view


1 Comment + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.