The only weirdness that I've experienced so far with multiple camera/perspective calls is that lights seem to only apply for the last camera instead of per camera. Of course, this doesn't mean that this is the
only weirdness, just the only weirdness I've experienced. Here's an example:
Code:import damkjer.ocd.*;
Camera persp;
Camera orth;
void setup() {
size(320, 240, P3D);
persp = new Camera(this, 100,-150, 200);
orth = new Camera(this);
rectMode(CENTER);
}
void draw() {
lights();
background(204);
orth.feed();
rect(0, (height / 2) - 20, width, 40);
persp.feed();
rotateY(PI/3);
box(50, 50, 50);
}
void mouseMoved() {
persp.tumble(radians(mouseX-pmouseX), radians(mouseY-pmouseY));
}
-and-
Code:import damkjer.ocd.*;
Camera persp;
Camera orth;
void setup() {
size(320, 240, P3D);
persp = new Camera(this, 100,-150, 200);
orth = new Camera(this);
rectMode(CENTER);
}
void draw() {
lights();
background(204);
persp.feed();
rotateY(PI/3);
box(50, 50, 50);
orth.feed();
rect(0, (height / 2) - 20, width, 40);
}
void mouseMoved() {
persp.tumble(radians(mouseX-pmouseX), radians(mouseY-pmouseY));
}