Movie: Fast forward to position instead of jump()

edited February 2016 in Library Questions

Hey Everybody,

I am currently working on an interactive poster that changes depending on the position of the viewer. The poster is a .mov-Movie. The tricky part for me is now: I want the transition between the current frame and the next frame to be "fluid" so it should fast forward or fast rewind to the next position instead of jumping with jump().

Plz help and thank you for your comments in advance!

Here is the relevant part:

Code:

// MOVIE INTERACTION: Movie goes to frame equal to Xposition of tracker


float ratio = v2.x / (float) width;

float moviePos = ratio*movie.duration();

println(moviePos);
>   
movie.jump(moviePos);

movie.read();
> 
image(movie,0,0);

}

note: v2.x is the tracker position on the x-axis

Tagged:
Sign In or Register to comment.