I've written a simple 2D particle physics engine called Fenozix.
It can simulate gravity and spring constraints.
Used in company with DynaShape, some interesting visual effects can be done at ease.
The example above is a simple demo of combining Fenozix and DynaShape.
There are invisible nodes hung between two draggable nodes.
And these invisible nodes are used as control points for curves.
Wednesday, November 26, 2008
Sunday, November 16, 2008
Go to the CJLibrary CS4 project homepage
I've done some tweaks to my CS3 library in order to fit it in CS4.
(mainly doing performance-related adjustments, such as using Vector instead of Array)
After realizing there sure are many classes in the library,
I've decided to upload the library to an SVN repository for maintenance convenience.
Also, my Emitter and PBJ2AS projects are now a part of the CJLibrary CS4 project,
meaning that there'll probably be no more updates and available downloads for these two projects.
And I thought I might well as share this library with everyone.
Thus, I've opened a Google Code SVN repository to store this library.
So if you're interested, please drop by and play with this library.
Hope you'll like it :)
Saturday, November 15, 2008
It's been always a pain to me trying to add smooth curving functionality to DynaShape.
Thanks to Andy Woodruff's tutorial, now it's no more a problem.
Now DynaShape can handle both line segments and curves drawing.
Enough said, just check out the example!
Monday, November 10, 2008
Saturday, November 8, 2008
(You'll need the latest release of FlashDevelop 3 to open the project)
As you all know, the BlurFilter in Flash can only do horizontal and vertical blur.
This MotionBlur Pixel Bender filter can do blur of all angles.
I used only 5 levels of blur in the filter for Flash Player efficiency consideration.
Actually the same effect can be done completely using the original BlurFilter.
All you have to do is use BitmapData.draw() to take a "snapshot" of the rotated image.
Then apply a BlurFilter on the BitmapData.
Finally, use another Bitmap.draw() to take a snapshot of the "righted" blurred image.