Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DirectX vs. OpenGL?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Apr 28, 2008 9:13 am    Post subject: DirectX vs. OpenGL? Reply with quote

Hi, I wanna start learning about graphics and making games and such and I wonder what should I learn, DirectX or OpenGL?

What are the diffrances?

There are a lot of OpenGL tutorials at nehe.gamedev.net, so I already have somewhere to learn OpenGL, but should I really learn OpenGL? or should I DirectX?

Edit: also, should I learn DirectX/OpenGL in C# or C++?
Back to top
View user's profile Send private message
colo
Expert Cheater
Reputation: 1

Joined: 09 Apr 2005
Posts: 111

PostPosted: Mon Apr 28, 2008 9:41 am    Post subject: Reply with quote

1) C/C++
2) OPENGL!!!

_________________
Sorry my English very bad Sad
www.gamerztools.net
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Apr 28, 2008 9:48 am    Post subject: Reply with quote

Why? how is OpenGL better than DirectX?
Back to top
View user's profile Send private message
colo
Expert Cheater
Reputation: 1

Joined: 09 Apr 2005
Posts: 111

PostPosted: Mon Apr 28, 2008 9:51 am    Post subject: Reply with quote

OpenGL is http://www.gnu.org Razz
_________________
Sorry my English very bad Sad
www.gamerztools.net
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Mon Apr 28, 2008 10:33 am    Post subject: Reply with quote

directx if you're going to develop high performance/commercial applications
_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
colo
Expert Cheater
Reputation: 1

Joined: 09 Apr 2005
Posts: 111

PostPosted: Mon Apr 28, 2008 10:35 am    Post subject: Reply with quote

yes but, but now idea is free source Razz

nah nah mocosoft!

_________________
Sorry my English very bad Sad
www.gamerztools.net
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Apr 28, 2008 11:09 am    Post subject: Reply with quote

Robotex wrote:
directx if you're going to develop high performance/commercial applications

What about games?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Apr 28, 2008 11:15 am    Post subject: Re: DirectX vs. OpenGL? Reply with quote

Symbol wrote:
Hi, I wanna start learning about graphics and making games and such and I wonder what should I learn, DirectX or OpenGL?

What are the diffrances?

There are a lot of OpenGL tutorials at nehe.gamedev.net, so I already have somewhere to learn OpenGL, but should I really learn OpenGL? or should I DirectX?

Edit: also, should I learn DirectX/OpenGL in C# or C++?


For the language, I would personally suggest C++, however, C# is very powerful in the game field as well with DirectX.

As for the engine, depends on what you plan to do. Firstly, the difference between the two, well at least the main one, is that DirectX includes interface classes for everything you could need. Such as:
- Input devices (DirectInput) (Controllers, Keyboard, Mouse, etc.)
- Sound Output (DirectMusic/DirectSound)
- Drawing (Direct3D/DirectDraw)
- Networking (DirectPlay)

DirectX offers all this in one go to make it easier developing games that require little to no outside resources.

OpenGL on the other hand you would usually locate a 3rd party lib to do the overall window creation and drawing, such as GLUT. GLUT includes input device handling, window creation, and drawing but nothing else. Meaning you will also have to use more outside resources for sound, networking, etc.

However, the advantage of OpenGL is that it is developed for Cross-Platform development, while DirectX is only natively supported on Windows. (You can run DirectX on Linux systems and such but they require a virtual machine like application such as Wine and so on.)

When you pick, keep the above in mind.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Apr 28, 2008 11:23 am    Post subject: Reply with quote

Write a software renderer, hurrr

DirectX is taking over for sure, but you're not going to get cross platform support unless you have an OpenGL path.

OpenGL is arguably cleaner and nicer to look at than DirectX, but I hear DX10 cleaned a hell of a lot up.

The entire Quake 3 engine is open source now, go take a look at that for your OpenGL fix. It's in C.

Games are moving into deferred renders as well, so be sure to look into that as well.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Apr 28, 2008 12:58 pm    Post subject: Re: DirectX vs. OpenGL? Reply with quote

Wiccaan wrote:
Symbol wrote:
Hi, I wanna start learning about graphics and making games and such and I wonder what should I learn, DirectX or OpenGL?

What are the diffrances?

There are a lot of OpenGL tutorials at nehe.gamedev.net, so I already have somewhere to learn OpenGL, but should I really learn OpenGL? or should I DirectX?

Edit: also, should I learn DirectX/OpenGL in C# or C++?


For the language, I would personally suggest C++, however, C# is very powerful in the game field as well with DirectX.

As for the engine, depends on what you plan to do. Firstly, the difference between the two, well at least the main one, is that DirectX includes interface classes for everything you could need. Such as:
- Input devices (DirectInput) (Controllers, Keyboard, Mouse, etc.)
- Sound Output (DirectMusic/DirectSound)
- Drawing (Direct3D/DirectDraw)
- Networking (DirectPlay)

DirectX offers all this in one go to make it easier developing games that require little to no outside resources.

OpenGL on the other hand you would usually locate a 3rd party lib to do the overall window creation and drawing, such as GLUT. GLUT includes input device handling, window creation, and drawing but nothing else. Meaning you will also have to use more outside resources for sound, networking, etc.

However, the advantage of OpenGL is that it is developed for Cross-Platform development, while DirectX is only natively supported on Windows. (You can run DirectX on Linux systems and such but they require a virtual machine like application such as Wine and so on.)

When you pick, keep the above in mind.

I'm more interested in coding games, so you're saying I should choose DirectX, because it includes everything in it?

slovach wrote:
Write a software renderer, hurrr

DirectX is taking over for sure, but you're not going to get cross platform support unless you have an OpenGL path.

OpenGL is arguably cleaner and nicer to look at than DirectX, but I hear DX10 cleaned a hell of a lot up.

The entire Quake 3 engine is open source now, go take a look at that for your OpenGL fix. It's in C.

Games are moving into deferred renders as well, so be sure to look into that as well.

So you're saying OpenGL code is cleaner than DirectX? both looks complicated to me. Surprised
I only used OpenGL in C++ and DirectX in C#, but I'm pretty sure it looks the same in both languages.

So if I wanna code a game, a simple one, character, monster, platforms, events on collisions, attacking skills, should I do it in DirectX then?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Apr 28, 2008 1:31 pm    Post subject: Reply with quote

I would personally suggest going with DirectX cause I personally find it easier then OpenGL. However, I do agree with others opinions that OpenGL code is a bit cleaner looking as well as more optimized and such.

If you don't plan to create something to be used on anything but Windows, I would suggest sticking with DirectX to start with. Once you learn one it will be easier for you to move into the other at a later point in time. (To a point.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Mon Apr 28, 2008 7:05 pm    Post subject: Reply with quote

Quote:
So if I wanna code a game, a simple one, character, monster, platforms, events on collisions, attacking skills, should I do it in DirectX then?

I don't think much of this would matter whether you used DX or OpenGL, since this is, for the most part, your game engine. I wrote a game using SDL, but if I wanted it to use anything else, all I'd really have to change is the initialization and the rendering and message loops.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites