Skip to content
 

Image to BML Converter

To help my friends eas­ily pub­lish con­tent for Blinken­lights Ste­reo­scope, I’ve made a simple con­verter in Java that will allow you to con­vert an image sequence into a Blinken­lights movie.

All you have to do is gen­er­ate a grey­scale image sequence (PNG format is prob­ably best) in your favour­ite pro­gram (After Effects, 3D pro­grams, Pro­cessing, Logo, whatever) and run it through my con­verter. For the Ste­reo­scope pro­ject you should make your image size match one of the top two screens, or the entire vir­tual mat­rix (96×32 pixels).

Check out the Vir­tual Mat­rix map on the Ste­reo­scope Cre­ate page to see how it all lays out. Unfor­tu­nately the num­bers on the map are back­wards, so you will need to do a bit of math if you want to address the build­ings precisely.

You can down­load the jar file for the con­verter tool below, double click it, and con­vert your image sequence to a BLM file. If you would like to test the movie, and you’re using OS X, you can down­load the Ste­reo­scope Cre­ation Tools (from the page linked above) to get a sim­u­lator and play­back tool. If you’re on Win­dows or Linux, there is no sim­u­lator for you yet.


Down­load Image to BML Con­verter. (requires Java 1.5 or later).

Update 20081001: I acci­dent­ally pub­lished a jar that was com­piled for Java 1.6. I’ve replaced it. If you down­loaded this yes­ter­day and it didn’t work, try again!

Source code is avail­able under the GPL, but not well pack­aged yet. Ask and ye shall receive.

3 Comments

  1. […] Fraser pos­ted an image con­verter that cre­ates BML files that can be used for Ste­reo­scope. This means you can con­vert any animation […]

  2. Jenn says:

    I tried export­ing my clip from final cut pro to a png image sequence and then open­ing the image sequence in the BML con­verter, all the images are greyed out. So I can’t con­vert my pngs… It’s not work­ing for me. Am I doing it right?

  3. Dan Fraser says:

    Make sure the source images are gray­scale. The con­verter only uses the blue chan­nel to get the bright­ness of the final out­put pixels. You’ll get the best res­ults if you start with grey­scale images.

    If you still have a prob­lem, please send me an email with one of your images and the BML file that was made, and I will see if I can find the problem!

Leave a Reply