Results 1 to 2 of 2

Thread: questions about screen, planes and viewpoint ...

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2000
    Location
    marseille, France
    Posts
    14

    questions about screen, planes and viewpoint ...

    i have some questions :
    -can someone tell me where i can found all opengl matrices (projection,viewport, ...)
    -i have also a problem : i rotate the camera with gluLookAt, before tranfos the viewpoint isV= (0,0,-50) then i apply
    transfo to this point to obtain the transformed viewpoint (but multiply by the matrix M) which i put in glulookat, but
    when i draw the line (0,0,0) M*V nothing appears or not in the center of my screen, why ?
    -someone also know how to calculate the distance between the screen and the viewpoint ?
    -is the screen perpendicular to the line (viewpoint,point which is viewed [2nd parameter in glulookat]) ?
    that's all for the moment ! thnx for your answers

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: questions about screen, planes and viewpoint ...

    A/ glGetFloatf( GL_PROJECTION_MATRIX , mat ); etc

    C/ they are the same
    D/ yes they are at right angles

    check the red book out for a lot of info also seacrh the web for linear algebra explanations

Similar Threads

  1. Flickering Screen / Questions
    By PadMad in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-12-2016, 02:09 AM
  2. 2 screen questions
    By Aliii in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-13-2012, 03:19 PM
  3. 2 questions: making a FAST title screen and a linker warning
    By Structural in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 01-19-2003, 09:14 PM
  4. changing viewpoint
    By jenny in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-15-2002, 08:36 PM
  5. Viewpoint Movement
    By plates in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-31-2001, 07:49 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