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 / Complete noob.

Author
Message
MadnessRed
16
Years of Service
User Offline
Joined: 16th Sep 2008
Location:
Posted: 16th Sep 2008 23:38
hi, can some1 please help me, I am really new to GDK but would be interested in trying to get started.

If possible could some1 please post the source code to an existing driving game so I can try and learn from it.

---

Also, I have been playing a bit with the "Terrarin" map, what would also be good is for a tutorial or help (in noob language) on how I would go about adding a car into that map and adding gravity.

---

Many thanks

Anthony
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 17th Sep 2008 22:26
OK, so firstly "Complete noob." is probably not the best way to title a post. As for your question, I cannot help as I have never made a driving game, but how much c++ do you know? Brushing up on your skills really helps, we have lots of newbs here who start GDK with no knowleddge at all, so it would be good to know so we can help you better.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 18th Sep 2008 12:14
Well first you need to get a .x model of a car. Then you can use a matrix as the ground, and find a texture to go on it. You can set up the camera to follow the car.

Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 19th Sep 2008 08:36 Edited at: 19th Sep 2008 08:49
If you want something close to a "real driving game" by which I mean one that has some form of accurate driving physics, gravity, friction, mass, force etc, then you are going to need to use some kind of Physics SDK with the DarkGDK(or alternatively design and develop your own), there are a number of them that you can find for free or at low cost around the net, however TGC also sell a great DarkGDK plugin called DarkPhysics(uses the Ageiea PhysX SDK), which is the ideal starting point for learning how to use a physics engine with DarkGDK(it also includes a fully working, albiet very basic, driving demo - car model, jumps, turbo boost and all) and from a programming point of view.
NOTE: It is not nessecary to use a Physics Engine to make a driving
game or any game, just my personal preference. It is completely possible to just use the native DarkGDK functions to emulate things like gravity, friction, force and mass in a driving game(although the mathematics would be complex), or leave them out and make something with more of an "arcade" feel...

To be able to use DarkGDK at all though, the first thing you are going to need to do is learn/re-learn Microsoft's Visual C++ 2008 implementation. Without that knowledge, trying to actually create anything with DarkGDK would be anywhere from very difficult to almost impossible.

Once you have a basic grasp of C++ programming(there are a number of web-sites and/or books that you can read/obtain either free or at low cost on the internet), the next thing to do would be to go through the Tutorials and Samples that come packaged with the DarkGDK when you download and install it, these provide a very good starting point for most things, what you cant find in the samples, you can find here in the forums, many people contribute their tips and tricks in these forums, searching for the things you are looking for using a few different search terms usually gets you what you are after, if its here. Also, sometimes the examples/samples/tutorials are demonstrating more than just the concept that they are titled with... for instance, the Sample that demonstrates the "Lights" in DarkGDK(a statue in a room with some lights orbiting around it, you can change which ones are on/off to change the look) is not ONLY demonstrating lights, the other aspects of that code include how to make an object "orbit" around another(lights around statue), how to accept user input and change the state of an entity based on that user input(lights changing when keys pressed), and also how to move the camera smoothly around an object(the camera itself moves in the demo, orbiting the statue in the opposite direction as to that of the lights) which could be useful for cut-scenes or slow-motion scenes showing actions etc, that particular sample also demonstrates some other very basic GDK concepts, like loading 3D objects and placing them in the 3D-world, displaying text on the screen etc...

If it ain't broke.... DONT FIX IT !!!

Login to post a reply

Server time is: 2024-09-30 07:18:36
Your offset time is: 2024-09-30 07:18:36