DirectX vs OpenGL

Reply

Join Date: Aug 2007
Posts: 771
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 104
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster

DirectX vs OpenGL

 
0
  #1
Nov 12th, 2007
Hi all,

I have done some development in OpenGL in the C++ platform and was thinking about trying my hand at DirectX which I have heard is a bit more challenging than OpenGL. From what I have read, DirectX seems to be the more popular format so I was wanting to learn how to use it. Or should I spend my time developing the skills I have gained in OpenGL further? What are the major differences/advantages/disadvantages of each? What are your thoughts/suggestions?

Cheers,
darkagn

PS - This is not a homework question - I was just interested in other people's thoughts on the debate.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: DirectX vs OpenGL

 
0
  #2
Nov 12th, 2007
DirectX is more than OpenGL.
OpenGL is purely graphical presentation (and animation, to an extent), the scope of DirectX is far far wider, including networking, sound, and a lot of other game related services.

OpenGL knowledge will be valuable no matter what platform you're going to work on. DirectX knowledge is Windows specific.

OpenGL also seems to change its specs less often than does DirectX, making it maybe a better thing to learn for future use.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: DirectX vs OpenGL

 
0
  #3
Nov 12th, 2007
Learn both. If you use only vertex buffer objects in OGL, and manually specify the transform state before drawing every object; that's how Direct3D works.. with a few other differences I suppose.. Hey, as an advantage in Direct3D you don't have to write your own matrix/vector classes -_-

Learning both simultaneously isn't really a good idea though.. I have been flitting between the two as tasks demand; I would say, that there are more similarities than differences between the latest OGL and D3D. Definately learn both at some point.. Unless you never need to work on a Microsoft plaform.

As jwenting said; there's more to DX than D3D. I guess you're using Glut/SDL/Windows API or similar, to do (some) of what the rest of DX does. If you're using SDL, you can keep using it with Direct3D; and it simplifies all the boilerplate code you'd usually have to write to set up D3D with the Windows API..
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 41
Reputation: dirt14 is an unknown quantity at this point 
Solved Threads: 1
dirt14 dirt14 is offline Offline
Light Poster

Re: DirectX vs OpenGL

 
0
  #4
Nov 14th, 2007
learn a lot from you
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 15,955
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 504
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: DirectX vs OpenGL

 
0
  #5
Nov 14th, 2007
yeah IMHO OpenGL has better documentation, Directx on MSDN always seems cryptic
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 15,955
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 504
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: DirectX vs OpenGL

 
0
  #6
Nov 14th, 2007
DirectX works well with XNA and visual studio
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 39
Reputation: maddog39 is an unknown quantity at this point 
Solved Threads: 5
maddog39 maddog39 is offline Offline
Light Poster

Re: DirectX vs OpenGL

 
0
  #7
Nov 14th, 2007
Yeah but XNA is for C#.NET only as far as I understand it.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 15,955
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 504
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: DirectX vs OpenGL

 
0
  #8
Nov 14th, 2007
yeah but most DX samples are C++ or C# so its a nice way to get into it.

C# + DirectX is fast enough for most things, people have built RTSes that way
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Game Development Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC