Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Movie: Fast forward to position instead of jump()

$
0
0

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


Viewing all articles
Browse latest Browse all 2896

Trending Articles