Archived

This topic is now archived and is closed to further replies.

Mat1515

OpenGL or Direct X

Recommended Posts

Hey I have a good understanding of C++ and i want to move into game programming but I in a toss up of if If i should go with OPENGL or DIRECTX ?¿? Whats your is one easier to learn for a newb? If i learn one will i whave trouble learing the other and not get things confused thanks

Share this post


Link to post
Share on other sites
This is just what i think ...

i had the same problem a 6 months ago ... and now i can handle graphics routines for them both ... and i like them both ... however, i could recommend to start with DirectX, because it has much more functions build in ... in openGL (if your not using Glut), you have to code your own texture and mesh functions ... thats, of course is more interesting ...

T-

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You should go with OpenGL because DirectX has to maintain sounds/music/network and graphics on the same chip so it is not as fast as OpenGL, witch can only be used for graphics. We have made bencmarks in our laboratory and OpenGL seems to be 160% faster than DirectX if you play sounds and use network at the same time when drawing things with D3D. So -> go with OpenGL.

Share this post


Link to post
Share on other sites
quote:

Why is this question asked at least once a month if not more?



Because there are new members every month, people who do not see every post on the boards, and people who have not been at this sort of thing long enough to get the hang of looking in FAQs first.

Years ago I know I used to think of forums, news groups and mailing lists as a great place to ask my questions, and my questions were unique to me. How frustrated I was when I would I would get (sometimes) flamed for asking a question which had been asked 100s of times before and promptly told to read the FAQ/search the archives - then wonder to myself ''what''s this forum for then????''. Checking the FAQ is a learned skill.

Here at GameDev, the faq link is really small an hard to notice. For those who are not experience forum users, it''s not an obvious place to look for answers. Perhaps if there were a more blatant link, maybe a sticky link in each forum in big red letters ''Look For Answers Here First!!''.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
You should go with OpenGL because DirectX has to maintain sounds/music/network and graphics on the same chip so it is not as fast as OpenGL, witch can only be used for graphics. We have made bencmarks in our laboratory and OpenGL seems to be 160% faster than DirectX if you play sounds and use network at the same time when drawing things with D3D. So -> go with OpenGL.

Heheh.. nice one

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
AP: (tha utha one) - That''s the most ridiculuous thing I''ve ever heard!! For some reason I picture your ''lab'' as being a 486 with a toaster nailed to the side of it, which must be that magic all-in-one ''chip'' you''re talking about...

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
AP: (tha utha one) - That''s the most ridiculuous thing I''ve ever heard!! For some reason I picture your ''lab'' as being a 486 with a toaster nailed to the side of it, which must be that magic all-in-one ''chip'' you''re talking about...



Tee Hee.

Since when does graphics, sound, and network work all off of the same chip? (And I''m not talking about the integrated piece of junk boards either) I got to get me one of those toasters

You don''t use a Wal-Mart special bundle PC in your lab by any chance do you?

-UltimaX-

"You wished for a white christmas... Now go shovel your wishes!"

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ive never had to look outside DirectX (mind you, i mainly work with Xbox.)

Share this post


Link to post
Share on other sites
an other reason for asking again thia question is the fast development of the API
I have alwayes been on opengl side, but from 8.1 version and D3DX I switched to direct x

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Aldacron
quote:

Why is this question asked at least once a month if not more?



Because there are new members every month, people who do not see every post on the boards, and people who have not been at this sort of thing long enough to get the hang of looking in FAQs first.



I just don''t understand how people can think they''re the first ones to ever wonder about this. Surely a forum dedicated to game development has beaten this topic to death. I always check faqs, but certain questions I just know will be there, this is one of them.

But in the OP''s defense, GameDev''s search function has been broken for months (or at least, I''ve never successfully performed a search on it for months, always errors out), which cuts off a great resource.

Share this post


Link to post
Share on other sites
quote:
Original post by Mat1515
Whats your is one easier to learn for a newb?
OpenGL. Not because it is "easier", it is just because you can get started faster.
quote:
If i learn one will i whave trouble learing the other and not get things confused thanks
No. You''ll have no trouble jumping from one or the other.





