Mohammad Haseeb’s Blog | Archive | Programming

UPDATE: This release has been superseded by a new release. Please see this post

Update:  I found a memory leak in the AS3Steer branch and uploaded a quick fix. The branch also contains an example now.  If anyone wants to have a visual look into it, please check out the google repository. This will also show how differently Opensteer handles Flocking compared to other flocking algorithms.

I had to no idea what to name this post :P . Yes, I’ve been away again. My job has really taken me away from my personal interests. Nevertheless, there are people on the web that motivate me to get back into my work and update it. I have so much to write and I don’t know what to write first about…

Well to start off, I missed to write about some wonderful news on the web and that was the release of Processing getting out to BETA. I believe, I always loved processing even before Flash or Action script came into my consideration. If you do not know what processing is, I recommend you read Daniel Shiffman’s newly published book about Processing. It is worth the time and your hard earned money (highly recommended).

Further up, I have had many of my personal projects begging to be shared and uploaded. I am highly endowed to the people on the internet helping the community with their precious time. Thank you everyone…

I have uploaded a working copy of PaperSteer to the Google Repository. The core of library has been checked a million times by me, so it shoudl work without any issues. I have branched PaperSteer:

This version is no nonsense heart of the OpenSteer library. This version is purely actionscript. It is optimized and not a direct port of its ancestor. I have removed the annotation, the plugins, and drawing classes as well as many amounts of non understandable code, just so that anyone who picks up OpenSteer for Actionscript can work with it. People have been asking me for an example of how to use the library with ActionScript. Well, I did not think it was that difficult, but here it is anyway.

Now this version is a direct port of its ancestor. I am kind of happy that I managed to port the (not so much easy to understand) opensteer library in its originality. Here are the updates in big points:

– Flash Player 10 support.
– There are heavy optimizations there that WILL speed it up. These optimizations include:

Type casting
Function reductions

Typed Arrays and what not…

– Plugins are there now for anyone’s reference and YES they are working
– The drawing routine has been re written entirely, but is buggy and I am working on it. You’ll immediately notice it.
I call this revision a BETA. If you have not gone through the papersteer repository yet, I recommend you may give it a try.

So, that’s about it for PaperSteer. I have some more goodies to share ;) .

I have had an enormous response for my R4 – Music Visualizer. People have been searching and asking for its sources. I remember, I promised to share the sources once I was finished with it. But frankly I left it midway as I had other things to do. Even then, below is the current shape of how it looks like. And here are the sources ;) . Go make crazy stuff.

I made a 3D version of the Boids algorithm for Papervision3D as well. This is only to help people who may want to program this behavior in PV3D. You can replace those cones with actual Bird DAE’s and it’ll be more than you expect it to be. The sources here

Next up are my naughty friends from nowhere. I just love them. You will too. Sources here…

Am I forgetting something? Oh yeah, I have a download section now. People keep asking me where they can download certain stuff or libs that were posted earlier on the blog. For a hint, I have fixed:

Vector3D class
Why use it when Adobe has a Vector3D class built into Flash 10? Well, go see for yourself. I have spent too much a time to make this the ultimate Vector3D class there can be :) .

The Colors Class
I missed the XNA and AS2 Colors class so much that I created this nifty class to help out in my color cycles. It has many colors to choose from and it helps you convert between RGB, Vector and Hex values.

There are other utility classes in the utils package. Pretty useful stuff if you ask me. Go check all of it out. Whew! I think that’d to for today.