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.

Dark GDK / How to create a "Third Person" view?

Author
Message
Sayne
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location:
Posted: 10th Jul 2008 00:38
Hi, I am a little baffled on how to create a "Third person view".

So far in my game all I have is a 3D room which you move around in with first person view.

I'm quite new to GDK and id appreciate it if someone could tell me the code, or link me to a tutorial that tells me how to do so.

I'd also appreciate a good Collision detection tutorial (for walls).

I'll be using the models that come with GDK, im a little unsure on what Dark Matter is, so ill be using the models in the Media > models > Colonel Z folder. I want to use the .3DS model.

I really appreciate it,
Sam Wharfe

PS: Here is my code so far:
Mr Mike
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 10th Jul 2008 05:54
Although I am new to DGDK, I'll see if I can help you



Hope it helps in some way

HEYYYY YYYOOUUUUU GUUUYYYYSSSS
zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 10th Jul 2008 08:20


Windows Vista Home Premium (32-bit) :: Intel Core 2 Duo - 2.2Ghz :: 2GB DDR2 SDRAM :: nVidia GeForce 8600M GS - 256 MB
Sayne
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location:
Posted: 10th Jul 2008 13:22
Thanks alot. I'm going to check out both of the codes now.

What about collision detection? What is the best way to do that?

I appreciate it,
Sam Wharfe
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 10th Jul 2008 15:17
Quote: "What about collision detection? What is the best way to do that?"


Look up sparky's collision, or paul's collision method. Then look up Jason's OOP library, it has a sample of wall collision.


www.globalwarfare.tk
zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 11th Jul 2008 02:37 Edited at: 11th Jul 2008 02:38
If you use sparky's, check out the SlidingDemo sample for an example of sliding collision, jumping, and gravity.

Windows Vista Home Premium (32-bit) :: Intel Core 2 Duo - 2.2Ghz :: 2GB DDR2 SDRAM :: nVidia GeForce 8600M GS - 256 MB
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 11th Jul 2008 05:15
Yeah, that is the best. Or if you are very ambitiouse, chack out newton's physics, they are a real physics engine and are amazing.


www.globalwarfare.tk
Movian
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location:
Posted: 10th Aug 2008 02:34
well just incase you didn't get the camera working as you wanted, i created this a while ago and posted it in the code archive thing.

http://forum.thegamecreators.com/?m=forum_view&t=126230&b=22

i give a function that you can refrence in your main loop. Just call the function with the object ID number from your main loop and you have a third person camera

Login to post a reply

Server time is: 2024-09-30 03:23:24
Your offset time is: 2024-09-30 03:23:24