Results 1 to 4 of 4

Thread: Moving in 3d world

  1. #1
    Guest

    Moving in 3d world

    How can I make a "Descent"-like movement in my app? In other words, the arrow keys allow you to turn anywhere and other keys ('q' and 'a', or 'a' and 'z') make you fly in the direction you are looking. I had a little success doing my own vector manipulation (I'm so bad at OpenGL that I tried to make these things by hand), but sooner or later, I start rotating around the wrong axis...
    Does anybody have a link to help me or has done something similar?

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

    Re: Moving in 3d world

    You can learn from opengl tutorials at www.gametutorials.com

  3. #3
    Senior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    216

    Re: Moving in 3d world

    Originally posted by yuu:

    ...but sooner or later, I start rotating around the wrong axis...
    It's called "gimbal lock" and it is the result of using "euler angles" to keep track of orientation. Do a search on these terms and you will find plenty of info.

  4. #4
    Guest

    Re: Moving in 3d world

    Duh, I thought it was easier... Back to study... Maybe I give up.

Similar Threads

  1. "Moving camera forward" relative to world rotation using gluLookAt()
    By Mr_Rockers in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-27-2015, 05:18 PM
  2. Continuous World / World Wrapping
    By MicahBrening in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 02-24-2007, 06:46 PM
  3. open gl ES 2d fixed images in moving 3d world
    By chandru in forum OpenGL ES
    Replies: 2
    Last Post: 10-19-2005, 04:01 AM
  4. Moving around a world.
    By MrShoe in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-28-2001, 12:14 AM
  5. Problems when moving around in a 3d world
    By Alan W in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-21-2001, 12:37 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