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.

Newcomers DBPro Corner / Problem with camera rotation

Author
Message
HoverFrog
22
Years of Service
User Offline
Joined: 7th Aug 2003
Location: Canada
Posted: 8th Aug 2003 06:26
Hi fellows.

I am doing a space simulation kinda game fps style and i have a hard time rotating the camera the way i want. Example if the camera is pitched up and i turn right the camera rotates around a fixed Y axis.

I tried to use the pitch, turn and roll camera commands but they just do exactly the same thing as the Rotate camera or Xrotate camera, yrotate camera, etc...

Please Help...
k0shi
23
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 8th Aug 2003 08:59
Um i dunno if its any different in dbp or maybe your using dbc. Heres a fps movement snippet.

Learn as if youll live forever, and give as if youll die tomorrow.
HoverFrog
22
Years of Service
User Offline
Joined: 7th Aug 2003
Location: Canada
Posted: 8th Aug 2003 19:49
Thanks for your reply koshio5o2

I'm using dbp. I centered a camera in a sphere textured with space image. For now the camera is fixed in the center and i am just trying to rotate it the way a space ship would rotate. exemple if my camera is pitched 90 deg. up and i turn i will see the top of the sphere roll and what i want is the camera to turn like a space ship would do (which would be around the z axis)

I thought that the pitch, roll and turn camera commands would do that (It says in the book that the rotation is independent of any axis orientation and allows free motion) but they do the same as Rotate Camera and rotate around the world axis.

What are these commands for then ?

Login to post a reply

Server time is: 2026-07-07 15:09:41
Your offset time is: 2026-07-07 15:09:41