J
J
|
|
11/30/2001 12:33:37 PM
|
Not rated
|
Is there going to be a version of Direct X for the .NET framework?
|
|
Andrew
Ma
|
|
11/30/2001 1:40:38 PM
|
Not rated
|
Look at Eli Allen's post in this thread: http://www.devhood.com/messages/message_view-2.aspx?thread_id=600
"You can use C# to write a full DX application. I know the guy at MS who wrote the demo since he came from our school :) (just never cared to program DX)
only page I saw so far is:
You will probably need to wait till the next version of DX before its really usable in a .net language but then if a wrapper has too much overhead then the CLR does too so..."
|
|
J
J
|
|
11/30/2001 2:07:21 PM
|
Not rated
|
so you basically still have to write a c++ com wrapper? and can't really write the whole thing in c# yet?
|
|
Andrew
Ma
|
|
11/30/2001 2:12:37 PM
|
Not rated
|
As far as I know... that's right.... you can't write straight C# code for DirectX ....... yet.....
|
|
J
J
|
|
11/30/2001 2:37:32 PM
|
Avg. Rating: 1 by 1 Users
|
I checked out that second link you posted...pretty cool site thanks a lot
|
|
Ted
G
|
|
11/30/2001 11:40:40 PM
|
Not rated
|
you actually don't need to write a C++ wrapper for any of the directX stuff. You can just import a reference to the Visual Basic DirectX 8 Type Libraries and use it exactly as you would have in VB 6. You still have an interop wrapper, but it's nothing you have to spend your time writing.
|
|
J
J
|
|
12/1/2001 12:06:23 AM
|
Not rated
|
so to write a game in C# using direct x, you can use a reference to the vb direct x 8 type libraries?
|
|
Ryan
Fosnaugh
|
|
12/7/2001 9:03:42 PM
|
Not rated
|
Sort of. You need to convert the dx8vb.dll to a RCW or a Runtime Callable Wrapper. Basically the dx8vb.dll uses the old COM standard for exposing interfaces and it needs a wrapper so that .Net programs can access it. There is a program that comes with .Net that generates this wrapper component. tlbimp.exe (which stands for type library importer)
Ex. tlbimp dx8vb.dll
This will create a file - DxVBLibA.dll which is the file you should reference in your C# direct-x project.
It is still complicated to use, but will do the job.
|
|
Ryan
Fosnaugh
|
|
12/9/2001 1:42:09 AM
|
Not rated
|
Just a follow up to my last post. I did some checking and found that visual studio will take care of making the RCW for the dx8vb.dll file. If you add the dll to your project references (as Ted suggested above) visual studio will make a RCW dll with the exact same name in your project directory. This can be confusing because it may be hard to determine which dll to distribute, but it will work none the less.
|
|
Chris
Roberts
|
|
12/14/2001 12:29:18 AM
|
Avg. Rating: 1 by 1 Users
|
Interesting, thanks for the info!
|
|
Denis
Pitcher
|
|
2/17/2002 4:08:03 PM
|
Not rated
|
Those solutions are great for applications only requiring the support of the VB directx... but what about supporting things like directshow?
I've had a hard time finding any good documentation on how to implement or convert directshow into C#... could anyone provide me with information or resources for accomplishing this?
|
|
Brandon
Bloom
|
|
4/18/2002 10:33:50 PM
|
Not rated
|
Actually I am on the DirectX9 beta team. Although nothing has been released to us yet, we have been told that DirectX 9 will have full support for the .NET platform. So as far as I know, yes you will be able to code DirectX applications in C# and even be able to use it in web development.
|
|
asad
ladha
|
|
5/8/2002 12:45:10 PM
|
Not rated
|
now that's cool. :) directx games in a web page would help create cool sites/online games.
|
|
Don
Miller
|
|
9/12/2002 6:50:10 PM
|
Not rated
|
That's true, but some of the interfaces don't seem to work right (or I just haven't figured it out yet!). I'm using DirectSound8 to play .wav files from a buffer. Works great in VB6 (as one would expect) but I'm having trouble using the DxVBLibA.CreateSoundBuffer function--there seems to be a difference between the types. The message "Value of type 'DxVBLibA.DirectSoundSecondaryBuffer8' cannot be converted to '1-dimensional array of DxVBLibA.DirectSoundSecondaryBuffer8'". The .Net code was actually imported from a working VB6 project, so I'm pretty sure there's an Interop wrapper problem... Any Comments?
|
|
Danial
Sherif
|
|
12/11/2002 5:04:26 AM
|
Not rated
|
u can use the old directX liberaris with .Net i made a small sample with Direct3D with C# i'am a bigennner cantact me and we will learn to-gether i can send u the sample if cantacted plz confirm
|
|
Soceror
.
|
|
12/11/2002 3:58:41 PM
|
Not rated
|
Sorry that i've been out of market too long. but is openGL going to be supported on .net?
john carmac is still working hard... we'll see how that turns out
|
|
Paul
Bastide
|
|
12/12/2002 8:13:42 AM
|
Not rated
|
People have already done an opensource version of it for .NET
http://csgl.sourceforge.net/
|
|
Paul
Messier
|
|
10/9/2004 7:53:42 PM
|
Not rated
|
Would you mind sending me something to get started with. Like a rotating cube. I would eventually like to write a web page, that has 3d models which can be dragged around the page( like a 3d animated icon on a desktop). If this is even possible.
Thanks.
|
|