OpenGL vs. DirectX

Sharky Forums


Results 1 to 10 of 10

Thread: OpenGL vs. DirectX

  1. #1
    Hammerhead Shark Samjham's Avatar
    Join Date
    Jan 2001
    Location
    over there
    Posts
    1,641

    Post OpenGL vs. DirectX

    Right now I'm in a computer graphics course that teaches OpenGL, PovRay and Maya, but not DirectX. How similar is OpenGL to DirectX? If you know OpenGL, will that make DirectX pretty easy to learn, or are they completely different?

    The other thing I wanted to ask is if you think that 3d games will ever use a ray tracing engine to get better shadows, lighting and such. Of course if this were to happen, video cards would probably have to be completely redesigned considering that their current pipelines are all designed to be fast at rendering using matrix multiplication and not ray tracing, or am I wrong on this?

    ------------------
    See my specs on Mr. White's Homepage

    "What if...Heaven doesn't want me and Hell is afraid I'll take over?"

    "The number of people watching you is directly proportional to the stupidity of your action"

  2. #2
    Tiger Shark
    Join Date
    Mar 2001
    Posts
    615

    Post

    OpenGL programming will be useful only in that you'll have an understanding of how graphics programming works.

    No, I don't see ray-tracing being done in games any time soon. It requires too much processing time for the difference that it makes. The "tricks" that we use now will be refined to make graphics more and more realistic. Eventually the switch might be made, but I doubt it will be in the next decade or two.
    System specs:


    | Core i5 750 | GA-P55A-UD3 | 4.0 GB G.skill DDR3 1600 | eVGA 470 GTX |
    | Intel X25-M 80 GB SSD | WD 5000AAKS | Lian Li PC-7FN | Corsair TX750W |
    | Windows 7 Home 64-bit |

  3. #3
    Hammerhead Shark
    Join Date
    Sep 2000
    Location
    Luleå, Sweden
    Posts
    1,921

    Post

    If you know OpenGL I don't see a reason to learn DirectX.

    ------------------
    Tweak your Radeon. Get Raid on Tweaker here
    Get UniTuner here

  4. #4
    Catfish
    Join Date
    Aug 2001
    Posts
    177

    Post

    I was totally unable to learn DirectX, I've been trying for about a year. OpenGL, on the other hand, was so easy, I learned it in a few days.
    EPoX 8KHA+
    Athlon XP 1900+
    512 MB DDR-SDRAM
    PNY GeForce3 TI 200

  5. #5
    Catfish
    Join Date
    Aug 2001
    Location
    NYC, NY, USA
    Posts
    161

    Question

    Do you have any links for learning DirectX and Open GL?

    ------------------
    I feel the tragedy of September 11, 2001, with deepest sorrow. My heart is with those who have been lost and their loved ones. Together we will remain strong and build a better world.
    I feel the tragedy of September 11, 2001, with deepest sorrow. My heart is with those who have been lost and their loved ones. Together we will remain strong and build a better world.

  6. #6
    Tiger Shark
    Join Date
    Mar 2001
    Posts
    615

    Post

    If you know OpenGL I don't see a reason to learn DirectX.
    Well, I see plenty of reason to learn DirectX. OpenGL is only a graphics library, obviously limiting it to graphics programming. DirectX, on the other hand, is a full multimedia library. Learning DirectX gives you access to a sound library, an input library, and a networking library, not to mention a 2D and a 3d library.
    System specs:


    | Core i5 750 | GA-P55A-UD3 | 4.0 GB G.skill DDR3 1600 | eVGA 470 GTX |
    | Intel X25-M 80 GB SSD | WD 5000AAKS | Lian Li PC-7FN | Corsair TX750W |
    | Windows 7 Home 64-bit |

  7. #7
    Hammerhead Shark
    Join Date
    Sep 2000
    Location
    Luleå, Sweden
    Posts
    1,921

    Post

    Originally posted by clones:
    Do you have any links for learning DirectX and Open GL?

    http://nate.scuzzy.net/ http://nehe.gamedev.net/

    I recommend this site, especially the forums: http://www.opengl.org


    ------------------
    Tweak your Radeon. Get Raid on Tweaker here
    Get UniTuner here

  8. #8
    Hammerhead Shark
    Join Date
    Sep 2000
    Location
    Luleå, Sweden
    Posts
    1,921

    Post

    Originally posted by Zoma:
    Well, I see plenty of reason to learn DirectX. OpenGL is only a graphics library, obviously limiting it to graphics programming. DirectX, on the other hand, is a full multimedia library. Learning DirectX gives you access to a sound library, an input library, and a networking library, not to mention a 2D and a 3d library.
    Well, sure, you get the whole package with DirectX. But on the other hand nothing is preventing you from using OpenGL together with DirectSound for instance. Also, with the arrival of OpenML, which is supposed to be quite soon (a couple of OpenML extensions has already appeared on the OpenGL extension registry), you'll get input, audio and networking into the same package.

    ------------------
    Tweak your Radeon. Get Raid on Tweaker here
    Get UniTuner here

  9. #9
    Hammerhead Shark Samjham's Avatar
    Join Date
    Jan 2001
    Location
    over there
    Posts
    1,641

    Post

    If you want a good resource to get you started on programming in OpenGL and you don't want a huge heavy book to lug around I'd try getting "OpenGL A Primer" by Edward Angel and if you want you can also get "Interactive Computer Graphics: A Top Down Approach with OpenGL" also by Edward Angel, although I found the first book much easier to read and I only use the second thicker book for reference.

    I think you'll find that OpenGL is actually quite easy to program with.

    ------------------
    See my specs on Mr. White's Homepage

    "What if...Heaven doesn't want me and Hell is afraid I'll take over?"

    "The number of people watching you is directly proportional to the stupidity of your action"

  10. #10
    Tiger Shark
    Join Date
    Feb 2001
    Location
    Satan Country
    Posts
    564

    Post

    I am not sure why you wouldn't want to use OpenGL. Directx is supposed to be huge and needlessly complicated though I haven't used it yet, and it is based on ActiveX which is just kind of crappy. OpenGL is not perfect, but it is pretty easy to for most things, and is supported on more than one platform and hasn't been hacked on by the incopetents at NVidia.

    ------------------
    system specs:
    Voodoo 5 5500 agp
    tyan 1834d tiger 133 dual 800eb 133mhz FSB
    via chipset 133 via apollo pro (don't make this mistake)
    256 MB RAM
    2 maxtor 60gig ata100 drives
    promise ata100 controller
    liteon 52 truex cdrom
    Linksys ethernet 10/100
    Soundblaster Live! (what's so exciting about it??) value edition
    300watt power supply (inwin)
    about 7 pounds of fans (I'm not kidding)
    Suse 7.1(god gnome is crappy compared to CDE)/win2000 based system
    I'm half Scottish and half French.

    I surrender to alcohol.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •