Jump to content

  • Log In with Google      Sign In   
  • Create Account


opengl or 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
17 replies to this topic

#1 superpeter   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 03:27 AM

for beginner, which one is easy for use and understand?

Sponsor:

#2 draqza   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 03:44 AM

Neither one. They''re roughly equal, IMO... they require different things for setup, but in my experience, neither is easier to learn.
--


WNDCLASSEX Reality;
...
...
Reality.lpfnWndProc=ComputerGames;
...
...
RegisterClassEx(&Reality);


Unable to register Reality...what''s wrong?
---------
Dan Upton
http://0to1.org
http://www20.brinkster.com/draqza

#3 Rube   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 03:51 AM

I have to disagree.

Unless you have a bit of experience coding with Windows, you''ll find some of the code from DirectX a little cryptic at first until you learn MS''s code style. It''s not hard, so don''t let that deter you.

Also, OpenGL is much more mature. While they both are about the same performance wise and feature wise, OpenGL has much more support readily available on the web and in most book stores.

Personally, I think you''ll spend more time wrestling with 3D concepts and algorathims than you will with the OpenGL or DirectX APIs so I wouldn''t worry which you pick.

G''luck,

R.

#4 123cs   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 03:57 AM

I agree with rube. if you don''t have some experience in windows coding D3D is hard to learn. I use OGL because if new GPU features come up it is not necessary to rewrite everything, you can add features very easy by using OGL extensions

#5 TotalCoder   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 05:54 AM

It also depends on if you're looking to port your games to different platforms. OpenGL is more platform friendly as opposed to DirectX. However, since Windows has 90% or so of the desktop space it is not that much of a problem, if you're game is good more than likely, a lot of people can run it.

But from my expierence from dabbling with 3D game engines or 2D games programming, DirectX does require a lot of in depth understanding of different concepts. To use DirectX well, you need to understand how COM works, somewhat, and to get the most out of it you NEED to know how COM works. Then you can decide from using CoInitialize or ATL smart pointers. I haven't tried OpenGL but I'm not downing it, I hear it is a good API and I'll probably put some effort into learning it.

My suggestion would be learn the mathematics and algorithms behind whatever type of game programming you are considering as this would benefit you more in the long run. Then you can write your game code to whatever graphic API you chose.

Also 123cs is right when a new interface for DirectX comes out, since it must adhere to the COM standard may require you to use a different interface for your graphics code, this may require some rewrite on your part.

Sam
-----
TotalCoder
http://www.totalcoder.com
"Resources, tutorials, and articles for the novice, part-time, and hobbyist programmer"

Edited by - TotalCoder on December 12, 2001 12:55:26 PM

#6 jenova   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 06:34 AM

i don''t think it really matters which you use, because with every revision of Direct3D, it looks more like OpenGL anyway.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

#7 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 12 December 2001 - 03:29 PM

Yes, I think Microsoft anwsers the question for you: They try to copy OpenGL wherever possible in the new Direct3D versions...


#8 superpeter   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 December 2001 - 04:20 PM

yes, i try to learn directx first, but i find it is very hard to understand, i have to learn the ms c style coding, com.....etc, it made me feel very sad, so i change my attentsion to opengl, it also have advantage: it can be ported to another platform.

also anyone know, is the game console like ps, gamecube using opengl api or not?

#9 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 14 December 2001 - 04:28 AM

> also anyone know, is the game console like ps, gamecube using opengl api or not?

Yes, they use OpenGL (at least the GameCube and the PS2 do).

The only console that only supports D3D is the Xbox, a major design flaw from M$, IMO. That''s going to backfire at them.


#10 SketchTurner   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 December 2001 - 10:35 AM

quote:
Original post by Anonymous Poster
Yes, they use OpenGL (at least the GameCube and the PS2 do).
The only console that only supports D3D is the Xbox, a major design flaw from M$, IMO. That''s going to backfire at them.



Also, the DC supports OpenGL and Direct3D, just in case anyone cares



SKeTch

#11 superpeter   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 December 2001 - 11:02 PM

o, this is great, i will go opengl, this is really great!!!

#12 Sepsis   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 December 2001 - 02:58 AM

Just Learn both. Then write libraries for DirectX and OpenGl with your game.. Then you have a game that is ultimatley compatible across all systems.

#13 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 15 December 2001 - 04:55 AM

Hi there

Somebody told me that is
illegal to learn programming
in Germany unless you are
in a school for computer sciense
Is this correct?

#14 Null and Void   Moderators   -  Reputation: 1087

Like
Likes
Like

Posted 15 December 2001 - 08:02 AM

quote:
Original post by Anonymous Poster
Somebody told me that it is illegal to learn programming in Germany unless you are in a school for computer science. Is this correct?

While I don''t have any proof, I somehow doubt that that is true. Even if it is true, go ahead and learn to program; any law that said something like that is one that should be ignored.

[Resist Windows XP''s Invasive Production Activation Technology!]

#15 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 16 December 2001 - 05:12 AM

quote:

Somebody told me that is
illegal to learn programming
in Germany unless you are
in a school for computer sciense
Is this correct?



?????!!! LOL

Where the f*ck do you THINK we live in Germany ??
That must be the most ridiculous thing I''ve ever heard of.
I heard it is illegal to breathe in the US, is that true ? Someone told me they patented oxygen over there...


#16 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 16 December 2001 - 05:24 AM

Its true. I can hold my breathe for 43 minutes, but after that I get a wip to my back for every second I breathe again...

#17 v71   Banned   -  Reputation: 100

Like
Likes
Like

Posted 16 December 2001 - 05:49 AM

...you can always say that you don''t know anything...



#18 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 16 December 2001 - 06:06 AM

> Its true. I can hold my breathe for 43 minutes, but after that I get a wip to my back for every second I breathe again...

See, I was sure

Unless, ofcourse, you pay royalities to, uhm, who patented oxygen ? Oh right, I think MS was it, right ?





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