User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Game Development section within the Software Development category of DaniWeb, a massive community of 456,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,785 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Game Development advertiser: Programming Forums
Views: 1875 | Replies: 7
Reply
Join Date: Aug 2007
Location: Adelaide, South Australia
Posts: 428
Reputation: darkagn will become famous soon enough darkagn will become famous soon enough 
Rep Power: 3
Solved Threads: 53
darkagn's Avatar
darkagn darkagn is offline Offline
Posting Pro in Training

DirectX vs OpenGL

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: DirectX vs OpenGL

  #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  
Join Date: Jul 2006
Location: Deptford, London
Posts: 971
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: DirectX vs OpenGL

  #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  
Join Date: Nov 2007
Posts: 24
Reputation: dirt14 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
dirt14 dirt14 is offline Offline
Newbie Poster

Re: DirectX vs OpenGL

  #4  
Nov 14th, 2007
learn a lot from you
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,873
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

Re: DirectX vs OpenGL

  #5  
Nov 14th, 2007
yeah IMHO OpenGL has better documentation, Directx on MSDN always seems cryptic
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,873
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

Re: DirectX vs OpenGL

  #6  
Nov 14th, 2007
DirectX works well with XNA and visual studio
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Oct 2007
Location: Pennsylvania, US
Posts: 37
Reputation: maddog39 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
maddog39 maddog39 is offline Offline
Light Poster

Re: DirectX vs OpenGL

  #7  
Nov 14th, 2007
Yeah but XNA is for C#.NET only as far as I understand it.
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,873
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 32
Solved Threads: 304
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

Re: DirectX vs OpenGL

  #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
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Game Development Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Game Development Forum

All times are GMT -4. The time now is 5:13 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC