Results 1 to 6 of 6

Thread: [VB6 DX] Camera Using Mouse

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    North Carolina
    Posts
    734

    [VB6 DX] Camera Using Mouse

    Basically I am trying to get a camera that will allow the user to look around with the mouse, basic FPS type camera. I have an example by Jacob, but if I remember correctly it used event method rather than polling which is what I would like to use. If there are any ideas that would be great.


    "X-mas is 24.Desember you English morons.." - NoteMe

  2. #2
    a camera in what? in a map? 3d? 2d? webcam? i dunno what you mean

  3. #3
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339
    He said DX so obviously D3D.

    I am looking for the math on a FPS camera as well.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349
    My method in that program I hooked you up with was correct. The mouse's X coordinates controlled the Camera's Y Angle (looking left/right) if I remember correctly. And the mouse's Y Coordinates Controlled the Camera's X Angle (looking up/down). Look in the code to see what I mean. And the camera angles were calculated in the camera matrix (also known as the viewing matrix) in the Game_Engine module that's in the program.

    The mouse's DirectInput events are located in frmMain incase you didn't know.
    Last edited by Jacob Roman; Dec 1st, 2004 at 08:58 PM.

  5. #5
    Addicted Member Latin4567's Avatar
    Join Date
    Jan 2005
    Posts
    202

    Re: [VB6 DX] Camera Using Mouse

    could you please post a link to said project? I need to do the same thing

  6. #6
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: [VB6 DX] Camera Using Mouse

    Go into my site and download either R-Type3D or MKvsSF and those will show you how to do a FPS style camera, even with the mouse:

    www.angelfire.com/fl5/memorydll/index.html

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