Some questions about onride camera/1st person camera.

Posted By: Polypfreak1987

Some questions about onride camera/1st person camera. - 04/24/09 14:25

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.

Code:
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.jpg

Can 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:

Code:
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.
Posted By: Ottawa

Re: Some questions about onride camera/1st person camera. - 04/24/09 23:13

Hi!

Your line :
while(gondel)
is always true since your entity gondel is always there.

Change this line to accommodate your on_1 to on_6 situation.


Ottawa smile
Posted By: Dreher

Re: Some questions about onride camera/1st person camera. - 04/26/09 12:52

Ik HAD dat probleem ook, ik zou als ik jou was gewoon de camera per Vertex plaatsen, dan blijft de camera mooi in de gondel zonder te bewegen!

Ik hoor het wel smile
© 2024 lite-C Forums