Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

879047 Posts in 32956 Topics- by 24353 Members - Latest Member: kanki

May 23, 2013, 06:11:40 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)DirectX 9.0c VS OpenGL 2.x
Pages: [1] 2 3
Print
Author Topic: DirectX 9.0c VS OpenGL 2.x  (Read 1732 times)
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« on: May 06, 2012, 04:22:34 AM »

Hey.

Let's start a arguments "fight" here (which will ofcourse help me). DX 9.0c vs OpenGL 2.x (because core profile is too much for me. Just as DX 11.)

Could somebody tell me which to pick? And if you could, do not mention portability in OpenGL as a +. I'll keep it in mind.


What I ask you guys for:
Tell your opinion about both OGL and DX and eventually tell which to pick in your opinion.

Thanks!


PS.
Why there's OpenGL thread image:

But there's no DirectX thread image? Wink
Logged

epcc
Level 1
*


View Profile Email
« Reply #1 on: May 06, 2012, 05:21:38 AM »

Nice troll thread, I'll start.

DirectX is a pain to set up, I've actually never even finished installing that, while OpenGL just needs 2 libraries.
On the other hand, it looks like directx drivers are more stable and it's generally better supported.

Finally, IMHO directx code looks really ugly. (why use caps lock for typenames??)
Logged

Klaim
Level 10
*****



View Profile WWW
« Reply #2 on: May 06, 2012, 05:33:37 AM »

Use Ogre, end of conflict.
Logged

http://www.klaimsden.net | Game : NetRush | Digital Story-Telling Technologies : Art Of Sequence
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« Reply #3 on: May 06, 2012, 06:23:48 AM »

Quote
Use Ogre, end of conflict.

I do at the moment. Though, some fields of it are scarying me off. For example, lots of .dlls required along with .exe. Also, loading terrain from heightmap really takes me time to figure out, because there's no "raw" example of it. (Just their own blend maps)
Currently I am trying to figure out loading terrain, but I am always having memory leaks  Toast Right

Althrough, I don't want to discuss Ogre here, but DX and OpenGL which is a pain to choose in. Also, I am a big fan of low-level, so I want to learn things of it's type.

Quote
Nice troll thread, I'll start.

DirectX is a pain to set up, I've actually never even finished installing that, while OpenGL just needs 2 libraries.
On the other hand, it looks like directx drivers are more stable and it's generally better supported.

Finally, IMHO directx code looks really ugly. (why use caps lock for typenames??)

You have much rights there, except the first sentence  Tongue.
Logged

Archibald
Level 3
***


View Profile WWW Email
« Reply #4 on: May 06, 2012, 07:07:23 AM »

First, OpenGL is portable Smiley I know, you said to not mention it, but I wanted to stress the importance of it (portable not only to desktop but also to all mobiles, consoles, etc; requirement to get on the HumbleIndieBundle) and mention this point twice, so I will list it only once and we are even Smiley

I was coding in DX and OpenGL like 10 years ago. Today I can only throw away all my DX code and rewrite it, the OpenGL I can copy/paste and it will still work.

DX is not compatible with other versions of DX Smiley DX has many valuable components, like Music, graphics, network. You might want to use one of these in future. But if you, let's say have an engine which uses DirectDraw 5 and want to made the sound via DirectMusic 7 it will not work (in the end we ended up rewriting the graphics engine).

D3D is nowadays a bit faster (but really not that much and some will disagree) and better supported (again, not that much). If you are 100% sure you are making on Windows only you are 100% sure you need every tiny bit of performance and you don't ever want to reuse this code you should choose DX.


