-
Direct X 8.1 and VB.NET
Hi,
For a long time im working on creating a 3D game, readed lot of tutorials and stuff.
Previous test on VB6 worked fine.
Now i want to use the code on VB.NET,
After a few day converting the code i had, i finaly have a black screen :)
I only cant get objects on the screen, engine doesnt render it.
Also codes like
D3DVertexBuffer8SetData VertexBuffers(a), 0, VertexSizeInBytes * 4, 0, MapBuffer(a).Vertices(0)
fails,
D3DVertexBuffer8SetData is an unknown command, the directX class is imported into my engine class.
-
The thing that I have been hearing about DX and .NET is wait for DX9. I dont know if this goes for just C#, or for all of .NET, but that's what Ive heard.
I dont know how VB.NET would like Direct3DVertexBuffer8.Lock and .Unlock, but if D3DVertexBuffer8SetData isnt avalible, you will have to use those.
Z.
-
DX doesn't work in .NET, period - something about how .NET works keeps it from working. Once DX9 comes out you'll be able to write DX managed code without having to interface to COM, or anything. Just be patient. :) GDI+ is pretty nice, anyway - you could probably make decent 2D games with it.
-
Thanks for the info,
sound like i gone play with directx in vb6 again.
Tryed out some new things in VB6 after placing this topic,
and the result is the beginning of a nice 3d engine :)
Read topic Large maps in Game forum :)
its renders the loaded buffer with
DrawPrimitiveUp
That one worked on DX8.1 in VB.NET :)
Framerate was lot higher dan vb6,
minimizing the screen gives a framerate of +2000 on a win2k pc with its memory full,
fullscreens, it got framerate of 280
:) Greets Nightmare :)