Simulating movement in OpenGL...

This is a discussion on Simulating movement in OpenGL... within the Game Programming forums, part of the General Programming Boards category; I'm new to OpenGL and I'm trying to make the "camera" move just like in a first-pesron shooter but everything ...

  1. #1
    Not stupid, just stupider yaya's Avatar
    Join Date
    May 2007
    Location
    Earthland
    Posts
    204

    Thumbs up Simulating movement in OpenGL...

    I'm new to OpenGL and I'm trying to make the "camera" move just like in a first-pesron shooter but everything rotates on the 0, 0, 0 point. How am I supposed to make everything rotate around me? Or is there a way to actually move the "camera".

    If you want me to post my code, I will.

    Thanks.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    But, you are at (0,0,0). Do you mean that everything on the screen rotates counterclockwise, or something? Remember that the x axis goes left to right, y goes up and down, and z goes out-of-the-screen and into-the-screen. So if you want to act as though you're spinning in place, you yourself are rotating around the y-axis.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    3

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simulating mouse movement in other windows
    By Wiretron in forum Windows Programming
    Replies: 11
    Last Post: 10-13-2007, 09:11 AM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 11:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  4. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 07:57 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21