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: How to find Frustum parametrs

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2012
    Posts
    19

    How to find Frustum parametrs

    I am doing Camera Calibration, and have lot's of local cameras, and I need to render frustum, and it's viewing angle for each. I know that i can do that with intrinsic and extrinsic parameters. BUT HOW??

    If my understanding is right, i need to find : nearD, farD, ratio, angle. But again, how??

    p.s. I have intrinsic and extrinsic parameters, for each local camera.

  2. #2
    Intern Contributor uwi2k2's Avatar
    Join Date
    Mar 2011
    Posts
    98

    ..

    hi,

    i am not shure what you exactly need,
    but if you have a camara you should have a perspective matrix as well, and you are able ro get this one from open gl:
    Code :
    GLdouble projMatrix[16];
    GLdouble modelMatrix[16];
    glGetDoublev(GL_PROJECTION, projMatrix);
    glGetDoublev(GL_MODELVIEW, modelMatrix);
    so if you have the matrix for every camera you should have everithing you need.

    cu
    uwi
    uwi2k2 - OpenGL Trainer: www.opengl-trainer.com
    ---------------------------------------------------------
    Free Programming Helpline: www.programming-hotline.com
    ---------------------------------------------------------
    A Friday Night Programmer: www.uwiworld.net

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2012
    Posts
    19
    Thanks, but that is not what I need, cause I don't know PRM, MDV for my lo

Posting Permissions

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