DX10 or OpenGL?

This topic is locked from further discussion.

Avatar image for trasherhead
trasherhead

3058

Forum Posts

0

Wiki Points

0

Followers

Reviews: 6

User Lists: 0

#1 trasherhead
Member since 2005 • 3058 Posts
Since there has been alot of talk about that the PS3 not having DX10 related threads lately i though this would be fitting.
Now I don't know too mutch about computer programing, but isn't it right to say that you don't program in DX? you program in C++ etc.
Anyway, isn't it posble to do coding that gives the same result in both DX and openGL? since they structures are very similar? Not that the code is the same but has the same ingame effect like HDR lighing etc.
Avatar image for magus-21
magus-21

2868

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2 magus-21
Member since 2006 • 2868 Posts
Now I don't know too mutch about computer programing, but isn't it right to say that you don't program in DX? you program in C++ etc.trasherhead
Correct. DX10 and OpenGL are simply APIs, which are basically collections of very complex functions that are pre-constructed in C++ so that developers don't have to worry about tweaking the extremely ground-level stuff.
Anyway, isn't it posble to do coding that gives the same result in both DX and openGL? since they structures are very similar? Not that the code is the same but has the same ingame effect like HDR lighing etc.trasherhead
It's technically possible to duplicate everything DX10 does in OpenGL and vice versa, but in reality, the benefit of choosing one over the other is hardware acceleration. Because DX10 and OpenGL are specific and unchanging, the logic that powers them can be implemented into hardware. For example, it may take ten clock cycles to perform a simple arithmetic computation, but if done in hardware it might only take two or three clock cycles or even less. EDIT: Forgot to add, the reason hardware acceleration is important is because you can't change hardware. Both DirectX 10 and OpenGL are capable of the same performance, but in order to support both in hardware, you'd have to build them separately into your hardware. Some GPU features are included in both DX and OpenGL, but there are enough features that are exclusive to one or the other, or are simply handled differently, that a GPU that supports one API will not be capable of running games written in the other API very efficiently.
Avatar image for Keibo
Keibo

1488

Forum Posts

0

Wiki Points

0

Followers

Reviews: 3

User Lists: 0

#3 Keibo
Member since 2003 • 1488 Posts

removed because magus's example is spot on ;)

Avatar image for muscleserge
muscleserge

3307

Forum Posts

0

Wiki Points

0

Followers

Reviews: 3

User Lists: 0

#4 muscleserge
Member since 2005 • 3307 Posts
OpenGL is faster a bit, and runs a lot better on Nvidia hardware. Me personally I haven't seen any game use openGL2.0, however Cronicles of Riddick on PC ran on OpenGL1.5 and looked awsome.
Avatar image for Only_the_Truth
Only_the_Truth

29

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#5 Only_the_Truth
Member since 2006 • 29 Posts

Since there has been alot of talk about that the PS3 not having DX10 related threads lately i though this would be fitting.
Now I don't know too mutch about computer programing, but isn't it right to say that you don't program in DX? you program in C++ etc.
Anyway, isn't it posble to do coding that gives the same result in both DX and openGL? since they structures are very similar? Not that the code is the same but has the same ingame effect like HDR lighing etc.
trasherhead

Magus was spot on but to simplify a little, the bottom line is that it doesn't matter what API your using in the console if the hardware itself doesn't support those features which DX10 is designed to use.  And the PS3 doesn't have certain features which in the PC space are required to be considered DX10 complient.

The API (OGL or DX) is simply a way of talking to the hardware, but when we say something is DX9 or DX10, we arn't really talking about the API you use to talk to it, we are talking about the features of the hardware itself.  The features of RSX are equivilent to DX9c complience, as are those in Xenos.

Avatar image for CHROMEFLAMIN
CHROMEFLAMIN

1902

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#6 CHROMEFLAMIN
Member since 2005 • 1902 Posts
Here's the simple way I see it, Direct X means "microsoft wants control over it" , Open gl means "it's a free world man,show us what you can do".
Avatar image for trasherhead
trasherhead

3058

Forum Posts

0

Wiki Points

0

Followers

Reviews: 6

User Lists: 0

