944,181 Members | Top Members by Rank

Ad:
Nov 12th, 2007
0

DirectX vs OpenGL

Expand Post »
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.
Similar Threads
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007
Nov 12th, 2007
0

Re: DirectX vs OpenGL

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Nov 12th, 2007
0

Re: DirectX vs OpenGL

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..
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Nov 14th, 2007
0

Re: DirectX vs OpenGL

learn a lot from you
Reputation Points: 7
Solved Threads: 1
Light Poster
dirt14 is offline Offline
30 posts
since Nov 2007
Nov 14th, 2007
0

Re: DirectX vs OpenGL

yeah IMHO OpenGL has better documentation, Directx on MSDN always seems cryptic
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005
Nov 14th, 2007
0

Re: DirectX vs OpenGL

DirectX works well with XNA and visual studio
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005
Nov 14th, 2007
0

Re: DirectX vs OpenGL

Yeah but XNA is for C#.NET only as far as I understand it.
Reputation Points: 10
Solved Threads: 5
Light Poster
maddog39 is offline Offline
39 posts
since Oct 2007
Nov 14th, 2007
0

Re: DirectX vs OpenGL

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
Moderator
Featured Poster
Reputation Points: 1800
Solved Threads: 575
Moderator
jbennet is offline Offline
16,534 posts
since Apr 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: Animating Sprites
Next Thread in Game Development Forum Timeline: Creating a good game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC