It has been some time since the start of building hxOpenFrameworks, the haXe binding to OpenFrameworks. Actually it is already around 80% complete several weeks ago. I was facing some GC problem on the use of ofSoundStream, but finally I’ve solved it with the help of Hugh. As a by-product, I’ve made a binding to RtAudio, a cross-platform real-time sound input/output API. However, I think I will wait till OF 007 and haXe 2.07 is released before really releasing hxOpenFrameworks.
In order to test it, I’ve been using it for some little projects. I decided to create (at least) one piece of generative art everyday… right, everyday starting from the 1st day of 2011. Quite similar to what Keith Peters did some time ago (art from code). The process is pretty fun once I had got used to start my day by coding some art.
Accidentally I found setCircleResolution a very interesting function
to play with. It controls how a circle is approximated by drawing
regular polygons. Below is circles with radius increasing and
resolution(number of sides of regular polygon) decreasing.
Sometimes the generating process is even more amazing than the final
Below is my favorite piece at the moment. I used physaxe for physics
simulation. Thousands of particles(in fact, tiny circles) are shot from
outside of the canvas, producing trails of blue. When they collides,
some red will be drawn, which look like sparks. The generating process
is recorded, you can find it on youtube.
Finally, all the codes of the above pieces are open source, can be found in the description of individual flickr/youtube page. I’ll post some more interesting ones next month.