Overall, for an indie this is a no brainer. OpenGL is more than sufficient (we don't have the funds to make a game that would have AAA art assets which would require such extreme performance) and has many, many nice properties.
Logged

URRPG - Unnamed Nostalgia Retro RPG, in development
Europe1300 - medieval sim in alpha stage
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« Reply #5 on: May 06, 2012, 07:42:50 AM »

Thanks Archibald. That has made many things clear!

But this,

Quote
(portable not only to desktop but also to all mobiles, consoles, etc; requirement to get on the HumbleIndieBundle)

convinced me anyway.  Tongue
Logged

Raptor85
Level 2
**

126746725
View Profile WWW Email
« Reply #6 on: May 06, 2012, 08:45:46 AM »

It wasn't an option listed but if you do OpenGL ES compatible code....ES code is compatible with GL3 (it's a subset of it) your code will not only work on all major desktop platforms but all mobile platforms and most consoles as well.
Logged

cross-platform rapid development game engine
Currently running a kickstarter to fund development of Aether
kamac
Level 10
*****


Notorious posts editor


View Profile WWW Email
« Reply #7 on: May 06, 2012, 08:51:47 AM »

But I thought you would have to emulate ES on, say, windows? (Because it cannot run natively?)
Logged

PompiPompi
Level 10
*****



View Profile WWW
« Reply #8 on: May 06, 2012, 09:06:00 AM »

Enjoy debugging OpenGL, meanwhile... DirectX users have PIX. Tongue
Seriously, this is a classic flame war. DirectX9c is replaced by DX11, so any complaint about DirectX9c is not relevant anymore.
For the basic stuff I don't mind use either, or even both. If I want a high end graphics game, I will probably choose DX11, and then maybe have a simplified version implemented with OpenGL. (If I want my game to work on Android and other platforms).
I am not sure about the future of DX though, since MS might neglect it's development in order to put more effort in phone\tablet devices instead.
Logged


Kickstarter? no no no... it's Kicksucker...
Archibald
Level 3
***


View Profile WWW Email
« Reply #9 on: May 06, 2012, 09:23:31 AM »

DirectX9c is replaced by DX11, so any complaint about DirectX9c is not relevant anymore.
DX above 9.0c is not supported by WinXP and you want to still support WinXP nowadays, therefore DX 11 is useless and can't be taken into account.
Of course you could make a game with 2 versions (9.0c for WinXP and 11 for newer Windows) but...
Logged

URRPG - Unnamed Nostalgia Retro RPG, in development
Europe1300 - medieval sim in alpha stage
PompiPompi
Level 10
*****



View Profile WWW
« Reply #10 on: May 06, 2012, 09:27:15 AM »

Are you serious?
There is really no reason to develop a 3D game to WinXP these days. Not financial reason, at least.
Why not develop games for windows 98?
Also, DirectX9c got PIX as well... so...
Logged


Kickstarter? no no no... it's Kicksucker...
Archibald
Level 3
***


View Profile WWW Email
« Reply #11 on: May 06, 2012, 09:56:33 AM »

Are you serious?
There is really no reason to develop a 3D game to WinXP these days. Not financial reason, at least.
Why not develop games for windows 98?
Also, DirectX9c got PIX as well... so...
Sigh... WinXP is the second most popular OS on this planet.

http://www.w3schools.com/browsers/browsers_os.asp
Logged

URRPG - Unnamed Nostalgia Retro RPG, in development
Europe1300 - medieval sim in alpha stage
rivon
Level 10
*****



View Profile
« Reply #12 on: May 06, 2012, 11:14:57 AM »

If you ever decide to do something in DirectX, at least have a 9c build. There's a lot of GPUs which don't support DX11.
Logged
PompiPompi
Level 10
*****



View Profile WWW
« Reply #13 on: May 06, 2012, 12:22:27 PM »

If you ever decide to do something in DirectX, at least have a 9c build. There's a lot of GPUs which don't support DX11.
Wrong, DX11 support DX9 features GPUs.
Using the DX11 API doesn't mean you have to use the DX11 features.
Logged


Kickstarter? no no no... it's Kicksucker...
rivon
Level 10
*****



View Profile
« Reply #14 on: May 06, 2012, 12:44:11 PM »

So something written using DX11 will work even on GF 8xxx-9xxx (and ATI equivalent)?
Logged
Pages: [1] 2 3
Print
Jump to:  

Theme orange-lt created by panic