473,382 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

direct3d / openGL??

which is better for what?
Nov 16 '05 #1
10 5180
"Bad_Kid" <RE*******************@yahoo.co.uk> wrote in message
news:c6**********@bagan.srce.hr...
which is better for what?


Direct 3D is an object orientated 3d graphics library. OpenGL is a
structured ("C style") API. They both have their own pros and cons. Most
people will choose OpenGL because it is available on non-Microsoft
platforms. The other people will choose Direct X (Not just Direct3D)
because they are only interested in Windows and DirectX is a "gaming SDK"
(sound, video, input, etc...) where OpenGL is just a "graphics SDK".
DirectX is built upon COM and OpenGL is built upon plain old C code. Since
you are a C# developer you can get up and going with DirectX much quicker
than OpenGL. Microsoft has recently released a managed DirectX 9 which can
be used in C# without all of the COM interop stuff. AFAIK the only support
for OpenGL in C# is all third party and involves extensive use of P/Invoke
to call the OpenGL.dll API calls. I gave you all of the info I have on the
two technologies. Which one is better (for your needs) is up to you to
decide. You can search Google for more arguments like this - I'm sure you
aren't the first who tried to compare the two technologies.
Nov 16 '05 #2
thanks!

"Trevor" <tr****@nospam.com> wrote in message
news:uG**************@TK2MSFTNGP11.phx.gbl...
"Bad_Kid" <RE*******************@yahoo.co.uk> wrote in message
news:c6**********@bagan.srce.hr...
which is better for what?
Direct 3D is an object orientated 3d graphics library. OpenGL is a
structured ("C style") API. They both have their own pros and cons. Most
people will choose OpenGL because it is available on non-Microsoft
platforms. The other people will choose Direct X (Not just Direct3D)
because they are only interested in Windows and DirectX is a "gaming SDK"
(sound, video, input, etc...) where OpenGL is just a "graphics SDK".
DirectX is built upon COM and OpenGL is built upon plain old C code.

Since you are a C# developer you can get up and going with DirectX much quicker
than OpenGL. Microsoft has recently released a managed DirectX 9 which can be used in C# without all of the COM interop stuff. AFAIK the only support for OpenGL in C# is all third party and involves extensive use of P/Invoke
to call the OpenGL.dll API calls. I gave you all of the info I have on the two technologies. Which one is better (for your needs) is up to you to
decide. You can search Google for more arguments like this - I'm sure you
aren't the first who tried to compare the two technologies.

Nov 16 '05 #3
> Direct 3D is an object orientated 3d graphics library. OpenGL is a
structured ("C style") API. They both have their own pros and cons. Most
people will choose OpenGL because it is available on non-Microsoft
platforms. The other people will choose Direct X (Not just Direct3D)
because they are only interested in Windows and DirectX is a "gaming SDK"
(sound, video, input, etc...) where OpenGL is just a "graphics SDK".
DirectX is built upon COM and OpenGL is built upon plain old C code. Since you are a C# developer you can get up and going with DirectX much quicker
than OpenGL. Microsoft has recently released a managed DirectX 9 which can be used in C# without all of the COM interop stuff. AFAIK the only support for OpenGL in C# is all third party and involves extensive use of P/Invoke
to call the OpenGL.dll API calls. I gave you all of the info I have on the two technologies. Which one is better (for your needs) is up to you to
decide. You can search Google for more arguments like this - I'm sure you
aren't the first who tried to compare the two technologies.

Since when is DirectX not written in plain old C?
And do not forget that there is also a managed OpenGL for .NET.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Nov 16 '05 #4
Hi cody,

Since when is DirectX not written in plain old C?
And do not forget that there is also a managed OpenGL for .NET.


Can you give any links for that stuff?

Cheers!

Marcin
Nov 16 '05 #5
"cody" <no****************@gmx.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Since when is DirectX not written in plain old C?
I don't recall saying it wasn't written in plain C. It was probably written
with C++ & ATL.
And do not forget that there is also a managed OpenGL for .NET.


I did not know this, thanks for the info. Is this a managed implementation
of OpenGL or simply a managed wrapper?
Nov 16 '05 #6
> > Since when is DirectX not written in plain old C?

I don't recall saying it wasn't written in plain C. It was probably written with C++ & ATL.
And do not forget that there is also a managed OpenGL for .NET.
I did not know this, thanks for the info. Is this a managed

