PDA

Click to See Complete Forum and Search --> : DirectX8! 3D help me! plz


Wak
Apr 18th, 2001, 07:18 PM
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

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.

Wak
Apr 18th, 2001, 07:23 PM
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.

Zaei
Apr 18th, 2001, 07:45 PM
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.

Wak
Apr 18th, 2001, 07:51 PM
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

Zaei
Apr 18th, 2001, 08:04 PM
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.

Wak
Apr 18th, 2001, 08:22 PM
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.

Wak
Apr 19th, 2001, 05:39 AM
Some one must know there stuff well enough to help me?? Where can I get examples that can help me??