Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Some questions about onride camera/1st person camera. #262544
04/24/09 14:25
04/24/09 14:25
Joined: Aug 2006
Posts: 96
Netherlands
P
Polypfreak1987 Offline OP
Junior Member
Polypfreak1987  Offline OP
Junior Member
P

Joined: Aug 2006
Posts: 96
Netherlands
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.

Re: Some questions about onride camera/1st person camera. [Re: Polypfreak1987] #262623
04/24/09 23:13
04/24/09 23:13
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
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

Re: Some questions about onride camera/1st person camera. [Re: Ottawa] #262832
04/26/09 12:52
04/26/09 12:52
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline
Warez Victim
Dreher  Offline
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
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


A7 7.77

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1