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 / camera will not rotate on x axis

Author
Message
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 16th Sep 2005 18:23
using dbpro. i locked the camera to the y rotation axis of the model. and the models rotation is controlled muy mouse. however if i independently try to rotate the camera it does not work correclty-
xrotate camera camera angle x()+mousemovey()/3

please check my source.


thanks guys

A child's dream never dies.
Leeorg
19
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 16th Sep 2005 18:57
I'm assuming you want the camera to turn left or right in accordance with the mouse input?
Use the Turn Camera Right/Left commands and use the mousemovex() for the left right directions.

Lee
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 17th Sep 2005 00:34
no actually i want it to move up and down.
x axis is horizontal so is goes through the side of the of the camera only allowing it to move up and down. y axis is verticle left to right and z forwards backwards.

A child's dream never dies.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 17th Sep 2005 01:22
Interestingly:
Quote: "xrotate camera camera angle x()+mousemovey()/3"

I don't see this anywhere in your code...

Use wrapvalue - in case it tries to go above 360 or less than 0



being honest though, trying to xrotate outside of 0-360 would make it crash instead of do nothing...

Also:



Since obplay isn't within an if - but is within your loop, it will gosub obplay regardless of whether or not the condition is met... But if it the condition is met, It will go through this section twice.

Other than that... sorry, but I don't see anything odd, perhaps someone with a little more experience might know though...

...maybe one day I'll finish a project
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Sep 2005 05:06
Try using Set Camera To Follow and use the mouse to adjust the commands parameters to adjust the height/angle/distance etc.

TDK_Man

smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 17th Sep 2005 10:00
thank you guys

A child's dream never dies.

Login to post a reply

Server time is: 2024-09-24 05:29:16
Your offset time is: 2024-09-24 05:29:16