We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
timescape? (Read 458 times)
timescape?
Mar 19th, 2006, 8:44pm
 
I just discoverd the existence of processing in my search for software that does the timescape-trick.(http://www.phantasian.com/timescape/timescape.htm)

so i guess this must have been asked many times before..

can i find the source somewhere online?
Is is difficult to start from scratch to make something like this?
Could somebody help me with this?

cheers,

aer.

Re: timescape?
Reply #1 - Mar 19th, 2006, 11:35pm
 
basicly you take a 1 px * height_of_video px segment from the video, and place that at x position time n

i.e
at frame 0:
Code:


int x = 0;
void setup()
{
// load video here
video = // blabla;
size(500,video.height);
}
void draw(){
PImage strip = video.get(video.width/2,0,video.width/2,video.height);
image(strip,x++,0); // x++ returns the current x, then increases by 1
}
Re: timescape?
Reply #2 - Mar 20th, 2006, 1:19am
 
i changed it a little bit and it works! ..
but now i would like to move the 1px-row from the camera so that it produces a full image (maybe stretched because of the framerate) except were something has moved. -> in the same way as the x++

Code:


import processing.video.*;

Capture video;

int x = 0;
void setup()
{

  video = new Capture(this, 500, 500, 5);
  size(500,video.height) ;
}

void captureEvent(Capture camera)
{
camera.read();
}
void draw(){
 PImage strip = video.get(video.width/2,0,video.width/2,video.height);
 image(strip,x++,0); // x++ returns the current x, then increases by 1
}


Page Index Toggle Pages: 1