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 / Help with 3D first person camera

Author
Message
AlanP
14
Years of Service
User Offline
Joined: 8th Mar 2010
Location:
Posted: 9th Apr 2010 22:06
I have searched the fourms numerous times and have yet to find a good code. Im fairly new and I have even tried take 3rd person codes and trying to turn them into first person but have had no success. Heres my current code:



Please help, either changing my current code or creating a entirely new one will work.

Anything said above is completly false and should not be trusted or taken into concern. Everything above was said without thought and should not be considered true information.
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 11th Apr 2010 12:10 Edited at: 11th Apr 2010 12:12
Try this:

chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Apr 2010 12:41
Hi there !!
@Scorpyo
Nice code your third camera person, but probably Alanp meant first camera person...in that case here is an example.






cheers.

I'm not a grumpy grandpa
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 13th Apr 2010 21:25
@Scorpyo

Stealing my code and modifying it without giving credits again, eh? I recognize it due to my comments. Oh well, don't worry about it.

TheComet

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Apr 2010 15:57
Take a look at "control camera using keys" or something like that. It seems you want to control it with the keyboard anyway, so look in the help under "commands" (I think).... It's two up from "index" and when you click on that, in the list will be a "camera" link. In that there are several commands for the camera and one will be something like "control camera using keys". It will simplify your code considerably.

If you ultimately don't want to use the keyboard to turn your camera and instead want to use the mouse for "look control", then there are plenty of example code in the "examples" section of the help. Any questions on how they work, just let us know and I'm sure lots of people will be happy to help.

The fastest code is the code never written.
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Apr 2010 20:49
Quote: "Im fairly new and I have even tried take 3rd person codes and trying to turn them into first person ..."


I have understood here that he wants to make a first person camera control.

Quote: "If you ultimately don't want to use the keyboard to turn your camera and instead want to use the mouse for "look control", then there are plenty of example code ...."


Yeah that´s right...like the example I just posted here

cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-11-24 03:04:13
Your offset time is: 2024-11-24 03:04:13