Archive for January, 2009

Webcam motion detection coolness

Published by Ronny on January 18th, 2009 in Actionscript, Open-source, download. 6 comments

Webcam motion detection: step by step development

A few weeks ago I had to create an innovative way to scroll in a page. I have seen tons of scrollbars in Flash and I found it hard to create something completely new. At one point I wondered if I could wire the scrollbar to a webcam using Actionscript… So I started experimenting around…

When I first started I quickly ran into a problem: How the hell do I know if anything is moving? So I actually got stuck right in the beginning.
I went on a Google trip which led me to Koen’s post about motion detection. Koen was checking all the pixels (using nested loops) to calculate color values. I figured this generated way too much overhead. There had to be a better/simpeler way.

In his post Koen mentioned an article, written by Guy Watson, concerning an other way to get motion detection going. To make things simple: Guy just takes 2 pictures – one of the previous frame, one of the current – puts them on top of eachother, and applies the difference blend mode to the upper one: Tadaaa! There we go! The ‘unchanged’ pixels are blacked out. The remaining pixels are the difference in the picture… which reflects movement. Read the rest of this entry »

Wordpress Theme SuperMini reloaded

Published by Ronny on January 15th, 2009 in Open-source, Wordpress, download. 78 comments

A long time ago Smashing Magazine listed 100 of the best Wordpress themes. That list totally kicked ass to be honest. At one point I decided to restyle my poetry site. I took a look at their list and when I found the SuperMini theme, my choice was immediately made.

After I downloaded the theme I realized a lot of features were missing: No searchbox, no searchresults page, no archives, no global archives, no blogroll support, no pages support, no 404 pages and a few design flaws…

I actually went on, and built those things myself. Later on I wanted to contact the orginal author (Patrick Behrend) of the theme to send him my updates but by the time I got to send my mail, his site was down and he completely dissappeared from the web. I never received an aswer regarding the theme updates I sent him.

UPDATE: Patrick commented in on this post and I got in touch with him. Patrick seemed pleased I kept the theme alive. I updated the URL in the footer which now links to Patrick’s (new) site. Make sure you go check it out and leave him a comment ;-)

By now the original download isn’t even online anymore, and Smashing Magazine disabled the link to the SuperMini theme (as it is a 404). So I recently decided to finish the theme, and translate it back to English and re-publish it. I thought the initial theme was awesome, and I figured it would be cool if other people would be able to actually use the completed theme. Read the rest of this entry »

Visualizr source

Published by Ronny on January 7th, 2009 in Actionscript, Flash. 3 comments

A few people asked me for the Visualizr source. I always said I’d post it on my blog ‘pretty soon’… Well… It’s not pretty soon, but at least I didn’t totally forget about it. Anyway here’s the Actionscript class I made in a Flex Actionscript project :)

I did some pretty naughty things in there, but it worked out the way I wanted it… So be nice :p
Make sure you have got the MP3 tracks in place ;) You’ll need at least one. Make sure you change the tracknames too.