Alternativa Class Generating AIR App

Through my recent experience with Alternativa, I can say hands down that getting your model out of the 3DS file format and into AS classes is simply the way to go. Yes, having classes that are thousands upon thousands of lines of nothing but vertex creation is kind of lame; but the performance gain from it is completely worth it. Especially when you consider that complex models take on the order of 10 seconds or more just to load from 3DS into your scene. I’ve seen some of these models load from AS classes in a third of the time.

So we have a function given to us in the API to generate a class from a mesh object, the generateClass() method. It creates a string which represents the entire class written out. But for models with multiple meshes contained in a hierarchy, it would be nice to have something create these classes automatically. So, I created an AIR app that does just that. Given a directory and a 3DS model, it will take the 3DS model, parse all of the meshes, and allow you to edit mesh names. Once you are ready, it writes the files out to the directory you choose. It will (hopefully) ignore all non-mesh objects, and will even create directories for multiple meshes contained within a parent mesh. Its a free app, do what you want with it. Just remember that you use it at your own risk, there is no warranty and though I will do what I can to help those with problems I may not have the time to fix every issue.

Now then, with that out of the way… To use it, simply install the AIR app (download the AIR or zip file here). Once you’ve installed and opened it, click the choose directory button:

Open Directory Image

After you’ve chosen the directory, click the Choose 3DS File button:

Choose 3DS File Image

Once you’ve chosen both, you can edit mesh names and then export your files by clicking the Create Classes! button. Here is a short video showing how it works:

Example of Alternativa Class Generator

5 Responses to “Alternativa Class Generating AIR App”

  1. Bryan Bartow  on February 12th, 2009


  2. John  on February 13th, 2009


    Very handy. Now how about something that generates for us pesky cs3 users?

  3. Gunter  on March 13th, 2009

    I think what you’re making is very exciting stuff. Only I downloaded it and when I run it my Flash 10 starts throwing al kinds of errors.
    VerifyError: Error #1014: Kan klasse niet vinden.
    ReferenceError: Error #1065: Variabele _macMaxButtonStyle__embed_css_mac_max_dis_png_342489433 is niet gedefinieerd.

    Is this because Im running Vista ?

  4. beno  on April 14th, 2009

    Can this app run on windows? I’m having difficulty unzipping the file. I get a warning stating skipping META-INF/AIR/hash – the 32bit CRC stored in the local header for this file is not same as the 32 bit CRC stored in the central header.
    I’m assuming I need this file because when I run the SWF file I just get a grey screen.
    Hope you can help.

  5. crebstock  on April 20th, 2009

    There seems to be a number of issues with Windows. Quite interesting considering AIR is supposed to be cross platform. I didn’t test it on Vista, because I don’t have a copy of it. I tested it on XP and it ran fine for me.

    @beno I zipped the file using the standard mac compression tool. Maybe try the 7-Zip application( to see if that unzips it better for you.

    @Gunter This could be because I made it an Actionscript based AIR app. I think I’ll do an update with a Flex based air app that might fix that problem.

Leave a Reply