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 / Why has my camera changed when my code hasn't?

Author
Message
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 6th Apr 2010 13:00 Edited at: 6th Apr 2010 13:05
To put it simply, I have the following code:



This worked perfectly as it should.

Then I added a for loop that generated some spheres.

It still worked perfectly.

Later, I decided to remove the spheres.

Suddenly, the camera is pointing up into the sky instead of following the player (a box) and I have done nothing to the camera code above or any of the variables used in that function.

Any ideas?

EDIT: How interesting. Adding another object to the program has fixed the camera? This is rather confusing.
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 6th Apr 2010 15:08
Autocam off?

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 6th Apr 2010 15:52 Edited at: 6th Apr 2010 15:52
No the autocam is on.
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 6th Apr 2010 18:14
Turn it off and see what happens without the second object.

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Apr 2010 18:45 Edited at: 6th Apr 2010 18:59
Quote: "No the autocam is on."


Well then that's your problem, you're allowing DBPro to adjust the camera where it wants (ie. when you load an object). You can't really complain if you give something control over something and said something gets adjusted in a way you don't like.

[edit] Just to clarify, I'm referring to having the autocam on, not using set camera to follow.

Login to post a reply

Server time is: 2024-11-23 17:06:15
Your offset time is: 2024-11-23 17:06:15