Which is better to start off in DirectX or OpenGL

This is a discussion on Which is better to start off in DirectX or OpenGL within the Game Programming forums, part of the General Programming Boards category; Which is better to start off in DirectX or OpenGL...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    19

    Which is better to start off in DirectX or OpenGL

    Which is better to start off in DirectX or OpenGL

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    100
    Okay OpenGL is only graphics.
    DirectX is Graphics, sound, input, you name it.

    Sorry, you're gonna have to learn both.

    If it's a question between OpenGL and Direct3D, choose OpenGL. Direct3D and DirectX in general is poorly documented.

    But for input, sound, the works, you should include DirectX.

  3. #3
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    DirectX is a complete multi-media platform, containing libraries for sound (DirectSound), input (DirectInput), and graphics (Direct3D), and maybe more.. I dont know, I'm no M$ fan.

    So your question would be Direct3D vs. OpenGL, and its a common and big question which you'd yield thousands of results if you searched google, and dozens if you searched this forum.

    Essentially they are both great graphics libraries. OpenGL is just as complete as Direct3D, but supposedly OpenGL is easier to learn. OpenGL is multi-platform, so you can program it to work on Windows, Linux, and Mac OS, which is a very desirable trait. Direct3D is for Windows only, and the code is hardcoded into their dll and such, so the library is quite huge in size (not a big deal), hence not open source, and hence doesnt have the ability to form to new hardware developments until hardcoded into it by M$. Its possible in some situations you would get better renders using OpenGL (not a huge deal). Generally there would be more resources to work for Direct3D, but IMHO not a big deal. Direct3D is more commonly used in the game industry atm, however it seems OpenGL is starting to make its way into it, and will probably be right beside Direct3D in a few years, so thats not a big deal. OpenGL however has some other features like addons for better renders by the same company, but thats not so useful in the game field.

    The only huge fault to consider before choosing which to learn is that 1) Direct3D isnt multi-platform, 2) Direct3D comes with partner libraries, so if you learn Direct3D it would be easier to learn DirectInput/Sound; however with OpenGL you are required to try other libraries to use with OpenGL, like SDL, or OpenAL, etc. Not all the "Open" titles are developed by the same group (I believe there are three different groups with "OpenXX" titles. Also consider you'll probably be forced to learn both in college or at the work place either way, eventually.

    OpenGL wins.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    ---
    Join Date
    May 2004
    Posts
    1,379
    >>Direct3D and DirectX in general is poorly documented.

    Do you think so? It's not really that bad. If you can't read the docs you shouldn't be learning it.

    Dae pretty much said it all except one big one.
    DirectX is C++ oriented.
    OpenGL is C oriented.

    So if you are a C programmer, DirectX could be a little tricky.
    Last edited by sand_man; 08-26-2005 at 05:28 AM.

  5. #5
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    nah, Direct-X has a ton of macro's for C and uses function pointers etc... so its really not that bad... well... what little i've used anyway...

    also Direct-X also inculdes a network library called Direct Play i think?
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Direct3D and DirectX in general is poorly documented.
    The documentation is fine IMO. It's their examples that are very hard to read and understand mainly because of all the extra MFC stuff.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Registered User
    Join Date
    May 2005
    Posts
    41
    If your just starting out,, and want to make a simple, 2D game, try googling for HGE. Its free for non comercial use, and is based on Direct X.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL or DirectX?
    By JJFMJR in forum Game Programming
    Replies: 4
    Last Post: 06-18-2007, 06:11 AM
  2. OpenGL vs DirectX
    By WDT in forum Game Programming
    Replies: 9
    Last Post: 10-01-2006, 03:19 AM
  3. Going from DirectX to OpenGL
    By Wraithan in forum Game Programming
    Replies: 19
    Last Post: 02-24-2006, 10:07 AM
  4. OpenGL DirectX 2D
    By c++.prog.newbie in forum Game Programming
    Replies: 11
    Last Post: 03-01-2005, 12:54 PM
  5. Widgets with OpenGL, DirectX or SDL?
    By nickname_changed in forum Game Programming
    Replies: 1
    Last Post: 09-25-2004, 11:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21