Categories
Animation Haxe Open source / Freeware

Tween engine Go – part 2

My last post was about my new WIP tween library Go.

I have been updating my little experiment and it’s getting better.
Looking into other libraries codes is very educational.

Does it perform as good as the default Haxe tween engine Actuate?
Yeah that would have been great, but nope… around 1300 object, Go will start dropping frame-rate in Flash.

My goal was to create a lightweight, simple, compact, chainable tween library for haxe/openfl.

Could I perform as good as Actuate?
I am not sure, Actuate is very well written and Joshua Granick has been working on it for a long time and tested it extensively.
But I probably could improve on my code and get a better performance in Flash (in which I did the stress-test). The downside is that my code will be full of condition compilation and that would mean the code would become more and more complex.

Why am I sure it will improve, well I cheated and did some flash specific code modifications.
Check the code in github
In my first draft it was just:

var range = _props.get(n);
Reflect.setProperty(_target, n, _easing.ease( time, range.from, (range.to-range.from), _duration ) );

and that performed very bad in Flash (if I remember correctly the framerate already dropped after 100 object)
And I updated it to this and that works better… for Flash

var range = _props.get(n);
#if flash
untyped _target[n] = _easing.ease( time, range.from, (range.to-range.from), _duration ) ;
#else
Reflect.setProperty(_target, n, _easing.ease( time, range.from, (range.to-range.from), _duration ) );
#end

So the question is more do I want to change the code for specific platforms?
For now I am not going to focus on Flash to enhance it’s performance… there is little chance that I will be animating 1000+ objects.

So I will be using it in my own projects and will run into problems that I will fix.
You are welcome to use it as well and report bugs or other improvements.

I’ve update the promotional website: check it here.
You can find the stress-test there, where I compare Go with Actuate.
If you want to add your tweening library, add it here in github.
Download/install instructions can be found here.

Happy tweening.

Categories
Animation Haxe Open source / Freeware

Tween engine Go

I have been playing a lot with Haxe and Openfl in the past, but never for work. That changed this week!

Fun stuff!

A while back I noticed some new tweening engines for Haxe. That got me curious: can I build my own tweening engine?

Yes I can!

I named it Go, like “lets Go”.

(And like they say in a track from The Prodigy – Everybody In The Place, lets go )

You can check it out on github: https://github.com/MatthijsKamstra/go
There you can find more detailed explanation about how it works, so I only will show some basic code here:

Animate a sprite in 1.5 second to x and y position and call function when animation is done

Go.to(sprite, 1.5).x(100).y(200).onComplete(onCompleteHandler, ['hello']);

It was fun to write it, but I haven’t tested in all situations.
I have tested lets.Go on targets flash/cpp/html5/neko.
But I wouldn’t use it in a production situation. It needs more testing.

Let me know what you think!

Categories
Flash Open source / Freeware

Convert SWF to AVI – part 3

Update #1: when I wrote this post, this all worked… And I have good hope that the site will return. For now I can only say: try again later…. 🙁
Update #2: well the site didn’t return: it’s as dead as a doorknob … that’s too bad. I couldn’t find a place where you can download it now, so I searched my external harddrive if I had the original zip-file, and I did. So you can download the file at http://www.box.net/shared/u5utxytazn#swfdrop
Update #3: Today I needed this for a good export to AVI and found out that swfdrop only works if the animation is on the main (root) timeline… so I used the trick introduced by swf2avi > read more here

Flash is not very good in converting animations in to AVI’s because you lose the animations in the nested movieclips. You can export to .MOV but that’s not a native Windows video codex.

So you want to convert a SWF to AVI (SWF2AVI) or another videofile/codex (without spending any cash)?
As the title of this post suggest: I have written about this subject before: in part 1 and part 2.

And I found a new freeware tool to help you convert your SWF: www.swfdrop.com.
SWF DROP: Version 0.9c

Download: it think this program is very useful, but the creators think different and killed the original site. I still have the original swfdrop.zip and that one can be downloaded here:http://www.box.net/shared/u5utxytazn#swfdrop.
Remember: I have nothing to do with this program, I only think it’s useful.

This project is also freeware and more up-to-date: October 2007 (swf2avi is last updated in 27-08-2002 & swf>>avi is last update in 07.20.2005).

