Creating generative art in haXe and OpenFrameworks (Feb 2011)
I continue the journey of creating a piece of generative art everyday. And I am still using hxOpenFrameworks. BTW, since I don’t have a Mac running at this moment, I can’t have a Mac build. And actually I’m still messing with the Linux build… So hxOpenFrameworks is currently Windows only. I will release it to ...
Read MoreLeave a CommentCreating generative art in haXe and OpenFrameworks
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 ...
Read MoreLeave a CommentMethod chaining and fluent interface in haXe
Method chaining is calling a method of an object that return the same type of the object multiple times. One example is TweenLite's TweenLiteVars (in AS3): var vars:TweenLiteVars = new TweenLiteVars() .prop("x", 300) .autoAlpha(0) .onComplete(myFunction, ); One more popular example is jQuery (in JS): $("p.neat").addClass("ohmy").show("slow"); A class that let us do method chaining is having a fluent interface. Fluent interface isn't very ...
Read MoreLeave a CommentHow to know objects are really GC’ed in Flash(AS3)
Memory leak is a bug that pretty hard to deal with. Usually people use some profilers to observer the memory usage while stressing the program, if there is no increase of memory usage after repeating calls of a function, we can conclude there is no memory leak in that function. It is of course fine to detect ...
Read MoreLeave a CommenthaXe libraries to get your project started
Sometimes I find it a bit difficult to find a haXe library quickly. Before lib.haxe.org is improved, I think it would be good to have a list of haXe libraries organized in some way to let the new-comers to find a suitable library. So here below is my very own list. My criteria is open-source, free to use (but ...
Read MoreLeave a CommentUsing jQuery in haXe
It is a kind of pain to code in JS without a proper library like jQuery. Using plain haXe in JS target is just as pain since haXe does not abstract most of the browser quirks, what it gives is only stricter typing and a little bit better core API (nothing DOM related...). When there is no ...
Read MoreLeave a CommentAugmented Mirror, my latest project
Augmented Mirror is my latest large-scale project. It is a development of the technique that uses an one-way mirror to archive augmented reality. You can read more about it at its web site (still in development). Using the technique, a sample installation called Mind-Body Interaction is made. As the title suggests, it is about Philosophy of mind. It ...
Read MoreLeave a CommentUsing multiple PS3Eye cameras with haXe/C++
Sony PS3Eye is probably the best web cam for CV stuff: not expensive, cross platform, high frame rate(up to 120fps), no image compression etc. I've been using it in the past year and my experience is great. In my final year project, I have been exploring stereo camera, ie. using multiple cameras at the same time. It is not ...
Read MoreLeave a CommenthaXe for interactivity/creative coding
haXe fits the gap in interactivity/creative coding For interactivity/creative coding, except the graphical programming platforms like Pure Data, Max and Isadora, there are four major languages people are using: C++(OpenFrameworks), Java(Processing), ActionScript, and Python. The first two are developed mainly for the high performance nature of the languages, as real-time interaction and fancy visual effect is a main focus in creative coding, but they are ...
Read MoreLeave a CommentCanvasBlock: a GM script to block canvas tag (should we…or can we?)
HTML5 is believed to be the Flash killer and will replace Flash in the future. Eventually those Flash-haters will become canvas-haters, so a canvas-blocking GreaseMonkey script will be useful (at least they think it will be). I myself was making it for fun. I don't think we should block any HTML5 tags anytime since it ...
Read MoreLeave a Comment




