Putting a 3D control in a windows form?

JonTheBaller

Golden Member
Dec 2, 2002
1,916
0
0
I am writing an application in Visual C# .NET (Visual Studio .NET 2002). I want to be able to put a control in my window in which I will be doing the 3D graphics. Can I do this with either OpenGL or DirectX?
 

Kntx

Platinum Member
Dec 11, 2000
2,270
0
71
i dunno if there are gl libraries for c#, but DX for sure.

anyways, the cross platform benifits of gl are lost on c# anyways as i dont belive there implementations for platforms besides windows at present. but i might be wrong about that.
 

Palek

Senior member
Jun 20, 2001
937
0
0
I would recommend DirectX. The reason is that most modern videocards (non-workstation class) do not really support OpenGL in hardware, but instead pop another abstraction layer between OpenGL and your hardware that translates OpenGL instructions to DirectX. Too much overhead. Go with DirectX instead.

PS: This is something a programming guru friend of mine told me, so please don't beat me up if it's wrong... *whimper*
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
Originally posted by: Palek
I would recommend DirectX. The reason is that most modern videocards (non-workstation class) do not really support OpenGL in hardware, but instead pop another abstraction layer between OpenGL and your hardware that translates OpenGL instructions to DirectX. Too much overhead. Go with DirectX instead.

PS: This is something a programming guru friend of mine told me, so please don't beat me up if it's wrong... *whimper*

I could be wrong, but I dont think this is true, and if it is I really doubt it adds that much overhead, especially when we are talking modern GUI's and videocars I dont think using OpenGL is going to be a problem, but since you are already using C# a Win32 tied language if you feel more comforatble with DirectX than use that since crossplatform is obviously of no concern