Hello everybody,
I am making a carnival/fair ride (a giant wave swinger). Now I want to make an onride camera. With that view you get the idea that you are riding the ride self.
I have the following code wich is working partly good.
function camOnride() {
camera.genius = gondel;
while(gondel) {
camera.x = gondel.x;
camera.y = gondel.y;
camera.z = gondel.z-180;
camera.pan = gondel.pan+180;
camera.tilt = -gondel.tilt;
camera.roll = -gondel.roll;
wait(1);
}
}
Here are the problems.
-First problem: When the gondela's where swinging out, the camera rolls/tilts to the good angle. But it doesn't swing out. Here is a screenshot where you can see what I mean.
http://ruda.areazone.nl/images/renders/star_flyer9.jpgCan I use a vector of that model to solve this problem?
-Second problem: When I want to change back to other camera views, it doesn't. What could be the problem? This is how I call the camera functions:
on_1 = cam1();
on_2 = cam2();
on_3 = cam3();
on_4 = cam4();
on_5 = cam5();
on_6 = cam6();
on_o = camOnride();
I realy hope you can help me out.
Thanks in advance for your help.