“SWFDROP” is the SWF converter for Windows to convert Flash SWF file format to AVI format. It’s the best tool to successfully convert any Flash 6/7/8/9 SWF file into a video AVI file that you can play with Windows Media Player (or any video player), where all other tools dont work. These, along with a variety of video encoding options, make SWFDROP the best choice for you productivity!

A little preview: you can figure it out, trust me.

It’s very easy to use, you can use the codex installed on you computer and it’s very fast

Create a movie that will load the movie that you want to export.

  • make this movie the same size as the original
  • use the same frame rate
  • only difference with to movie you want to load is the number of frames: use the number that you want (for example: 1000)

Because swf2avi is based upon as2, this code is also as2
[as]
// code in frame 1
loadMovieNum(‘name_of_the_movie_you_want_to_render.swf’, 1);
stopAllSounds();
[/as]

Categories
Animation Flash Open source / Freeware Tools of the trade

Convert SWF to AVI – part2

How to convert a SWF to an AVI (without spending any cash)? I have written about this question before [Covert SWF to AVI (SWF2AVI or SWFtoAVI)] and my answer was back then: swf2avi, a freeware project by Mario Pizzinini.
SWF2AVI is not an active project (last update from 2002-08-27), but does the job very well.
I’ve used it a couple of times, and when you know who this program works, you get the result you need.

Back then I didn’t have an alternative, but I do now!

And the alternative, in my opinion, is better and more user friendly: http://www.avi-swf-convert.com/
swf avi convert screenshot

SWF>>AVI

is a more recent project (the last update is from 2005-07-20), and does the same thing as swf2avi but has some extra very handy features:

  • Drag and drop files in the converter
  • Play the file in a small popup
  • Select an output folder
  • Set output frame rate
  • Batch Convert: convert more then one SWF to AVI
  • Profiles: you can create custom conversion profiles whereto the SWF can be exported (captures size, output size, frame rate and rotation)

But it doesn’t convert sound and interactive animations may not be properly converted

It’s an freeware program, which does what it says: it converts SWF to (uncompressed) AVI. So if you need a compressed version of your animation you need another program to do that (something to write about in another post). SWF>>AVI is a Windows program which needs Microsoft .Net Framework (it will be automatically downloaded and installed if required).

The same rules (code) apply to SWF>>AVI as it did with SWF2AVI
It’s smart to use frame based animation, although it seems that SWF>>AVI is faster in grabbing the images, so timebased animation is can be an option if you don’t care for an exact export.
Otherwise use the code posted here for you convenience:

Categories
Animation

Tipografia

An intro for court-tv (I really can’t say if it’s the real stuff or an experiment)
Very impressive, I specially like the speed.

Categories
Animation

Vídeo de tipografia

Type history, I wouldn’t choose some of the footage used but a impressive piece of history.

Categories
Animation

Trainspotting in Typography

Intro from the movie “Trainspotting”
(I haven’t seen the movie in a while, so I don’t know if it’s the original intro, or a school assignment)

Story:

Intro Trainspotting in Typography.
Motion design with after-effects.

Categories
Animation

Ikea

A very little typography animation

Made for a typography course.
Music by Bay Tremore
Animation by Hannes Drexl

Sadly Hannes Drexl need 17 seconds for the credits, but other wise very nice.

Categories
Animation

The Puzzle

From the movie Saw.
It’s refreshing to see different approach for typographic animation then the ‘standard’ After Effects solutions.

Story:

This is my first attempt at type animation. Was an assignment given to us at University, it was done in less than a week including choosing a topic, and story boards. there are a couple of shots where the camera isn’t quite right but ran out of time.. Hope you enjoy anyway..
And just a note, am looking for a job in the graffic design , animation field

Made by Mixednutsnz

Categories
Animation

Monoculture

A monologue from the comic transmetropolitan form Warren Ellis.

Story:

Spider Jerusalem’s rant about Monoculture, from Warren Ellis’ comic Transmetropolitan. Voicing done by my housemate Colin Janke, music is ‘Medula Oblongata’ by The Dust Brothers, and the animation and putting it all together is by me, as am assignment for my graphic design course.

Made by fearmeforiampink.