Results 1 to 3 of 3

Thread: Cemera help....

  1. #1
    Member Newbie
    Join Date
    Jan 2001
    Location
    Plymouth,NH
    Posts
    40

    Cemera help....

    I have an object that moves around the screen fine but what I want is the camera to look like its following the object. How can I do this so when I rotate the objec the camera moves into the correct position. Check out my source at: http://oz.plymouth.edu/~r_detzel/Lesson1.cpp

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Posts
    370

    Re: Cemera help....

    Don't you just love classword? The camera will be doing the opposite of what you object is doing. (Like looking into a mirror, object move left, camera sees right, and so on.)

    You can use gllookat() if you want, just plug the negated values of your object position +- a few, since you want to see the object also.

  3. #3
    Member Newbie
    Join Date
    Jan 2001
    Location
    Plymouth,NH
    Posts
    40

    Re: Cemera help....

    Did you mean classwork? Anyways, its not classwork but rather a project im doing in my spare time to learn opengl.

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