SAI

space and interaction

Flashlight Effect Part 3: Multiple Videos 2

Posted on | January 27, 2010 | Comments Off

Suggested code by: TfGuy44 on January 27, 2010. (my topic)

import processing.video.*;

Movie movie1;
Movie movie2;

void setup(){
size(320, 240, P2D);
movie1 = new Movie(this, “neko.mov”);
movie2 = new Movie(this, “night.mov”);

movie1.loop();
movie2.loop();

}

void draw(){
float solidRadius = 20.0; // radius of solid circle
float radius = 100.0; // of the flashlight, in pixels.
movie1.read();
movie2.read();
movie1.loadPixels(); //make movie1 pixel available to modify
Read more

Flashlight Effect Part 2: Multiple Videos

Posted on | January 24, 2010 | Comments Off

I started modifying the code from part1. I used color(gray, alpha) instead of tint(). I think color() works for manipulating opacity since image and movie are treated like pixel data.. But Movie2 (supposed to be underneath Movie1) is playing on top of Movie1 so I’m not sure if this is working or not.. maybe I should find some ways to make Movie2 as background movie? Very confusing..

import processing.video.*;

Movie movie1;
Movie movie2;

void setup(){
 size(320, 240, P2D);
 movie1 = new Movie(this, “movie1.mov”);
 movie2 = new Movie(this, “movie2.mov”);
 
 movie1.loop();
 movie2.loop();
 
}
Read more

Flashlight on 1 video

Posted on | January 24, 2010 | Comments Off

I started off modifying a simple flashlight effect from here.

I works well on me.

// Example 15-9: Adjusting image brightness based on pixel location (Flashlight effect)

import processing.video.*;
Movie movie1;

void setup() {
size(320, 240, P2D);
movie1 = new Movie(this, “movie1.mov”);
movie1.loop();
}
Read more

Powering laser pointers

Posted on | April 9, 2009 | Comments Off

I’m using laser pointers to trigger light switches, but I need to power them from power supply, not batteries for easier maintenance for long-term exhibition (2 weeks)

I got cheap laser pointers ($1.75 each), and they run with 3 button cells (total of 4.5v). First I did was to directly hook them up with 5v power supply, but it stopped working after 10 second I pressed the buttons.
….well, no surprise!!! Looks like they won’t work with more than 4.5v, otherwise I’m frying them up.
Read more

uploading to ArduinoBT….Part3: Simple solution!

Posted on | March 31, 2009 | 1 Comment

Since the day my ArduinoBT started refusing me uploading file after the first success, I’ve been getting my head around the solution..

Finally, I found a simple solution……

Read more

keep looking »
  • About

    SAI - Space and Interaction is a blog by Shiori Saito for notes from her researches, projects and life.
  • Bookshelf of Inspiration

  • Featuring Recent Posts WordPress Widget development by YD