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 3 of 3

Thread: Viewing using Eye Points

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2017
    Posts
    4

    Viewing using Eye Points

    Hi, I have made a maze and am trying to view it. In order to view the maze I am told to implement the following functions:

    Code :
    mat4 look_at(GLfloat eyex, GLfloat eyey, GLfloat eyez,
    GLfloat atx, GLfloat aty, GLfloat atz,
    GLfloat upx, GLfloat upy, GLfloat upz);
    mat4 frustum(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
    GLfloat near, GLfloat far);

    Using these functions I am trying to view my maze at the center from above, and "fly" around it in a circle. Next, I need to "fly" down to the entrance of the maze by changing the viewpoint slowly until it is right in front of the entrance.

    Here's what I'm struggling with - how to implement these functions. I don't even know where to start. Also, once implemented - what to set each argument in the functions as for the different viewpoints. Any help is appreciated!

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2017
    Posts
    4

    GluLookAt Code

    If anyone could provide me with the implementation of GluLookAt I'd be very appreciative! Direct code or link would be great.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2017
    Location
    SE Pennsylvania on 6 acre wooded hillside
    Posts
    10

Posting Permissions

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