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 / When I rotate the camera on the z axis, it doesn't rotate on the x axis ...

Author
Message
Hell_666
17
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 2nd Aug 2010 21:24
Hi, do you know why when my camera angle z() is different of 0 my camera can't rotate on the x axis ?

PS: I work on the fpsc x9 source code.

Thanks

Eternal suffering ...

I'm french
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 2nd Aug 2010 22:07
No...

...not without seeing some code

Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Aug 2010 22:51 Edited at: 2nd Aug 2010 22:56
It is possible that you've rotated your camera in such a way as to cause a gimbal lock.
This gimbal lock tutorial explains it better than I can. The guy narrating the tutorial is quite possibly the dullest person on the face of the Earth, but stick with it because it is worth it. If you really can't put up with listening to all of it (I can't blame you) then it is all explained between 2:45 and 3:30

[Edit]On another note: Why couldn't you just stick with creating a single post about a single topic like everybody else? What's wrong with this one?



Hell_666
17
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 2nd Aug 2010 22:55
There are some parts :



If camangz#<>0 then the camera angle x bug ...


There aren't gimble lock I believe.

Eternal suffering ...

I'm french
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 2nd Aug 2010 23:07 Edited at: 2nd Aug 2010 23:09
Where's the code that changes camangx#?

Also, what is the use of this?



Wait a sec... This code makes no sense...



Why would you rotate the camera on camangx#,sy#,camangz#, and then straight after on camangx#,camangy#,camangz#? Aren't y# as sy# USELESS?

TheComet

Hell_666
17
Years of Service
User Offline
Joined: 11th Jul 2009
Location: France
Posted: 2nd Aug 2010 23:10
It's the fpsc source code ^^^


I've found the problem ... A problem in my code to jump a the ceiling ... I'm shame ...


Thanks

Eternal suffering ...

I'm french

Login to post a reply

Server time is: 2026-07-25 08:29:58
Your offset time is: 2026-07-25 08:29:58