Results 1 to 7 of 7

Thread: DirectX8! 3D help me! plz

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Unhappy

    I converted this DirectX7 project to DirectX8 and I am still having problems. Can someone plz help me, I don't know where I am going wrong. There is a form, frmMain and a module, modMain .

    frmMain
    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    Select Case KeyCode
        Case vbKeyUp
            KeyUp = True
        Case vbKeyDown
            KeyDown = True
        Case vbKeyLeft
            KeyLeft = True
        Case vbKeyRight
            KeyRight = True
    End Select
    End Sub
    
    Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
    Select Case KeyCode
        Case vbKeyUp
            KeyUp = False
        Case vbKeyDown
            KeyDown = False
        Case vbKeyLeft
            KeyLeft = False
        Case vbKeyRight
            KeyRight = False
        Case vbKeyEscape
            bRunning = False
    End Select
    End Sub
    There isn't enough room to chuck it all in 1 post, so I'll put in another 1. In less than 5 minz.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  2. #2

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Here is the module.

    Ahh, the module is too big, but in Word, it's only 9000 characters. Anyway. I'll attach it. Could someone really help me, I'm stuck. Thanx.

    It's all in the zip file.
    Attached Files Attached Files
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  3. #3
    Zaei
    Guest
    How much experience have you had in D3D8? I would recommend that you immediately start to work on the VERY first tutorials. Look at http://www.vbexplorer.com/directx4vb. Youve made some mistakes about some things that are INTRINSIC to D3D8. Examples are FVFs, Vertex Buffers, and such like. Take my advice, and start at the beginning. Youll be surprised at how fast you will go, once you understand things.

    Z.

  4. #4

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298
    yeah ok, I will. I went on a downloading spree on Saturday, and got DirectX 8 SDK and all those exaples from that site you gave me and stuff. I know a litte, but if you can make it work, then I would be really really grateful, and I'd read it over a thousand times. plz. Anyway, I'm taking your advice, and going to the tutorials. Thanx
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  5. #5
    Zaei
    Guest
    Code:
    D3DDevice.SetVertexShader D3DFVF_XYZ Or D3DFVF_DIFFUSE Or D3DFVF_SPECULAR Or D3DFVF_TEX1
                D3DDevice.DrawPrimitiveUP D3DPT_TRIANGLESTRIP, 1, TriList(0), Len(TriList(0))
    comment out ever line between your begin and end scene calls, and add that code. That will make it RUN, but nothing will display.

    Z.

  6. #6

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    AWESOME!

    Thank you.

    How do I get it to do what I want it to know??

    Umm, can you tell from the code, what I am trying to make. Thanx so much.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  7. #7

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Help me??

    Some one must know there stuff well enough to help me?? Where can I get examples that can help me??
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

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