• Advertisement
Sign in to follow this  

C++ game from scratch in 3d with models

This topic is 1798 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, guys, i just wonder how could i make a game from scratch in c++. I know it is easy to make tic-tac-toe and such thin, but how do you make a 3d game. Can anyone show me how ? Or i will give some models and can anyone help me by showing how to do it or is there anothher tutorial out there already ??

Ya, i know, we can use game engines, like unity ce3 or ue3, but still I just want to learn...

Share this post


Link to post
Share on other sites
Advertisement

As Frob mentioned, aside from C++ you definitely need strong understanding of some linear algebraic terms. However there are more things to cover as well. otherwise it will be just a rendering engine not a game. A game has to be interactive in order to be called a game. for that reason you need some collision detection engine. if you are brave enough to implement that yourself, then you need to learn  math behind collision detection as well.

start with something simple such as AABB vs ray, AABB vs AABB, OBB vs OBB Sphere vs Sphere and so on. You must understand the basics of matrix and vector manipulation before you dive in to collision detection though, otherwise you won't make sense of things.

 

I would recommend following books.

3D math primer for Game development(by Fletcher Dunn & Ian Perberry)

and

3D game engine Programming(by Stefan Zerbst & Oliver Duvel)

Share this post


Link to post
Share on other sites

ya, i just want to see a sample project now, so i can see how they are doing it.

 

Like Frob said, trying to grasp the whole concept at once will only result in frustration. 

Share this post


Link to post
Share on other sites

ya, i just want to see a sample project now, so i can see how they are doing it.


Finding source code isn't hard. Just seaarch github for "3d game".

Share this post


Link to post
Share on other sites
If you make a 2D game that just uses 3D graphics, the only thing that needs to be different about the engine is the rendering component.
So what you actually need is tutorials to use a graphics interface, not an entire game engine.

These tutorials read very nicely and use modern-style OpenGL. As you can see, model loading comes up at tutorial 7.
http://www.opengl-tutorial.org/

Share this post


Link to post
Share on other sites

Seeing as everyone above me has already given great answers, I will just reiterate.  You need a solid grasp of your language of choice, the libraries you choose (if you choose any), paradigms, algorithms, etc.

 


and also atleast give me a source for a begineers to start off

You really need to use Google and do the research for yourself.  Regardless, this should get you started:

https://github.com/id-Software/DOOM-3-BFG

 

This is the complete source code to Id Software's Doom 3 BFG edition. This contains the entire engine and game code, but no assets.  If you are going to take a look at the Doom 3 BFG codebase, you might also find this code review helpful.

http://fabiensanglard.net/doom3/index.php

~Byte.

Share this post


Link to post
Share on other sites

Seeing as everyone above me has already given great answers, I will just reiterate.  You need a solid grasp of your language of choice, the libraries you choose (if you choose any), paradigms, algorithms, etc.

 

 


and also atleast give me a source for a begineers to start off

You really need to use Google and do the research for yourself.  Regardless, this should get you started:

https://github.com/id-Software/DOOM-3-BFG

 

This is the complete source code to Id Software's Doom 3 BFG edition. This contains the entire engine and game code, but no assets.  If you are going to take a look at the Doom 3 BFG codebase, you might also find this code review helpful.

http://fabiensanglard.net/doom3/index.php

~Byte.


thanks, i had the doom thing before, but i didn't know how to use it, now i just got to know what was the use of it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement