|
-
Oct 27th, 2002, 09:53 AM
#1
Thread Starter
Frenzied Member
How to move camera in direct x 8
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?
-
Oct 27th, 2002, 10:02 AM
#2
Frenzied Member
Re: How to move camera in direct x 8
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?
You have to generate a new view matrix with the updated position.
Z.
-
Oct 27th, 2002, 10:21 AM
#3
Thread Starter
Frenzied Member
ok think you can help me with this? i have no clue on how to do this :s
-
Oct 27th, 2002, 10:26 AM
#4
Frenzied Member
D3DXMatrixLookAtLH().
Read that documentation. Everytime your "camera" moves, change that matrix.
Z.
-
Oct 27th, 2002, 10:28 AM
#5
Thread Starter
Frenzied Member
documentation? you mean from MSDN ? :S
-
Oct 27th, 2002, 10:28 AM
#6
Frenzied Member
No, the SDK documentation.
Z.
-
Oct 27th, 2002, 10:29 AM
#7
Thread Starter
Frenzied Member
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
-
Oct 27th, 2002, 10:33 AM
#8
Frenzied Member
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
Bad Move... The SDK is your best friend.
http://www.microsoft.com/directx/
Z.
-
Oct 27th, 2002, 01:45 PM
#9
Thread Starter
Frenzied Member
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?
-
Oct 27th, 2002, 01:49 PM
#10
Thread Starter
Frenzied Member
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)
-
Oct 27th, 2002, 03:06 PM
#11
Thread Starter
Frenzied Member
aha i got it just needed to update the matview
-
Oct 29th, 2002, 07:05 AM
#12
Fanatic Member
Hi
Hi,
Zaei has answered it.. Any way.... probably this would help a little more..
http://www.vbforums.com/showthread.p...hreadid=209123
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|