Results 1 to 4 of 4

Thread: Direct X 8.1 and VB.NET

  1. #1

    Thread Starter
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175

    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.

  2. #2
    Zaei
    Guest
    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.

  3. #3
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    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.
    "1 4m 4 1337 #4xz0r!'
    Janus

  4. #4

    Thread Starter
    Addicted Member Nigh™a®e's Avatar
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    175
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width