• Advertisement
Sign in to follow this  

What's next in Game programming

This topic is 1700 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,

I want to be a game programmer. I want to work in game company as Ubisoft, Naughty Dog..

It's my dream and I do for it everything.

It's about one year, when I start programming. I understood concept OOP, and C++ too. I've created 8 2D Games as Super Mario, Snake, Pong ...

 

But now, I don't know what I do next. I can go on 3D programming? If yes, which library a should use? Or I can go on Engines? Or I can stayed in 2D Game?

Share this post


Link to post
Share on other sites
Advertisement

If you do decide to 3D on your own, you are generally left with two choices for graphics; OpenGL or DirectX. You should be prepared to spend quite some time (at least about 4-5 months full time in my case) figuring out and understanding one of these frameworks along with all the math involved. I would also recommend that you find a good, up-to-date book to help you through it.

Share this post


Link to post
Share on other sites

Thanks for advice.


Ok, I'll go to 3D graphics, but I don't know which Graphic library I should use, OpenGL or DirectX? Which is better, which has a better perspective to the future?

Share this post


Link to post
Share on other sites

Unfortunately there's no easy answer to that question, as they both have different pros and cons. One major difference is that DirectX is limited to Windows/Xbox/Windows mobile while OpenGL targets multiple additional platforms (Mac, Linux, Android etc). However as far as I know DirectX has been known to be slightly more optimized when it comes to performance. The good news is that their overall structure is quite similar, so once you've got the hang of one of them, the other will be much easier to pick up.

Share this post


Link to post
Share on other sites

Thanks for advice.


Ok, I'll go to 3D graphics, but I don't know which Graphic library I should use, OpenGL or DirectX? Which is better, which has a better perspective to the future?

I prefer DirectX, but in general they work in almost the same way.  Almost all functionality of one can be found in the other, so once you learn one you can port the code to the other API with little problem.  The decision depends mostly on what platform you plan to target.  If you're starting out on Windows I'd say go with DX, but you wouldnt be making a mistake if you went with OGL.

 

One piece of advice that comes to mind is that you shouldnt use these APIs to do your math, even though they offer functions for doing 3D math.  You should have your own separate library for doing all the math so you can reuse it everywhere else without being tied to the rendering code.  Also, try to wrap the API calls as much as possible if you can.  This will allow you to port the code more easily to another API later if you need to.  Since you're just starting out, I'd say create some "RenderEngine" class and put all the setup code into an init function, and then wrap all the DX/OGL low-level functions with thin wrappers... just so that you never use any actual DX/OGL code in your game, only calls to your RenderEngine.

Share this post


Link to post
Share on other sites

Ok I'll go to DirectX. I found some tutorials, but these tutorials don't go to depth. I found some books too, but I don't know which is better on the beginning: 

 

http://www.amazon.co.uk/Introduction-3D-Game-Programming-Directx/dp/1936420228/ref=sr_1_1?ie=UTF8&qid=1369471353&sr=8-1&keywords=DirectX+11

 

http://www.amazon.co.uk/Practical-Rendering-Computation-Direct3D-11/dp/1568817207/ref=sr_1_3?ie=UTF8&qid=1369471353&sr=8-3&keywords=DirectX+11

 

And last question, which graphic library use game consoles?

Share this post


Link to post
Share on other sites

And last question, which graphic library use game consoles?

Xbox/Xbox 360/Xbox One use some version of DirectX.  Playstations use OpenGL.  The Wii used its own API, but was similar to OpenGL.  Have not worked on the Wii U, but it's probably close to the Wii, but with shaders.  Ouya uses OpenGL.

 

On handhelds... Windows Phone 8 uses DirectX, iOS uses OpenGL, Android uses OpenGL.

Share this post


Link to post
Share on other sites

And last question, which graphic library use game consoles?

 

Playstations use OpenGL.

 

Not quite. The PS3 uses Sony's PSGL which is based on OpenGL ES (Embedded Systems) and [url=http://en.wikipedia.org/wiki/Cg_%28programming_language%29]Cg[/url].

Edited by Indifferent

Share this post


Link to post
Share on other sites

 


And last question, which graphic library use game consoles?

 

Playstations use OpenGL.

 

Not quite. The PS3 uses Sony's PSGL which is based on OpenGL ES (Embedded Systems) and Cg.

 

True, it's not exactly OpenGL, but close enough that I think of it as pretty much the same as OpenGL, like the APIs on the Xboxes are pretty much the same as DirectX, although those also had their own changes and extensions.  Being overly pedantic doesnt help the OP with his question.

Share this post


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

  • Advertisement