~~~~~
"the best thing about betting on apathy is that even when you lose, you dont care." - nethead.
Download and play Slime King I.

Share this post


Link to post
Share on other sites
Maybe someone who is reall good and nice (Almost skipped an ''o'' there,...) and has a good knowledge base of a large number of stuff like this could write up a comparision list of as many API or whatever, and have it stickied in the forum. (State things like, how much work is needed each time it is used, how much resources there are for them, how well they actually work, the limits of what they can do, cost, and what platforms they can run on)

If one of these were writen, and updated now and then, it would be a great help to new people, (Like me,...) I know I would really like to see a list of all known programing languages, and what their pros and cons are,... (Biggest Cons for most of them are likely the resources for them, or the platforms they run on,...)

Also, I haven''t yet seen much other options for graphics in windows games, other than something in windows itself, (First few lines of it said it sucked, so I skipped it,...) DX, oGL, and SDL,... I know there are more options, (one I saw, but can''t find, hate forgetting to bookmark! allows easier displaying of tiles than most others or something,... sucks I can''t find it now, as it looked really sweet for what I wanted)

Share this post


Link to post
Share on other sites
quote:
Original post by Talroth
Maybe someone who is reall good and nice (Almost skipped an ''o'' there,...) and has a good knowledge base of a large number of stuff like this could write up a comparision list of as many API or whatever, and have it stickied in the forum. (State things like, how much work is needed each time it is used, how much resources there are for them, how well they actually work, the limits of what they can do, cost, and what platforms they can run on)...

This is an impossible dream.

1st. Assuming you mean Cost as in penalty of use. Cost isn''t really a discrete number. You can use Cost to compare algorthms, but it gets weird to go between different APIs / Video cards, etc.

2nd. OpenGL is evolving as we speak, DirectX has a major evolution about year. The list would become outdated soon. OpenGL contains a lots of Extentions. Some of them are not for home use. Since OpenGL has lots of Extensions, both single application use and otherwise, there is no list of Extensions. I think a Delphi group is trying to keep a list of extentions and what they do, but it is rather slow, and mostly the home market stuff.

3rd. Platforms they run on is obvous. Microsoft DirectX vs. OpenGL.

4th. Sometimes things tip in one API''s direction. Right now, OpenGL doesn''t have a good pixal shader, but GLSlang will be in OpenGL 1.5. If I wrote about how much better Direct3D is right now, as soon as OpenGL 1.5 comes out, my description will misinform the n00bs.
quote:
Also, I haven''t yet seen much other options for graphics in windows games, other than something in windows itself, (First few lines of it said it sucked, so I skipped it,...) DX, oGL, and SDL,... I know there are more options, (one I saw, but can''t find, hate forgetting to bookmark! allows easier displaying of tiles than most others or something,... sucks I can''t find it now, as it looked really sweet for what I wanted)

SDL is a DirectX 5.0 wrapper. SDL is a 2d library, OpenGL & DirectX is 3d. SDL is in a leauge all its own.

In the long run, no matter what you choose, you can pretty much get the same results with OpenGL & Direct3D.

For the hobby developer, it is more of a preference, then something descrete.

For the professional developer, it is whatever the engine your buying is coded in.


~~~~~
"the best thing about betting on apathy is that even when you lose, you dont care." - nethead.
Download and play Slime King I.

Share this post


Link to post
Share on other sites
The OpenGL and DirectX war will wage for many more years to come and the Weapons (API Features) of each side will continue to grow and grow.

I''ve discovered recently that its not about which ones better or such, its about what you feel comfortable with, buy a beginners book on DirectX and one on OpenGL, which do you prefer? Then Stick to that!

Have as much fun as I am having,
Adam

Share this post


Link to post
Share on other sites
I wish the moderators would program the forums to not let anyone post a thread with the words OpenGL (or any of its abbreviations) and D3D/DirectX (with it abbrevations) in the title of the thread...

Share this post


Link to post
Share on other sites