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 / cam rotate DBC

Author
Message
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 13th Dec 2004 13:47
how do i get my camera to rotate around an object rather than rotatingaround a point just infront of the camera? for example -


just as a quick eg.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 13th Dec 2004 17:56
I dont have darkbasic on this computer, but I guess this code will work.. I dont know, im just guessing




This is a Map Editor ver 2 DEMO Out now! http://www.tiame.tk
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 13th Dec 2004 21:13
i just got a camera that kept moving away form the matrix
thanx for trying though
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 14th Dec 2004 15:15 Edited at: 14th Dec 2004 15:19
lol, ok

hold it! I know what is wrong!


I think that would do it.. dont have db here..


This is a Map Editor ver 2 DEMO Out now! http://www.tiame.tk
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 14th Dec 2004 16:22
the main probelm now is this section of code

at first it didnt work becuase you have put a coma instead of a + or a - so i played around and replaced the coma with plus and ended up with a camera that just span around on its axis really fast...
good luck
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 15th Dec 2004 16:31
of course.. hmm, this would be so much easier if I had db on this pc..

Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 15th Dec 2004 17:30
Try something like this:



Desktop: AMD Athlon XP2800+,GeForce FX5200 128MB, 1.25GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 15th Dec 2004 18:52
fantastic exactly what i wanted, thanks
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 15th Dec 2004 19:21
aww, man.. you are better than me Kentaree. but I blame it on this computer, because I dont have db here and so I could not test what I was doing. hehe, nah.. I guess im not that experienced yet

Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 16th Dec 2004 05:04
@Lukas: Not really, I've just had to do a lot of trig etc for programming lately, so it was pretty easy. There's probably a lot of other things you know that I don't, so don't worry about it

Desktop: AMD Athlon XP2800+,GeForce FX5200 128MB, 1.25GB DDR RAM
Laptop: AMD Athlon 64M 3000+,Mobility Radeon 9700 128MB, 512MB DDR RAM
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 16th Dec 2004 12:59
its ok you both beat me !

Login to post a reply

Server time is: 2025-05-29 11:00:40
Your offset time is: 2025-05-29 11:00:40