Results 1 to 2 of 2

Thread: model view matrix and view direction

  1. #1
    Senior Member Regular Contributor
    Join Date
    May 2012
    Posts
    145

    model view matrix and view direction

    Hello forum,

    Is the view-direction found inside the model-view matrix. I read somewhere that the third column of the model-view matrix contains the view direction.

    How and Why ?

    Some references/hint is requested ?


    Thanks

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896
    It depends on what coordinate system you want the view direction in (model space, world space, eye space, ...). In eye space the view direction is normally (0,0,-1), i.e. along the negative z axis. From there you can transform it to other spaces. For example if you apply the inverse view matrix to that vector you obtain the view direction in world space (view matrix transforms from world to eye space, so the inverse does the opposite direction), if you apply the inverse modelview matrix you obtain the view direction in model space (since modelview matrix transforms model space coordinates to eye space coordinates).

Similar Threads

  1. Model View matrix
    By Sly_Raccoon in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-07-2015, 10:24 AM
  2. newbie view location / view direction in textfield
    By newsb in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-12-2011, 02:15 PM
  3. Model View Matrix Value when using MFC
    By miztaken in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-12-2010, 02:48 PM
  4. Replies: 2
    Last Post: 01-07-2004, 11:48 PM
  5. Need an advice on separating model matrix from view matrix.
    By Obli in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-09-2003, 06:07 AM

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