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 Professional Discussion / Camera problem (Rotate won't fix it)

Author
Message
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 4th Jan 2006 23:05
I've been working on a project for a while gtracer



Something is badly wrong with my camera code i have 2 cameras and the main one faces the opposite direction i've tryed rotate camera and rotate object and neither work can anyone help please

Experienced DB http://www.greatgames3d.com (work in progress site)
JerBil
21
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 5th Jan 2006 03:13
Probably not what you want but how about pointing
camera 1 in the opposite direction instead of rotating it.



-JerBil

Ad Astra Per Asper
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 5th Jan 2006 17:26
Camera 1 is the rear view mirror i need to rotate camera 0 but it don't work

Experienced DB http://www.greatgames3d.com (work in progress site)
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 5th Jan 2006 17:31
make sure you don't rotate it AGAIN before the sync, and after the rotate you're trying to add, look over your code again and double check

Appointed by Jimmy as "MR. GAME REVIEW WIZARD GUY"
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 5th Jan 2006 17:37
ok what should it be like i said camera 1 is the rear view mirror

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 5th Jan 2006 21:32
replace "yrotate camera 1,wrapvalue(camera angle y(0)+180)"

with "point camera 1,cx#,cy#,cz#-100"

That should work. I can't test it without the models and textures though obviously.


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 18:40 Edited at: 6th Jan 2006 18:41
AGHH camera i need to fix camera 0 this is why (see screen) anyway i can rotate that camera called 0 i can't get it to work

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 6th Jan 2006 19:38
ok well just change the code to camera 0 then. My "point" was that it will work if you use "point camera" to point at the position in 3d space you want. As I said if you upload your code and models I'll fix it for you


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 19:46
ok i'll e-mail the models to you i don't want the whole game being stolen i posted the code above

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 6th Jan 2006 20:00
ok


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 20:08 Edited at: 6th Jan 2006 20:13
I'll do it as soon as i can i'm just making the last parts for my forum on www.greatgames3d.com

What e-mail should i use? should i just send it in a reply to the password and user name u sent me?

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 6th Jan 2006 20:30
yes that'll be fine I don't post it on here because then I get too much spam


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 20:38
ok btw do you know any fast ftp file uploader frontpage crashed my pc

Experienced DB http://www.greatgames3d.com (work in progress site)
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 20:51
Sent after 20 minutes uploading

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 6th Jan 2006 21:07
frontpage is evil, never use it


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 6th Jan 2006 21:08
lol ok the e-mail should be there now

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 7th Jan 2006 00:43
ok Its late now but I'll give this ago tomorrow and see what I can do for u


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 7th Jan 2006 12:11 Edited at: 7th Jan 2006 12:12
thanks btw you can keep the model of the car and textures
infact keep it all

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 7th Jan 2006 19:44
Hi, finally got round to trying this, took about 30 seconds to fix

Actually there was nothing wrong with your code, the cmaera, moving the car forward and backwards etc were perfect, the model was just loading backwards. I fixed that by rotating it and using "fix object pivot" after nice and simple



This looks to be a good start to a game, obviously you have to make the car collide with the floor it just drives through it at the moment, but its a good start Personally after doing that, I would make the car only steer when its moving forward or backwards, cars can't spin on the spot The "physics" of acceleration are good, I like the code for the camera and speedometer too

"btw you can keep the model of the car and textures"
Um no offense but I'm 99% sure you didn't make that as I've seen it before (I know you didn't claim to make it ) - where'd you get it from? Its cool, it looks like the car from Sega Rally. I also remember a similar model being in t3dgm.

Anyway I'm glad I could fix this for you, good luck with your project


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 7th Jan 2006 20:46 Edited at: 7th Jan 2006 20:53
well to be honest i did dl them from turbosquid

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 7th Jan 2006 21:03
Ahh that where I saw it

Anyway the code is working for you now yeah?


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 7th Jan 2006 21:05 Edited at: 7th Jan 2006 21:06
yep thanks just coding the collision now gonna take a while unless i just rip the code from my other games lol o btw if i get some spare cash i'll buy all your apps if you have a bundle pack

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 7th Jan 2006 21:43
ALL my apps are included in the price, its only 19.99 for ALL of them!


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 7th Jan 2006 22:18 Edited at: 7th Jan 2006 22:19
Coooooool *starts saving* i just made this for my game

Edit:
It's an image of the model i made

Experienced DB http://www.greatgames3d.com (work in progress site)
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 7th Jan 2006 23:14
looks good


Preorder EA here:http://forum.thegamecreators.com/?m=forum_view&t=67575&b=8&p=0
+ Model Pro out now in Program Announcements!
Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 7th Jan 2006 23:21
thanks

Experienced DB http://www.greatgames3d.com (work in progress site)

Login to post a reply

Server time is: 2025-08-08 11:10:54
Your offset time is: 2025-08-08 11:10:54