I'm just starting a game (for practising with dx8) , but i dont know how to move the camera.. anybody can tell me how to do such a thing?
Printable View
I'm just starting a game (for practising with dx8) , but i dont know how to move the camera.. anybody can tell me how to do such a thing?
You have to generate a new view matrix with the updated position.Quote:
Originally posted by Ultimasnake
I'm just starting a game (for practising with dx8) , but i dont know how to move the camera.. anybody can tell me how to do such a thing?
Z.
ok think you can help me with this? i have no clue on how to do this :s
D3DXMatrixLookAtLH().
Read that documentation. Everytime your "camera" moves, change that matrix.
Z.
documentation? you mean from MSDN ? :S
No, the SDK documentation.
Z.
err that i dont have... where can i find it? :S.... i didn't install the sdk.. but i am on windows xp pro , and i can use the object etc etc :s
Bad Move... The SDK is your best friend.Quote:
Originally posted by Ultimasnake
err that i dont have... where can i find it? :S.... i didn't install the sdk.. but i am on windows xp pro , and i can use the object etc etc :s
http://www.microsoft.com/directx/
Z.
ok downloaded it , will look at it in a moment , 1 small question that you might know , can i play music with directx 8 (like mp3 and wma files) and read them from like a network etc etc? like the things winamp can do?:rolleyes:
ok i have this for the camera thingy...
D3DXMatrixLookAtLH matView, MakeVector(0, 10, 10), MakeVector(0, 0, 0), MakeVector(0, 1, 0)
but how to (in example) zoom the camera in and out? :S
still new at dx8 (very new, did some stuff with dx7 d3d but this is way diffrent)
aha i got it :D just needed to update the matview :)
Hi,
Zaei has answered it.. Any way.... probably this would help a little more..
http://www.vbforums.com/showthread.p...hreadid=209123