Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / flight sim camera problem

Author
Message
Plugged
23
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 8th Nov 2003 17:48 Edited at: 8th Nov 2003 17:50
how do you make the camera go up side down its for a kinda flight sim game but when you do a loop the loop the camera automatically flicks to the right side up can any one help?

my camera code at the moment is



thx

CLear Coder
Muddleglum
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 9th Nov 2003 22:44 Edited at: 10th Nov 2003 03:09
Strange. Both in classic and the pro demo, I position the camera at the flying object's position , and then set the camera to the object's orientation as you do and it stays correct through inverted flight and loops.
My object is using free flight angles for the flying object ... perhaps you are using some mathematical combination of euler angles ?? and this might put things astray.
Muddleglum
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: New Zealand
Posted: 10th Nov 2003 12:03
I just remembered, there was one other thing needed on the pro version 5 that I was using.
After the - 'set camera to object orientation ', because of a rotation bug you had to add after that, the line ->
'rotate camera camera angle x(),camera angle y(),camera angle z()'
this updated the camera rotation properly.

well ... it might be part of your problem
cheers.

Login to post a reply

Server time is: 2026-07-26 17:36:51
Your offset time is: 2026-07-26 17:36:51