with help of the forum I've got the following code. But I would like to randomize only a part of the array. E.g. "radomarray[0-4]". How is that possible?
I don't know what's the problem with the error in headline. The web says about this special error, to control the curly brackets. But I've controlled them all, so far as I know.
Maybe you can help me? What's exactly the problem?
Thanks in advance.
Following the code:
import SimpleOpenNI.*;
import org.json.*;
import processing.video.*;
SimpleOpenNI kinect;
int BeamerWidth = 1024;
int BeamerHeight = 768;
int currentVid=0;
boolean tracking;
//PVector jointNeck = new PVector();
float steering;
//float ux;
final static byte videosNum = 2;
final static Movie[] allVideos = new Movie[videosNum];
void setup() {
size(BeamerWidth, BeamerHeight);
smooth();
background(0);
for (int i=0; i<videosNum; i++)
allVideos[i] = new Movie (this, "probesequenz0"+(i+1)+".ogg");
hope you've had all great holidays. I would like to steer a videosequence (playback in dependency of the position) tracking myself via XBOX kinect. Currently the code works with mouseX. How it is possible to replace mouseX information with my tracking information?
Thanks in advance for your feedback.
Best regards
buc
Below the code:
import SimpleOpenNI.*;
import org.json.*;
import processing.video.*;
SimpleOpenNI kinect;
int BeamerWidth = 1024;
int BeamerHeight = 768;
int currentVid=0;
boolean tracking;
//float steering;
//float ux;
final static byte videosNum = 2;
final static Movie[] allVideos = new Movie[videosNum];
void setup() {
size(BeamerWidth, BeamerHeight);
smooth();
background(0);
for (int i=0; i<videosNum; i++)
allVideos[i] = new Movie (this, "probesequenz0"+(i+1)+".ogg");
kinect = new SimpleOpenNI (this);
kinect.enableDepth();
kinect.enableUser(SimpleOpenNI.SKEL_PROFILE_ALL);
}
void draw() {
// A new time position is calculated using the current mouse location:
I'm a beginner at processing. So sorry in advance for these maybe banal questions. How it is possible to play video sequences by processing itself randomly? In addition I would like to have the video sequences in an array or arraylist?!
The code shows one video implementation, but I'd like to have multiple.
Thanks for your help ;) I've tried so many things till now... :/
import SimpleOpenNI.*;
import org.json.*;
import processing.video.*;
int BeamerWidth = 1024;
int BeamerHeight = 768;
void setup() {
size(BeamerWidth, BeamerHeight);
background(0);
AdultMan1 = new Movie(this, "probesequenz01.ogg");
//allVideos[1] = new Movie(this, "probesequenz03.ogg");
}
Movie AdultMan1;
//Movie[] allVideos = new Movie[1];
// Called every time a new frame is available to read
void movieEvent(Movie AdultMan1) {
AdultMan1.read();
}
void draw() {
// A new time position is calculated using the current mouse location:
float f = constrain((float)mouseX / width, 0, 1);
float destination = AdultMan1.duration() * f;
float current = AdultMan1.time();
println("current: " + current + ", destination: " + destination);
I would like to control a video sequence by mouse position. I use the GSVideo library. Every time when I'm going to compile the code the following error is occured:
"Could not find movie file called probesequenz01.mov"
The pde-file and the video-file are at the same folder. What's the problem? Thanks in advance.
That's the code:
import codeanticode.gsvideo.*;
GSMovie AdultManVideo;
int BeamerWidth = 1024;
int BeamerHeight = 768;
void setup() {
size(BeamerWidth, BeamerHeight);
background(0);
AdultManVideo = new GSMovie(this, "probesequenz01.mov");
// Pausing the video at the first frame.
AdultManVideo.play();
AdultManVideo.goToBeginning();
AdultManVideo.pause();
}
void movieEvent(GSMovie AdultManVideo) {
AdultManVideo.read();
}
void draw() {
// A new time position is calculated using the current mouse location: