Results 1 to 12 of 12

Thread: How to move camera in direct x 8

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    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?
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710

    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.

  3. #3

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    ok think you can help me with this? i have no clue on how to do this :s
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  4. #4
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    D3DXMatrixLookAtLH().

    Read that documentation. Everytime your "camera" moves, change that matrix.

    Z.

  5. #5

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    documentation? you mean from MSDN ? :S
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  6. #6
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    No, the SDK documentation.

    Z.

  7. #7

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    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
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  8. #8
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    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.

  9. #9

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    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?
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  10. #10

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    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)
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  11. #11

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    aha i got it just needed to update the matview
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  12. #12
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    Hi,

    Zaei has answered it.. Any way.... probably this would help a little more..

    http://www.vbforums.com/showthread.p...hreadid=209123
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

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