Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the difference between DirectX and OpenGL?

Status
Not open for further replies.

mmelek1

Member level 4
Joined
Apr 20, 2002
Messages
71
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
236
opengl vs directx

hi
what is the difference between directx and opengl
thanks
 

edavio

Member level 3
Joined
Dec 23, 2001
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
475
Re: opengl vs directx

They are all graphic APIs. OpenGL comes from SGi as well as DirectX from microsoft. These two APIs have same functionality but use different function set.
 

Pinczakko

Full Member level 2
Joined
Jul 29, 2004
Messages
138
Helped
13
Reputation
26
Reaction score
0
Trophy points
1,296
Location
Taka Bonerate National Park, Indonesia
Activity points
1,599
Re: opengl vs directx

DirectX is only natively known to Windows OS (and probably XBox's OS ), while OpenGL is an industry standard that is widely used in Unix-like environment and also Windows. DirectX is "all in one" API, that handle a lot of stuff, not only graphics like OpenGL, but also Sound (DirectSound), Force feedback Input (DirectInput), etc. The couterpart of OpenGL in DirectX is Direct3D.
 

mami_hacky

Full Member level 6
Joined
Mar 28, 2002
Messages
337
Helped
18
Reputation
36
Reaction score
11
Trophy points
1,298
Location
Some where
Activity points
3,428
opengl vs directx

Yes, Direct3D should be compared with OpenGL and the rest of directx is for doing some other tasks. As you know the main aim of directX is to help game developers doing they work faster.
Direct3D has the same capabilities as OpenGL. Once I tried to develope a simple OpenGL program. As you know there are lot's of examples and development resources however it took me some thing near one week to write a simple program. generally I think that DirectX has more examples, books and resources than OpenGL.
One anothere very important point is hardware support. As you know, the graphic card itself should support each version of OpenGL and directX.
I think that OpenGL will go to die some day and directx will remain.
 

mmelek1

Member level 4
Joined
Apr 20, 2002
Messages
71
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Activity points
236
Re: opengl vs directx

thank u very much for your replies
could u please tell me:
1- Which is more powerful
2- Which is simpler to use
thanks in advance
 

mami_hacky

Full Member level 6
Joined
Mar 28, 2002
Messages
337
Helped
18
Reputation
36
Reaction score
11
Trophy points
1,298
Location
Some where
Activity points
3,428
Re: opengl vs directx

I believe that:
1- If you want to use it for making an industrial application then OpenGL can be better since it is a kind of standard for developing these kind of applications.
2- I think that DirectX is better and easier to learn than openGL and I think that it is more powerful for normal applications such as games. Microsoft is highly working on DirectX. If you install the directX SDK ( downloadable for free from microsoft ) you will see lot's of examples. generally these examples are enough for making simple applications, you just change some part of the example.
For me, it took me some thing near two weeks for get familiar with DirectPlay classes.
Any how, I should mention one really important point: You should be, a good VB or VC++ programmer, otherwise, nothing will be obtained from directx.
 

Alb3rto

Newbie level 3
Joined
Sep 14, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
16
Re: opengl vs directx

Another option is Java 3D.. if you use POO, looking in
h..p://java.sun.com/products/java-media/3D/
 

heo83

Junior Member level 3
Joined
Jul 7, 2004
Messages
25
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
226
opengl vs directx

Then I only found some documents about OpenGL. Some ebooks like Programming with OpenGL,... but I can't find any book like that with DirectX. Would you please show me?
thanks and best regards.
 

griffkalgo

Newbie level 3
Joined
Sep 17, 2004
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
36
opengl vs directx

Hi,

There are anywhere from 10-30 books on DirectX programing at any good book store...Probably have a rough time getting more than a book or two on OpenGL for the reason that MS dominates writers and book pubs alike!
 

Memphis

Member level 3
Joined
Apr 13, 2002
Messages
58
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
479
opengl vs directx

I think another reason for that DirectX is more popluar then openGL is that the game vendor always support DirectX in Windows environment, but seldom or never support openGL in Linux. If game vendor can support porting into linux, there would be a excellent chance to promote openGL..:wink:
 

sshahid47

Advanced Member level 4
Joined
Nov 5, 2004
Messages
101
Helped
15
Reputation
30
Reaction score
2
Trophy points
1,298
Activity points
974
opengl vs directx

hi,
Opengl more powerful in graphics and easier to learn,
directx good in sound related issues.
 

uz111

Junior Member level 1
Joined
Oct 25, 2004
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
116
Re: opengl vs directx

Direct3D is more powerfull on 3d graphics than opengl. All graphiccards in sub $ 1000 class are optimized for Direct3D.
 

basquang

Newbie level 4
Joined
Nov 20, 2004
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
75
opengl vs directx

Yes! DirectX 9.0 powerfull. I want to programming DirectX 9.0 (with c#). But ebooks for DirectX 9.0 ????. hmmm.
Opengl is only programming with Visual C++?
 

sshahid47

Advanced Member level 4
Joined
Nov 5, 2004
Messages
101
Helped
15
Reputation
30
Reaction score
2
Trophy points
1,298
Activity points
974
opengl vs directx

hi,
Opengl is not supported via C#, so u have to use VC++, also i personally think VC++ is better for any graphics programming for speed considerations.
Opengl is easier to learn if u r a beginner, once u master the basic principles using opengl then shifting to Direct3d etc... is easier
 

niuniu

Member level 5
Joined
Jul 23, 2002
Messages
87
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Activity points
691
opengl vs directx

OpenGL is cross platform, so you game can migragte to unix. and 2.0 version also support high level shader language. so it has the same power with directX

but MS is too powerful, and almost all game uses dx, OpenGL is popular for study and work(professional software)
 

asic1984

Full Member level 5
Joined
Nov 15, 2003
Messages
257
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,298
Activity points
2,340
Re: opengl vs directx

hi
basquang said
Yes! DirectX 9.0 powerfull. I want to programming DirectX 9.0 (with c#). But ebooks for DirectX 9.0 ????. hmmm.
Opengl is only programming with Visual C++?

direct x 9.0c sdk contains a good documentation and tutorials for coding in c# u can download last version.............u will find it in the topic of maganged directx

about opengl.......no it is not only programmed by vc++ there are some libraries that enables u to use c# to program with opengl.........just search google

opengl is easier than directx as what i think ........but as i prefer to use c# ....directx is supported from microsoft....

directx contains more powerfull libraries than in opengl.......but it is more difficult
 

hanami279

Newbie level 3
Joined
Nov 25, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
36
Re: opengl vs directx

I think DirectX is more power than OpenGl. With DirectX you can do many thing with your computer and besides it fully support by Windows OS and Microsoft. Programming with DirectX API is difficult because you must write code with VC, but with the DirectX version for Managed code (C#, VB.Net) the work nowaday more easy.

DirectX is used in most game today, and OpenGl used in CAD and model tool for Architect.
 

hanami279

Newbie level 3
Joined
Nov 25, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
36
Re: opengl vs directx

If you find diffcullty in programming OpenGL with VC, you can use the lib for .NET language. This version can be download from https://sourceforge.net/projects/csgl/
This is the OpenSource Version. With this version, you can write program easeier than before, and it companion with many ex, so you can learn many from this.
 

hamadeh

Member level 5
Joined
Dec 10, 2004
Messages
88
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Location
Lebanon
Activity points
564
opengl vs directx

For portable application -> OpenGL
 

hypersoldier

Newbie level 1
Joined
Jan 1, 2005
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
20
Re: opengl vs directx

DirectX is a closed API of Microsoft so you can code only for Windows.
OpenGL as I know is easier to learn than DirectX and with the 2.0 revision it is as powerfull as Dx so it is compatible with the shading language.
If you look for a not only Graphics API then you can try SDL that uses OpenGL for graphics and makes easy to code sound, input, cdrom access, etc.
OpenGL is also more professional as the biggest companies make use of it.
OpenGL is totally portable to Unix environments like Linux but also Mac, which it means you can make an application and then release a version for other O.S.
There are lots of easy tutorials all over the net. One good place to learn is nehe.gamedev.net .
OpenGL comes with the most common compilers. Borland, VC, MinGW, gcc.
I really don't see any reasons to code in DirectX rather than OpenGL.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top