implementation of OpenGL or simply a managed wrapper?

A managed implementation? You are joking. A managed implementation of
DirectX/OpenGL would be painfully slow.
What you can use in .NET are managed wrappers that are available for DirectX
and OpenGL.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 16 '05 #7

"cody" <pl*************************@gmx.de> wrote in message
news:uf*************@tk2msftngp13.phx.gbl...
Since when is DirectX not written in plain old C?
I don't recall saying it wasn't written in plain C. It was probably

written
with C++ & ATL.
And do not forget that there is also a managed OpenGL for .NET.


I did not know this, thanks for the info. Is this a managed

implementation
of OpenGL or simply a managed wrapper?

A managed implementation? You are joking. A managed implementation of
DirectX/OpenGL would be painfully slow.
What you can use in .NET are managed wrappers that are available for

DirectX and OpenGL.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk


cody,

Do me a favor. Read over my original post. Read it again. OK, now you
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.
Nov 16 '05 #8
> Do me a favor. Read over my original post. Read it again. OK, now
you
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.


"DirectX is built upon COM and OpenGL is built upon plain old C code"

This really implies that DirectX isn't written in C.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Nov 16 '05 #9
bob
"Trevor" <tr****@nospam.com> wrote in message news:<eX**************@TK2MSFTNGP09.phx.gbl>...
"cody" <pl*************************@gmx.de> wrote in message
news:uf*************@tk2msftngp13.phx.gbl...
> Since when is DirectX not written in plain old C?

I don't recall saying it wasn't written in plain C. It was probably written with C++ & ATL.

> And do not forget that there is also a managed OpenGL for .NET.

I did not know this, thanks for the info. Is this a managed implementation of OpenGL or simply a managed wrapper?

A managed implementation? You are joking. A managed implementation of
DirectX/OpenGL would be painfully slow.
What you can use in .NET are managed wrappers that are available for

DirectX
and OpenGL.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk


cody,

Do me a favor. Read over my original post. Read it again. OK, now you
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.

There's a free C# wrapper of OpenGl at
http://www.randyridge.com/Tao/Default.aspx

it's very good. I would recommend Open GL over direct X as i beleave
the api quality and clarity to be far superior. In fact I think
direct X is a bit of a bodge. I don't know if OpengAl (audio) library
has a wrapper.
Nov 16 '05 #10
"cody" <no****************@gmx.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Do me a favor. Read over my original post. Read it again. OK, now

you
will see that I mentioned the C# OpenGL wrapper and I never said DirectX
wasn't written in C. Thanks. I'm done with this thread.


"DirectX is built upon COM and OpenGL is built upon plain old C code"

This really implies that DirectX isn't written in C.


Really?

How?

--
Regards

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
(CTO PowerNodes Ltd.)
---

Still waiting for ObjectSpaces? Try the EntityBroker today - more versatile,
more powerfull.
And something in use NOW. for the projects you have to deliver - NOW.
Nov 16 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
15
by: oracle411 | last post by:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP that I would like to display on a web browser. Was wondering how this could be done? Thank you very much
3
by: john townsley | last post by:
Hi I want to do some OpenGl stuff with c++ on a winXP (home) machine. I have Borland c++ 5, MVS c++ 5 What C++ do you recommend (any others?)and where do you get the OpenGL stuff. thanks
5
by: Ark | last post by:
Hi everyone, Does anyone know if Direct3D overloads System.Math functions? Also is it possible to access the base functions of the overloaded function (in other words restore original of the...
1
by: Jon Rea | last post by:
I have an MDI application that has multiple different "modular documents". Each document can own multiple MDI windows that are managaed by a manager class that uses the singleton pattern and holds...
4
by: tobfon | last post by:
I'm creating a scientific visualization application with rather high demands on performance. I've created a nice rendering engine for it in C++/OpenGL and a python interface to the rendering...
3
by: jg.campbell.ng | last post by:
I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from...
9
by: Achim Domma | last post by:
Hi, I'm developing a GUI app in Python/C++ to visualize numerical results. Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there are no windows binaries for Python 2.5 for quite...
0
by: Jameson | last post by:
ok... This isn't working, and I dont know why, when I pass the resulting surface to StretchRectangle I get the awsome "error in application" haha... anyway. Is this not the right way (using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.