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 Discussion / How can I make the camera follow my object???

Author
Message
Kevin
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: Glasgow, Scotland
Posted: 11th Nov 2005 17:09
My object is a jet fighter and i have tried different techniques to try and get the camera to follow the object. I can get the object to move fine, but the camera situation is driving me mad. PLEASE HELP!!!

KH
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 11th Nov 2005 20:36 Edited at: 11th Nov 2005 20:37
well, you can try the command

set camera to follow

just give it the position of your fighter and a few details to allow it to be tracked properly, or you could do this

position camera object position x(obj),object position y(obj),object position z(obj)
set camera to object orientation obj
pitch camera down 30
move camera -20

every frame, so that the camera follows rigidly a fixed distance behind, or you could attach a limb to the object and then position the camera at the limb and point it at the plane, try any of those.



if there is one thing I can NOT tolerate, it`s intolerant people.
gpex
19
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 11th Nov 2005 22:08
although the set camera to follow command may work...i found it a little to sketchy for my liking. If we could see a little bit of code, maybe we could see what's happening. (the code with your attempted camer follow system.)

CodingCom Test Site...check it out!!!
http://www.codingcom.150m.com
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 11th Nov 2005 22:28
Hi there

I think this may help. Get back to this thread if you want a more detailed explaination. Good luck



HelloWorld Tommorrow
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 12th Nov 2005 09:30
it doesn`t come any simpler, first example is obvious,set camera to follow ...er sets the camera to follow, how hard is that?, the other can be placed in code almost as is, just change the variable obj for the number of the object you want to follow, eg

for a fixed relative position



chasecam



or home made rigid chasecam



take your pick...




if there is one thing I can NOT tolerate, it`s intolerant people.
Halo Man
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location:
Posted: 16th Nov 2005 14:18
Ill try and help:



4 out of every 5 people will look at
this and apperantly your one of them!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 19th Nov 2005 20:23
Quote: " Ill try and help"


You didn't!

TDK_Man

Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 19th Nov 2005 20:51


it`s the "user" feedback that kills me



if there is one thing I can NOT tolerate, it`s intolerant people.
The ARRAYinator
19
Years of Service
User Offline
Joined: 13th Aug 2005
Location:
Posted: 19th Nov 2005 20:55
look at the binary moon tutorials.

Login to post a reply

Server time is: 2025-05-22 20:26:43
Your offset time is: 2025-05-22 20:26:43