#7 trasherhead
Member since 2005 • 3058 Posts
Thanks for the replys, think I got it. So you can basicly do like 99% of the same effects on both PS3 and the 360 only that each console has its own strengths so thaat the results may better or worse on each console. Like 360 might do textures better while the ps3 does lighting and effects better...
Avatar image for Marka1700
Marka1700

7500

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#8 Marka1700
Member since 2003 • 7500 Posts
OpenGL is faster Direct X is prettier
Avatar image for -GeordiLaForge-
-GeordiLaForge-

7167

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#9 -GeordiLaForge-
Member since 2006 • 7167 Posts
Thanks for the replys, think I got it. So you can basicly do like 99% of the same effects on both PS3 and the 360 only that each console has its own strengths so thaat the results may better or worse on each console. Like 360 might do textures better while the ps3 does lighting and effects better...trasherhead
No, the 360 does lighting effects better due to the hardware design. But your basic understanding of what he meant is correct.
Avatar image for rdo
rdo

10314

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#10 rdo
Member since 2004 • 10314 Posts

Since there has been alot of talk about that the PS3 not having DX10 related threads lately i though this would be fitting.
Now I don't know too mutch about computer programing, but isn't it right to say that you don't program in DX? you program in C++ etc.
Anyway, isn't it posble to do coding that gives the same result in both DX and openGL? since they structures are very similar? Not that the code is the same but has the same ingame effect like HDR lighing etc.
trasherhead
no dx is integrated,  you program the graphics, sound etc all together.  open gl is graphics,  then you patch in the sounds.  they both have good libraries,  but the dx library is better.  thats why halflife2 didn't even release a linux version.  open gl saves on licensing fees and you dont need anything ms to program in it,  but you have to do alot more work for the money you are saving. 

if you are into programing think of dx as like an ide,  you dont neally NEED an ide,  just a plain text editor and compiler,  but the ide makes everyting so much easier and faster to program, and debug,  thus making it less work, less expensive, and will probably perform better.

Avatar image for -GeordiLaForge-
-GeordiLaForge-

7167

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#11 -GeordiLaForge-
Member since 2006 • 7167 Posts

[QUOTE="trasherhead"]Since there has been alot of talk about that the PS3 not having DX10 related threads lately i though this would be fitting.
Now I don't know too mutch about computer programing, but isn't it right to say that you don't program in DX? you program in C++ etc.
Anyway, isn't it posble to do coding that gives the same result in both DX and openGL? since they structures are very similar? Not that the code is the same but has the same ingame effect like HDR lighing etc.
Only_the_Truth

Magus was spot on but to simplify a little, the bottom line is that it doesn't matter what API your using in the console if the hardware itself doesn't support those features which DX10 is designed to use. And the PS3 doesn't have certain features which in the PC space are required to be considered DX10 complient.

The API (OGL or DX) is simply a way of talking to the hardware, but when we say something is DX9 or DX10, we arn't really talking about the API you use to talk to it, we are talking about the features of the hardware itself. The features of RSX are equivilent to DX9c complience, as are those in Xenos.

The Xenos has some DX10 features too though. But definitely not all of them, so don't try and say that I said it's a DX10 card. Sorry, but people say that every single time that I mention the DX10 features.
Avatar image for trasherhead
trasherhead

3058

Forum Posts

0

Wiki Points

0

Followers

Reviews: 6

User Lists: 0

#12 trasherhead
Member since 2005 • 3058 Posts
[QUOTE="trasherhead"]Thanks for the replys, think I got it. So you can basicly do like 99% of the same effects on both PS3 and the 360 only that each console has its own strengths so thaat the results may better or worse on each console. Like 360 might do textures better while the ps3 does lighting and effects better...-GeordiLaForge-
No, the 360 does lighting effects better due to the hardware design. But your basic understanding if what he meant is correct.

Yeah, it was just an example about them doing the same thing only with one doing one thing better and the other doing something else better.
Avatar image for TekkenMaster606
TekkenMaster606

10980

Forum Posts

0

Wiki Points

0

Followers

Reviews: 4

User Lists: 0

#13 TekkenMaster606
Member since 2006 • 10980 Posts
DirectX is strictly gaming. OpenGL as an API is used in other commercial and industrial applications other than gaming. 
Avatar image for Quack_Attack
Quack_Attack

2562

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#14 Quack_Attack
Member since 2005 • 2562 Posts
OpenGL because of the word "open". I don't care which is prettier.