Posts Tagged ‘animation’

Side-by-side comparison shows blitting isn’t a huge speed bump

Sunday, March 21st, 2010

This isn’t a new article, but it touches on a topic I’ve heard a lot about recently. That is, pixel ‘blitting‘. Blitting is an old school process used in sprite-based games of essentially erasing a spot in a bitmap image based on a sprite’s alpha and using a bitwise operator to draw the sprite into that bitmap image. Most graphics systems do this transparently to the user in some fashion (pardon the pun). 8-Bit Rocket has a good introduction to these concepts with regards to Flash, but read on for the important part of this post.

Read the article on Photon Storm

The article shows that Flash Player is already fairly optimized for graphical composition operations when compared to blitting. Both showed similar framerates. However, the cacheAsBitmap operation caused an exponential increase in memory consumption when the number of sprites on stage increased. Ironically, the comparison was run by the creator of the Pixel Blitz library who, I’m sure, had a difficult time presenting the results.

There are some good details in the article so if you’re interested, read the whole thing before you decide if you agree.

Have you done any work with bit blitting or sprite sheet animation? Have you found it to be beneficial? Tell us your thoguhts.

KitchenSync Version 2.0 is now available!

Monday, February 8th, 2010

I’m very proud to announce that the second version of KitchenSync has arrived! What started as a labour of love about 3 years ago has finally gotten its first much needed upgrade. Just about everything in this version is newer and more streamlined. The entire system for greater simplicity and practical functionality.

This version will not be backwards compatible, however, there’s finally some Decent Documentation!!! There’s also a new blog devoted to KS.

GO GET IT NOW!

Here’s some of the new features. You can view all of them by checking out the change log.

  • Usability
    • REFACTORED all classes with usability and stability in mind.
    • UPDATED all ASDocs
    • ADDED several new methods in the TweenFactory for easy tween creation.
  • Synchronizer and Time
    • REFACTORED The way time is handled throughout.
    • ADDED ISynchronizerCore and example core classes. This allows advanced users to switch between different methods of timing (e.g. enterframe or timer based)
    • ADDED FrameRateUtil for getting instantaneous and averaged framerates of the system. The FrameRateView now makes use of this class and has more options.
  • Action Architecture
    • REFACTORED action classes and extracted several interfaces from them.
    • ADDED jumpToTime and jumpByTime functionality to actions.
    • ADDED Looping via a new group called KSLooper.
    • REMOVED complicated and rarely used action triggers from AbstractAction.
    • ADDED togglePause() method and progress variable to AbstractAction (for getting percentage complete of an action).
  • Tweens
    • CHANGED constructors in KSTween. Emphasis is now on using TweenFactory.
    • IMPROVED Object parser in TweenFactory
  • Action Groups
    • ADDED Syntactic sugar to the group constructors. using an array in the constructor for a parallel group adds a sequence and vice versa.
    • ADDED totalDuration to groups to show the duration of all child actions in a group.
    • ADDED KSRandomGroup.
    • REMOVED KSSteppedSequenceGroup because it seemed kinda useless.
  • Loading Actions
    • REFACTORED Loading actions. Now they’re much easier to use and more powerful.
    • ADDED KSLoadQueue for quickly creating a class to load files from the network in a batch.
    • ADDED the resultList property to the ILoaderAction interface so that you can quickly access the loaded files in a batch.
  • Misc
    • RENAMED several classes and reworked package structure
    • ADDED KSAsynchronousIteration for running processor-intensive for loops spaced out over a period of time so that they are essentially asynchronous.
    • FIXED several minor and major bugs.

KitchenSync version 1.6 released!

Wednesday, October 15th, 2008

KitchenSync version 1.6 is released! Guess what feature it doesn’t have yet… That’s right! There is STILL NO Color Tweening (unless you count ColorMatrixFilter tweens which it does have). However, I hope I can crank out and release version 2.0 over the next two weeks which would have it.

Here are some of the features that 1.6 DOES have:

  • Added a TweenFactory which provides an easy to use interface for creating new tweens including an object parser similar to FuseKit’s interface. You can now use something like:
    var tween:ITween = TweenFactory.newTween({target:foo, properties:"x:0~100, y:500~200", duration:"3seconds", scale:1~5});
  • Altered KSTween to use multiple tween targets. Now includes methods like addTweenTarget(). This allows you to tween multiple properties with a single KSTween object!
  • Added an optimized implementation of IAction called KSSimpleTween. This class showed a 25% performance increase over KSTween!
  • Added SoundTransformTarget for changing volume or panning of a sound.
  • Added new action groups including:
    • KSSimultaneousEndGroup which causes all children to end simultaneously. This is like a parallel group in reverse.
    • KSSteppedSequenceGroup for sequencing PowerPoint-like applications. This automatically pauses the group after each child is completed. Instant slideshow!
  • Finished adding IAction interface. This allows more flexible and customized use of the synchronizer by allowing you to create actions without using the AbstractAction superclass.
  • Also added ITween and ISynchronizerClient interfaces
  • Changed the license from LGPL to MIT license.
  • For a complete list, check out the ChangeLog!

To get the latest version, go to the Google Code project page. Thanks and enjoy!

KitchenSync demo contest deadline extended

Wednesday, October 15th, 2008

The KitchenSync demo contest’s deadline has been extended from today to next Monday, October 20. Get submittin’!

Announcing the KitchenSync demo contest

Tuesday, September 16th, 2008

Leading up to the debut of KitchenSync 2.0 at the <head> conference this October, I’ve decided to solicit the community for some help with creating AWESOME DEMOS that show off the sequencing library. I’ve also decided to do this in the form of an AWESOME CONTEST! This could be a great opportunity for you as a developer to (a) Try out KitchenSync for the first time (b) Get noticed by other developers around the globe and (c) win FABULOUS PRIZES! Details after the jump!

CMYK Sprayer 2D – wonderfl build flash online

(more…)