Results 1 to 2 of 2

Thread: Choosing glFrustum parameters??

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    1

    Choosing glFrustum parameters??

    I have a scene consisting of some cubes.I want to interactively view it by changing viewpoint(And camera orientation).I had found similar opengl program and understand the program to a large extent.I am slightly confused about choosing parameters of glFrustum for my purpose.
    My all cubes are lying in the xy plane .My all cubes are lying within the rectangular box with opposite coordinates as follows (-500,-500,250)and(500,500,250) .Plz suggest me some appropriate value of parameters for glfrustum.Thanks in advance.

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    7

    Re: Choosing glFrustum parameters??

    It's not enough to set glFrustum, which only controls the shape of the viewing frustum that is going to be visible.
    glFrustum should be used to control the projection matrix.
    You also have to place the camera to a correct position by modifying the modelview matrix.
    These slides may help you to figure out how the matrices work and how to set them.
    http://www.ee.oulu.fi/~kapu/cg_course/b ... ojct_4.pdf
    Kari Pulli

Similar Threads

  1. Perspectives and glFrustum in Opengles
    By akhil in forum OpenGL ES general technical discussions
    Replies: 5
    Last Post: 02-20-2009, 05:58 AM
  2. How does glFrustum and glOrtho affect the z axis?
    By akhil in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 10-02-2007, 11:55 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
  •