Results 1 to 4 of 4

Thread: How to move

  1. #1
    Guest

    How to move

    How do I move to front, back, right and left?

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glLoadIdentity();
    glTranslatef(0.0f,0.0f,-6.0f);
    glRotatef(rot_x,1,0,0);
    glRotatef(rot_y,0,1,0);
    glRotatef(rot_z,0,0,1);

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: How to move

    What sort of movement? ist person or...? What is wrong with what you have done so far?

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2001
    Location
    Bangkhen, Bangkok, Thailand
    Posts
    13

    Re: How to move

    Did you mean how to move your view?
    see gluLookAt() to set your camera position

  4. #4
    Guest

    Re: How to move

    Yeah. Is 1st person movement. I just want to move forward, but I dont know hwo to calculate wheres front.

Similar Threads

  1. Rotations and Transformations, Move the player or move the world?
    By neurocase in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-14-2014, 12:41 AM
  2. Arbitrary move
    By garvek in forum OpenGL: General
    Replies: 2
    Last Post: 08-18-2004, 11:06 PM
  3. move
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-21-2003, 10:44 AM
  4. Move FOG
    By thoean in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-02-2003, 11:40 AM
  5. how to move my car?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-09-2001, 05:15 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