Which is best for game programming opengl or directx ?

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 9949 Views - Last Post: 09 June 2011 - 12:07 PM Rate Topic: -----

#1 atwal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 27-February 11

Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 12:33 PM

Hello Every one
I want to make some 2d and 3d games. I am confussing to choose OpenGl and DirectX?
could you tell me which is best for game programming for 2d and 3d games.
And which is easily portable from one machine to another?
Which is widely useable in game industry OpenGl or DirectX?
Please help me to choose openGl or DirectX.
Thanks

This post has been edited by atwal: 08 June 2011 - 12:35 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Which is best for game programming opengl or directx ?

#2 sk1v3r  Icon User is offline

  • D.I.C Addict

Reputation: 231
  • View blog
  • Posts: 668
  • Joined: 06-December 10

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 12:37 PM

Quote

And whicch is easily portable from one machine to another?

I would have to say openGL, because it is the only one of the two that is actually cross-platform :P DirectX is windows only.
Both are used in the games industry I believe, but for a console like the 360 directX is what would be used (microsoft).
Was This Post Helpful? 2
  • +
  • -

#3 Fib  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 161
  • View blog
  • Posts: 554
  • Joined: 12-March 09

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 12:56 PM

Direct3D is the industry standard. But Direct3D is windows systems only.

OpenGL is rarely used in commercial games, but it is cross platform (windows, mac, linux).

Both Direct3D and OpenGL can make 2d and 3d graphics.

I don't really think one is better than the other, it all depends on the platform you are targeting and your personal preference.

This post has been edited by Fib: 08 June 2011 - 12:58 PM

Was This Post Helpful? 2
  • +
  • -

#4 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 01:13 PM

DirectX - Although windows only it is an SDK that provides a lot more than just a graphics library. It handles graphics, IO, audio, asset management with a good set of tools to help you on your way.
Was This Post Helpful? 1
  • +
  • -

#5 heyoman1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 64
  • View blog
  • Posts: 735
  • Joined: 30-November 09

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 01:15 PM

It's more of a personal preference than anything.
Was This Post Helpful? 1
  • +
  • -

#6 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1356
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 01:25 PM

These discussions about which x is best always pop up and the answer almost always results in a resounding "It depends on the situation". So as the others have already said, they are both great for game development, for specific situations. If you want the best as far as most functionality offered with the framework, DirectX is the clear winner, but as mentioned already it is Windows Only. If you're planning on going cross platform, you'll need OpenGL. If you're developing only for Microsoft based platforms, Windows pc, windows phone and/or XBox360 the clear choice is DirectX due to the fact that you get a lot more functionality out of the framework than you do OpenGL.
Was This Post Helpful? 1
  • +
  • -

#7 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 01:31 PM

Very strictly speaking all, DirectX was developed to allow programmers to develop multimedia applications including games. OpenGL on the other hand is an API specifically developed to render high-end graphics on workstations. As OpenGL gained popularity we found other libraries pop-up like OpenAL to support audio.

Why I encourage DirectX, as I've said many many times before, it is most likely to resemble (or be!) the type of environment you will be using in professional game making. If you intend to remain hobbyist it actually doesn't matter what you use. :)
Was This Post Helpful? 1
  • +
  • -

#8 atwal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 27-February 11

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 09:55 PM

Thanks everyone for helping me.
Actually I am going to join Game industry as game programmer and I want to make a game for sample.
so i am thinking that it should be like this employer have no need to install any think and my game can run on their system.
Could you also tell me which is used for XBox 360, sony play station and wii?
and which one is industrial standard for these platform.
Was This Post Helpful? 0
  • +
  • -

#9 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 10:17 PM

Please have a read of the blog linked to in my sig. :)

Given that you wish to join the industry you should be aware of which of the modern consoles you can program for if you are not a certified developer, and currently this stands at the 360 being your only option.

Keep up with the latest developments in the industry and be able to talk about technology as well as the games available on the platforms. When making you demo make it as impressive as possible and code it elegantly - do not make something that looks outdated and featureless. Be able to explain thoroughly the code in your demo and the design decisions made vs the alternatives, and don't be afraid to admit bad decisions as this shows your awareness of the importance of well designed code.

Document your code! Many forget this. There should be no warnings or errors when the code is built.

Finally, make you demo on the PC. The developer will be able to build and run it then.

This post has been edited by ButchDean: 08 June 2011 - 10:20 PM

Was This Post Helpful? 1
  • +
  • -

#10 Achilles4689  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 03-June 11

Re: Which is best for game programming opengl or directx ?

Posted 08 June 2011 - 11:56 PM

If you are trying to make 3D games I would recommend first reading up and truly understanding how the graphics pipeline works. It will give you a much much better understanding of what your code does, especially once you have to start writting your own shaders. I recommend the book Real time rendering. It is loaded with amazing content and its chapter on the graphics pipeline is unreal.

-Achilles

Also another note, starting out with a 2D game will be great for you if you are just beginning in game programming but beware of the differences between a 2D and 3D game (especially with directX). DirectX has some nice built in functions for sprite handling and you will be able to get a 2D game running without a ton of trouble, but as far as the knowledge you gain and really understanding how graphics work (especially in 3D) directX will leave you lacking.

-Achilles
Was This Post Helpful? 1
  • +
  • -

#11 atwal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 27-February 11

Re: Which is best for game programming opengl or directx ?

Posted 09 June 2011 - 01:07 AM

Thanks Everyone to help me
is anyone can tell me which is industrial standards IDE for native c++ an game programming? and which is widely used

Visual Studio, Eclipse, Netbeans or anyone else?
Was This Post Helpful? 0
  • +
  • -

#12 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: Which is best for game programming opengl or directx ?

Posted 09 June 2011 - 01:29 AM

Visual studio is the most widely used IDE in the industry, there is no real contest :)
Was This Post Helpful? 0
  • +
  • -

#13 Achilles4689  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 03-June 11

Re: Which is best for game programming opengl or directx ?

Posted 09 June 2011 - 01:58 AM

I would personally say visual studios for C++ no contest. For Java I like Eclipse =)
Was This Post Helpful? 0
  • +
  • -

#14 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: Which is best for game programming opengl or directx ?

Posted 09 June 2011 - 02:48 AM

View PostButchDean, on 09 June 2011 - 06:17 AM, said:

Given that you wish to join the industry you should be aware of which of the modern consoles you can program for if you are not a certified developer, and currently this stands at the 360 being your only option.


I don't know much about this but wouldn't the game have to be written in XNA to run on a 360? Which will not be used in the industry.

I quite like Wii and DS homebrew as you can really learn the limitations of the hardware and get down to the real boiler plate stuff. Admittedly this has more legal implications but it's great practice all the same.

Come on WiiU Homebrew!
Was This Post Helpful? 0
  • +
  • -

#15 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 0
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: Which is best for game programming opengl or directx ?

Posted 09 June 2011 - 11:57 AM

View Poststayscrisp, on 09 June 2011 - 09:29 AM, said:

Visual studio is the most widely used IDE in the industry, there is no real contest :)

Another one you might see for more cross-platform development in the industry is also CodeWarrior, but nowhere near as popular as VS.

View Poststayscrisp, on 09 June 2011 - 10:48 AM, said:

I don't know much about this but wouldn't the game have to be written in XNA to run on a 360? Which will not be used in the industry.

Perfectly correct, but at least it gives you some feel for developing something on a console - that's more-or-less the reason why I mentioned it. :)
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2