Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: please help with skybox question!

  1. #1
    Intern Newbie
    Join Date
    Mar 2002
    Location
    pittsburgh
    Posts
    44

    please help with skybox question!

    here is my problem:
    i have a flight simulator that does all of its movements based on the modelview matrix. the only place that the camera moves on is either the positive or negative z axis. pitch roll and yaw all occer by altering the x y z vectors in the matrix. the problem is that the skybox does not move with the camera. i tried to fix this by translating the skybox to where the camera is by simpily translating it up or down the z but it did not work.

    does anyone know what is wrong with this or what a simple fix is. can i translate a skybox i am assuming i can because all logic says yes but i am not really sure if this is true. any help is appreciated.
    Incus

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    The Round Table at Camelot
    Posts
    1,264

    Re: please help with skybox question!

    What if you try something like this:

    Push Modelview onto stack
    Load Identity matrix
    Render skybox centered at the origin
    Pop Modelview off stack

    Render Scene

    -SirKnight
    -SirKnight

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •