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
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.
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
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.