Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: OpenGL or DirectX

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Posts
    8

    OpenGL or DirectX

    I was wondering which one of those(OpenGL or DirectX) are faster? What are their weaknesses and strengths? and which one is easier?

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2002
    Posts
    8

    Re: OpenGL or DirectX

    it's obviuos that directx is harder... but is opengl faster than directx or is it the other way around? is learning directx more beneficial than opengl?

  3. #3
    Member Contributor
    Join Date
    Jun 2002
    Posts
    68

    Re: OpenGL or DirectX

    Which ever API current hardware supports (the best) will be faster. I think OpenGL is very beneficial to learn because it is portable to many platforms and it is not hardware specific (ie: Super computers might use OpenGL for graphics). DirectX I think is specific to PCs and Xbox and is most likely faster (now) on those platforms because current hardware is designed specially for it (with help/incentive from Microsoft).

    In closing, my opinion is that OpenGL is a better structured high performance graphics API supported by many architectures, while DirectX is combersome and designed specifically for the PC and Xbox architecture.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    442

    Re: OpenGL or DirectX

    I think the above is correct, but, for example, you will find that NVIDIAs implementation of OpenGL is very high quality. Portability is also an issue. The best thing I've found is that its just so quick\easy to pick up and learn. You can start running right away. This is good for productivity.

  5. #5
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Germany
    Posts
    11

    Re: OpenGL or DirectX

    IMAO speed isn't really made by the API, in fact opengl is much easier to learn than D3D (i tried both over longer times)...

    the time you spend in learning D3D, you shall use for OpenGL to learn good optimation methods to speed things really up

  6. #6
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    288

    Re: OpenGL or DirectX

    Ah the classic OpenGL vs D3d debate. I definatly prefere OpenGL and Ill tell you why. First its very very easy to learn. It is very intuitive when you are a newby, and very robust when you are an oldby. There is nothing that OpenGL cannot do that d3d can. (ofcourse you may have to use extensions). Also alot of people debate over OpenGL vs DirectX. Which realy cant be done, cause directx is a series of APIs. handeling input, and sound, and such. Well in that catagory i pull these out. OpenGL is graphics, OpenAL is audio, OpenIL is for image loading, GLut is great for input. And ya know what, they are all OpenGL based syntax, so its very very easy to learn them all. And they are all compleatly platform independent. Which in my mind is much more important than any thing else. Because even though Windows is on top right now, dosnt meen it will be there for ever. There is a very nice version of Linux comming out soon called Lindows. Which, (i feel) will take a very large hold of the market, and Mac is making a comback. To leave these OSs out of your possible money circuit, is simply stupid. I mean that is like selling only chacolate milk in a store. Even though it is a much larger piece of the market, strawberry milk is still making money. You want to start off with the biggest piece of pie. So you get the most bang for your buck. That is why I use OpenGL.

  7. #7
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    442

    Re: OpenGL or DirectX

    dabe, I like the mixed metaphor (Milkshake and Pie)




    [This message has been edited by Robbo (edited 06-14-2002).]

  8. #8
    Senior Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    288

    Re: OpenGL or DirectX

    Yeah, thats why i dont code when im hungry. TOO many variables start to look like this, const double PIE = 3.1416;
    int lemon;
    int lime;
    char ImSoHungry;
    bool NeedFood = true;
    bool MmmmmmChoclate;

    (by the way the bool NeedFood = true; is at the top of the engine im working on now, its set that when i compile, if a certain time has passes, the program simply outputs, ERROR, ERROR, GO EAT NOW.)

  9. #9
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    Omaha, NE US
    Posts
    119

    Re: OpenGL or DirectX

    On 06-14-2002 01:17 AM, a contributor named KraKRaZoR made the following remark:
    I was wondering which one of those(OpenGL or DirectX) are faster?
    Actually, it pretty much depends on which operating system you're using, and in some areas, which version of Windoze you're using. True, Direct3D programs'll prolly run faster than OpenGL apps when you're using Windoze, but when you're using Linux or anything else...well, have fun getting your D3D app to compile.

    It has come to my attention recently that on more recent versions on Windoze, the operating system may actually limit the refresh rate of your monitor, depending on whether you're running a D3D or OpenGL app. When you're running a D3D app, your monitor can run no faster than 75 frames-per-second, or 75Hz; on OpenGL, it's 60Hz.

    This has nothing to do with OpenGL in general, though. This is Microshaft's fault; they coded this fix into their own operating systems. You, as a developer, shouldn't be too concerned about this though. If your graphics card drivers allow you to manually adjust your monitor's refresh rate, or if you can code a feature into your program that allows the user to manually adjust it, then your monitor can run faster than 60Hz when you run your program.

    I'm only aware of this happening on Windoze XP (and I believe Millennium as well, Longhorn? prolly). But this is one of the only reasons where I can see Direct3D running faster than OpenGL. Other than that, they're about the same.

    On 06-14-2002 01:17 AM, a contributor named KraKRaZoR made the following remark:
    What are their weaknesses and strengths?
    OpenGL:
    Strengths:
    *The API is easier than hell to learn
    *It's platform independent
    *You can use it with just about any popular programming language
    *It works with almost any compiler, and the headers should already be included

    Weaknesses:
    *Doesn't support loading any file formats

    Direct3D:
    Strengths:
    *Supports loading different image formats
    *Supports .X format for loading 3D models, which in turn defeats the purpose of writing your own parser and learning how the file format works

    Weaknesses:
    *It's harder than hell to learn
    *It only works on Windoze
    *You can only use it with C++ and VB, or the last time I checked (don't know if they threw in Pascal, C#)
    *Arguably, only works on Microshaft compilers (Visual)
    *The SDK's a friggin' 140MB download


    On 06-14-2002 01:17 AM, a contributor named KraKRaZoR made the following remark:
    and which one is easier?
    Obviously, OpenGL. Not is the API easier to learn, but they don't have to release new versions of the API as often as Microshaft does with DirectX. OpenGL is currently on its 1.3 version, with a 2.0 pending; DirectX, on its 8.1, and OpenGL is a couple years older than DirectX. The problem is, every time they release a new version of their API, you have to relearn the whole damn thing. This is where OpenGL is easier to learn and beneficial, because you don't have to relearn it as often.

    [This message has been edited by rpxmaster because lists and UBB Code don't mix real well]

    [This message has been edited by rpxmaster (edited 06-16-2002).]

  10. #10
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: OpenGL or DirectX

    It has come to my attention recently that on more recent versions on Windoze, the operating system may actually limit the refresh rate of your monitor, depending on whether you're running a D3D or OpenGL app. When you're running a D3D app, your monitor can run no faster than 75 frames-per-second, or 75Hz; on OpenGL, it's 60Hz.
    Huh? Under XP, I run both with a monitor refresh rate of 85hz (the best my monitor can do at 1024x76, and have no problems. Also, for both there are ways to disable the vertical sync, so your app can actually run faster than the monitor can technically keep up.

    I wasn't going to get into yet another D3D vs. OGL debate, but...

    1. Which one is faster seems to depend on the hardware vendor. In my experience, nVidia generally has faster OGL drivers than D3D, though lately they seem to have been getting much closer in speed.

    2. Learn which ever one you like the looks of first. They are both similar enough now that once you learn one, the other is easy to pick up.
    Deiussum
    Software Engineer and OpenGL enthusiast

Page 1 of 4 1234 LastLast

Similar Threads

  1. OpenGL and DirectX
    By zedan in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 04-04-2004, 11:23 PM
  2. OpenGL and DirectX together?
    By frink in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 12-17-2003, 01:53 PM
  3. OpenGL w/ DirectX
    By joeyTR in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-15-2003, 06:47 AM
  4. OpenGL or DirectX?
    By yaro_dup1 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-06-2003, 11:18 PM
  5. OpenGL or DirectX?
    By imported_Michael in forum OpenGL: Basic Coding
    Replies: 32
    Last Post: 06-17-2001, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean