Showing posts with label demo. Show all posts
Showing posts with label demo. Show all posts

Thursday, September 10, 2009

Avatar Core 0.5.0 + My Avatar Editor Lite

Avatar Core 0.5.0 has now been released on the project page (both SVN and ZIP download). The release notes have more information about the changes made.

It should be noted that the SVN repository has been redesigned to also include documentation, examples, and a library SWC for the framework. The location of the source files have moved a couple of directories deeper as a result, so you may need to make some changes with respect to classpaths/source path references. The ZIP download also reflects this restructuring, though it only includes the source code and the same selection example as before.

"My Avatar Editor Lite" is now a new demo example. The source is currently only available through SVN, though you can browse the demo source files through the project page. A live version of My Avatar Editor Lite is also viewable online. It's a great example in that it uses a lot of the features of the framework.


I've also combined the two new demos from before (with Fred) into one demo now listed in the SVN examples. It modifies position, scaling, and rotation using mouse interaction. However it doesn't go so far as to incorporate Constrain behaviors. The original demos will probably remain on the wiki for now unless they end up becoming incompatible with new releases.

So what's next? For one, the documentation will need updating. I don't think it covers a lot of the new changes very well and is pretty lacking in other areas too. With that, also more attention given to the documentation on the wiki. Then, its just a matter of tying up and loose ends preparing for a 1.0 release for production use.

Friday, September 4, 2009

Avatar Core Rendering My Avatar Editor Characters

I recently got an example using Avatar Core to render My Avatar Editor character heads up and running. It uses the same visual assets but none of the original codebase (My Avatar Editor does not use the Avatar Core framework; it was created before work on Avatar Core started).


Clicking on the head will get you a new random variation.

This will ultimately become another demo, but I still want to add controls for modifying characteristics - almost to parity with My Avatar Editor, but lacking anything that would unnecessarily over-complicate.

In doing this exercise, as expected, a number of additional bugs and limitations were addressed. They will be fixed in the next release due out with the completion of this demo.

Monday, August 31, 2009

Avatar Core Updates

A bunch of new Wiki pages have been added for Avatar Core, adding a little more in terms of explanation for the different parts of the framework. When I get around to it (though probably not any time soon), I'll try to include some additional visual aides and maybe demos, or links to demos that cover each specific topic.

Speaking of demos, the source code for the previously mentioned demos have also been posted there (Demos wiki page). However, there have been some problems with the hosting for myavatareditor.com where the files are hosted, so they might not be accessible at the moment.

When writing up some of the additional wiki documentation, I ended up adding a few more things to the framework. In other words, version 0.2.1 is looming. But I also just ran across another issue which is a little more serious and something that could require some additional changes to the API (never fun). I'll have to think about how to solve that problem and weigh in convenience vs. performance and all that jazz. Without getting into too much detail, the problem essentially boils down to art being loaded far often than it needs to be.

Friday, August 28, 2009

New Demos Preview

I've been working with some simple sample applications of the framework preparing for the next, soon to be released build of Avatar Core (0.2.0). The purpose of these samples was to make sure the features that have been implemented into the framework can actually be used when applied in the real world (vs. looking good on paper). The samples will be available for download and presented as demos on the Avatar Core project page when the 0.2.0 build is released.

The two sample demos previewed below demonstrate manipulating feature properties (position, size, and rotation) and the use of Mirror and Constrain behaviors. They use a new character I whipped up for these samples that I like to call Fred.


The source for each demo only amounts to about 150 lines of code - this including the XML descriptor for the avatar (which takes up about 60 lines by itself). Again, these will be available (in FLA form) when 0.2.0 is released, shortly.

Monday, April 27, 2009

Avatar Core 0.0.3

Avatar Core 0.0.3 is now available from the Avatar Core Project Page. The same structure of the framework remains mostly the same, though a lot of the API has changed. A lot of this is a result from the increased focus on allowing Avatar's to be able to be self-contained, without needing a library to link to. Currently, this does introduce a problem with some features of the framework (which will have to be figured out in the next release), but I think overall it's for the best.

The live demo has also been updated (and can be downloaded, with the framework, from the downloads page).

More information about this release can be found in the release notes.

Monday, April 20, 2009

Avatar Core 0.0.2 Download Update

For anyone not wanting to mess with SVN on google code, I've added a download of the demo in the downloads page that includes the demo with the full framework source code. This will give you the necessary files to compile the sample right out of the box, or at least get you the full framework source code in one download without SVN.

FYI, the demo was created with Flash CS4. However, all source code is in external .as files, so you could easily recreate the FLA files in CS3 if you have that using the AS files as document classes for their respective FLAs. You can see a live demo here.

Keep in mind its still early, and changes may yet be made to the framework resulting in changes in functionality and/or API.

Thursday, March 19, 2009

Avatar Core

I'm naming the new avatar framework Avatar Core. It will be (isn't yet) hosted on Google Code under MIT, just like My Avatar Editor. In fact it will essentially be under the My Avatar Editor umbrella, using www.myavatareditor.com as its home page - of sorts.

I've got a new, very simple Avatar Core demo online using a couple of the Mii character assets from My Avatar Editor. Like My Avatar Editor, it consists of two SWF files, the editor (seen in demo link), and the viewer. The editor loads the viewer, reads its definition (which it, in turn, loads from this XML file), and provides appropriate selections. Both the editor and the viewer were written in less than 100 lines of code each (not counting the Avatar Core framework). Because of the flexibility of this framework, you could potentially grab these SWFs now, put them on your server, and use your own XML definition and graphics to completely change the avatar and all of its features including what it displays and what it could potentially display as well as the options provided in the editor interface.



There have been a few changes in the XML since the last post. The most important are a couple of new features including default transforms and parent definitions. A transform represents how an avatar feature looks (position, scale, rotation). A default transform lets you specify a start transform when a feature is added to an avatar for the first time. Not a big deal, but helpful in terms of having these settings defined in the XML. Before, transform properties were only defined directly within avatar features. Now they exist within a separate transform object.

Parent definitions are definitions that another definition is attached to. Consider an earring on an ear. Both are separate features, but if an ear moves up and down the side of an avatar's head, that earring should follow it. By specifying the ear as being a parent to the earring definition, when the ear moves, so will the earring.

There have been some other naming changes and enhancements to reduce XML verbosity as well. I'm not sure if this will be the final format, but I think it's looking pretty good right now.

Moving forward I'll probably focus on more avatar/editor examples using more features (such as constraints and colors). This will hopefully also flush out any bugs if they exist.