notes from the bigfug

programming light and other strange tales

Skip to: Content | Sidebar | Footer

PatchBox r287 – Painting With Light

3 October, 2008 (03:38) | PatchBox, Programming | By: Alex May

PatchBox is becoming quite the powerful tool for architectural video mapping but sometimes even I miss a certain sense of immediacy that I’ve grown accustomed to from my years of VJ’ing.

It was with much delight then that I received a link from my old chum (and favourite Stylophone player) Tom Hume last week pointing me towards a site where a chap based in Helsinki called J?rgen has created some software for using your mobile phone as a spray can, called – surprisingly – MobiSpray.

He’s been travelling around with a laptop, video projector, and generator, drawing all over buildings, fighter planes (!), rocks, and bags of rubbish all while wearing a military outfit.

Good man!

The system works by taking the tilt information that some models of mobile phones generate (like a Wiimote) and sending it wirelessly to a laptop that does the painting.? It can also use photos taken on the phone – nice touch!

However, it wasn’t really the interface that excited me – it looks a bit fiddly (sorry J?rgen!) – but the flat colour style of his drawings and what a very powerful and immediate effect they, and the drawing process itself, created.

I knew I wanted to achieve the same end result but using a different hardware interface, namely my nice little Wacom graphics tablet with all of it’s pressure sensitive goodness.

I’d seen a CGFX shader months ago in the NVIDIA Shader Library that could do painting within the shader itself.? I re-wrote it so it uses a seperate render target (for reasons that will become apparent later), and added the support code into PatchBox.

Initially it utilised the mouse but as a proof of concept it worked well, so I started looking at Raw Input (hence the comedy Google post earlier today) but ran into a few walls trying to integrate it with wxWidgets, so instead I put in the support for Wintab, giving me direct access and control of the tablet information.

So, at about midnight, it was ready for the first projector test:

First test of PatchBox's new paint mode

First test of the new PatchBox paint mode

Aw, pretty flowers and… is that a… kind of squirrel?? The lower part with the lady dancing is a video screen.

This was shortly followed by test #2:

Second Paint Mode Test

Second Paint Mode Test

And the actual screen grab from PatchBox:

Screen grab of the second test

Screen grab of the second test

I’m really excited about the results!? There’s a couple of features still to add (saving the textures out, hence the render target), but I’m already thinking I need to project on something… bigger…

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • FriendFeed
  • LinkedIn
  • Live
  • MySpace
  • Slashdot
  • Technorati
  • Twitter

Comments

Comment from ira
Time October 16, 2008 at 2:13 pm

loved the idea! i want to use it as well were do i start? what mobile to use could you direct to link how to do it, please?

Comment from nrlnd
Time May 19, 2009 at 11:57 am

any plans releasing pathbox2 for us digital slaves to try it out someday ? (i am here every single day) and .. Jesus im amazed of the work .. some how i have this dream that you would hookup with the loosegoose team that made pilgrim, got drunk , made friends and then your brains would mold together to build this super creative app ; ) that i have as an vision . im to old to slow to get started coding., ;)

Write a comment





Page optimized by WP Minify WordPress Plugin