direct3d / openGL??

  • Thread starter Thread starter Bad_Kid
  • Start date Start date
Bad_Kid said:
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.
 
thanks!

Trevor said:
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.
 
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.
 
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
 
cody said:
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?
 
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.


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 said:
I don't recall saying it wasn't written in plain C. It was probably written
with C++ & ATL.


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.
 
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.
 
Trevor said:
cody said:
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.
 
cody said:
"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.)
 
Back
Top