Results 1 to 2 of 2

Thread: Move Camera

  1. #1

    Move Camera

    Hi buddies,

    On hand, I got some problem:
    A camera is defined as gluLookAt(0.0,0.0,-z,0.0,0.0,0.0,0.0,1.0,0.0) and there is a view point which is located as (3.0,3.0,3.0). How to move the camera position to that view point after I pressed the ESC button ?


  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    San Diego, CA, USA

    Re: Move Camera

    hmm.... maybe set a boolean value...

    bool eschit;

    then in your keyboard code...

    if(key == ESCAPE)
    eschit = true;

    and finally in your camera update code...

    gluLookAt( camera in one location );
    gluLookAt( camera in original location );

Similar Threads

  1. camera not move
    By zamby in forum OpenGL ES
    Replies: 2
    Last Post: 01-20-2013, 12:47 PM
  2. [Camera] Can't make the camera move appropriately
    By onion_bread in forum OpenGL ES
    Replies: 0
    Last Post: 12-01-2011, 07:36 PM
  3. Trying to move a Camera
    By Stack Overflow in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-30-2002, 12:45 PM
  4. can i move the camera?
    By wrelgamal in forum OpenGL: User Software
    Replies: 1
    Last Post: 05-08-2001, 03:13 PM
  5. Camera move
    By DPalomo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-23-2000, 12:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean