Results 1 to 3 of 3

Thread: Camera Help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    86

    Camera Help

    I want to get a camera going to move around the screen in a level. I've been looking through tutorials on NeHe for something like this, but I couldnt find anything. I know how to use the keys to move it forward and stuff like that, I just want to figure out how to use the mouse to rotate the camera. I know that the xposition will do the Y rotating for the camera, and the y position will control the X rotation. Im using OpenGL.

    Also, most of the tutorials on NeHe just move and rotate the all of the objects. This may sound noobish, but thats not the best way to do it right? Like, rotating a camera is better? Can someone please explain this briefly?

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

    Re: Camera Help

    I haven't worked with OpenGL in forever, but this is how I do it using DX to make the camera move around the world like a First Person Shooter (which includes moving the camera with the mouse):
    Attached Files Attached Files

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Camera Help

    Remember that OpenGL is using a right handed coordinatsystem, and DirectX is using a left handed though...

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