In this example, I’m giving you code to do live interactive light painting. The typical way to do this is by taking several extended exposure photographs which are then sequenced into a stop motion video. My method uses jitter to isolate the brightest parts of the scene and then applies additional processing to make it a more interesting experience. The patch has a lot of comments to tell you what each stage does, but let me know if you’re stuck on something. I made the patch for an image processing class originally, so I have some detailed documentation of it. Below the download is a series of images detailing the processing steps to get the lightpainting effect.
Max/MSP/Jitter - Lightpainting example (574 downloads) (Right click and choose “Save As”)