Jump to content

  • Log In with Google      Sign In   
  • Create Account


Is OpenGL better then DirectX?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 DirectX OWNS   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 September 2001 - 04:18 AM

I don''t think so.. As you can see in my name I think DirectX is clearly the best and OpenGL is just some cheap API.

Sponsor:

#2 Oluseyi   Staff Emeritus   -  Reputation: 1678

Like
Likes
Like

Posted 29 September 2001 - 04:39 AM

Score: -1, flame bait.

Don''t do that. Don''t come into an OpenGL forum to incite something. If you have a legit question, ask it, but retain your objectivity.

IMHO, it all boils down to choice. One API is better for you than another, but not necessarily better. And in any case, DirectX and OpenGL are not what you''re really comparing; you want to put DirectGraphics and OpenGL side-by-side.

#3 Aprosenf   Members   -  Reputation: 372

Like
Likes
Like

Posted 29 September 2001 - 05:36 AM

Yes and no. No and yes. Here''s a comparison from OpenGL Game Programming:

Feature OpenGL DirectX 8
Vertex Blending N/A Yes
Multiple operating systems Yes No
Extension Mechanism Yes Yes
Development Multiple-member board Microsoft
Thorough specification Yes No
Two-sided lighting Yes No
Volume Textures Yes No
Hardware independent Z-buffers Yes No
Accumulation buffers Yes No
Full-Screen Antialiasing Yes Yes
Motion Blur Yes Yes
Depth of Field Yes Yes
Stereo Rendering Yes No
Point-size/line-width attributes Yes No
Picking Yes No, but has utility functions
Paramteric curves and surfaces Yes No
Cache geometry Display lists Vertex buffers
Software emulation Hardware not present Lets application determine
Interface Procedure calls COM
Updates Yearly ARB or extensions Yearly update
Source-code availability Sample implementation Starting point in Microsoft DDK

This list probably isn''t complete, and it seems biased towards OpenGL (because it''s from an OpenGL book), but both APIs are equally as useful and powerful. Many great games have been written with each API.

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 29 September 2001 - 11:06 AM

Aprosenf:

There are a few errors in your list:
* Vertex Blending is available in OpenGL through an extension
* The extension mechanism is not available under DX8
* Cache geometry: under OpenGL you can choose between display lists and vertex arrays. The OGL version of D3D''s vertex buffers are vertex arrays.
* Software emulation under OpenGL: The application can determine it, when properly designed.


#5 TerranFury   Members   -  Reputation: 142

Like
Likes
Like

Posted 30 September 2001 - 03:30 AM

It''s funny, he''s comparing DirectX and OpenGL.

So tell me, DXOWNS, is an_apple > an_orange ?

DirectX = input, sound, networking, music synthesis and generation, and graphics (in DX7 both 2D and 3D).

OpenGL = 3D graphics (Please don''t tell me "You can do 2d in OpenGL." Ortho projection is NOT 2d; it''s 3D that isn''t perpective correct, aka Parallel Projection. I know you can make a 2d game, but the graphics are technically still 3d. I know it''s a fine point, but it bothers me.)


Now I guess what you really MEANT was "DirectX Graphics OWNS." For true 2d, DDraw7 is the best option IMHO (unless you want to work in 320 x 240 x 8, in which case...). D3D Retained Mode was just horrible. D3D Immediate Mode was just a little behind OGL. Now, DX8 Graphics really is comparable to OpenGL, so it''s now just a matter of preference.

#6 Supernova   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 03:38 AM

What if you want to do 2D and use Alpha Blending and also rotate your sprites freely? Good luck using DirectDraw for that I made a 2D engine with OpenGL using orthographic projection. It supports alpha blending and quad rotation. I also implemented support for a custom number of texture fonts. Yes I'm quite proud of the thing And because it's OpenGL (and I'm using SDL also actually, which allows me to not worry about windows code) it's platform independent, and it has been tested successfully on Linux. Of course, I'm not trying to trash DirectX, it's great for what it is, but D3D was too complex for me to start with.

Oh and one last thing, it seems that even the most crappy video cards have some support for basic OpenGL functions. I used to work at this department at college, and they got new computers recently, from Dell. The video card is an integrated 4 meg. Yes, you read correctly To my huge surprise, the thing was able to run NeHe's textured cube demo in full screen just fine (didn't work windowed though). So apparently manufacturers add some OpenGL support even to the crappiest cards out there.

Edited by - Supernova on September 30, 2001 10:44:58 AM

#7 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 30 September 2001 - 03:46 AM

Did you had a look at this ''DirectX OWNS'' guy''s profile ? He created that nick just to post this topic here. I wonder who it is, I''m sure it''s someone known to the messageboard, who is trying to flame under another identity.
Perhaps some of the GDNet staff should do an IP match ? Could be interesting to know...


#8 David_Kay   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 September 2001 - 04:07 AM

"Anonymous Poster Did you had a look at this ''DirectX OWNS'' guy''s profile ? He created that nick just to post this topic here. I wonder who it is, I''m sure it''s someone known to the messageboard, who is trying to flame under another identity.
Perhaps some of the GDNet staff should do an IP match ? Could be interesting to know... "

Taking it to the extreem there eh? Sometimes people on these boards take things too seriously. Lighten up seesh. In most ''flame'' wars, others such as myself learn a lot, may it be learning some lies or the truth. Personally I never knew OpenGL supported as much as it does as stated in the list by Aprosenf.

All in all, calm down. Get some air Mr/Miss AP.

#9 mittens   Moderators   -  Reputation: 1315

Like
Likes
Like

Posted 30 September 2001 - 06:37 AM

Watch it guys... I don''t want to have to lock this post... So far its staying about 2cm in front of the ''thin line'' between good and stupid.

Also, I don''t see a need to continue. Aprosenf should have answered *ALL* questions with the stats that he posted... You can''t argue with the figures.

------------------------------
Trent (ShiningKnight)
E-mail me
ShiningKnight Games

#10 Aprosenf   Members   -  Reputation: 372

Like
Likes
Like

Posted 30 September 2001 - 11:45 AM

Anonymous poster -
If you disagree with the list, then talk to Dave Astle and Kevin Hawkins. I take no credit for posting that list, it came straight out of the book.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS