Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:40:32+00:00 2026-05-29T21:40:32+00:00

I was getting in more in depth about matrix implementations, and I found in

  • 0

I was getting in more in depth about matrix implementations, and I found in OpenSceneGraph matrix inverse computation the comment:

We note that this matrix can be split into three matrices.
mat = rot * trans * corr, where rot is rotation part, trans is translation part, and corr is the correction due to perspective (if any).

The fact that the modelview matrix is broken down into a matrix rotation and translation seems reasonable, but the correction matrix makes me curious about…

The corr matrix is the modelview matrix reset to identity except the fourth line (using OpenGL notation). For instance:

corr = [ 1 0 0 0
         0 1 0 0
         0 0 1 0
         x y z s ]

Normally, the vector c=[x y z s] equals to {0 0 0 1}, indeed it doesn’t contribute in vertex transformations. But, since they are involved, how is correction vector used?

What are the concrete applications of the c correction vector? What is the effect on transformed vertices with a such matrix (having perspective correction)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:40:34+00:00Added an answer on May 29, 2026 at 9:40 pm

    The way 4×4 matrices work in 3D computer graphics is: after all your matrix transformations, you divide the 4-vector by the fourth (w) coordinate to get your screen coordinates:

    [ x ]  -> [ x/w ]
    [ y ]     [ y/w ]
    [ z ]     [ z/w ]
    [ w ]     [w/w=1]
    

    From the following simplified diagram, you can see that the geometry of perspective projection requires division by a depth value:

    .  <- viewpoint: (0,0)
    |\
    | \
    |  \
    |   \
    |----+---  <- screen depth = 1  ->  projected point on screen: (x/depth, 1)
    |     \                             (due to geometry of similar triangles)
    |      \
    |       \
    |--------.  <- general point: (x,depth)
    

    The fourth line of the matrix determines the w coordinate of the result, so that the final division can perform the perspective projection. The values [x/w, y/w] are proportional to the actual screen coordinates, and [z/w] is typically used for the depth buffer (although it is actually more like the reciprocal of the depth).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Taking this question about beautiful XSL but getting more specific, how should I refactor
I'm getting more and more annoyed about some processes that could probably be automatically
As I have been testing sites, I have found reCAPTCHA s getting more and
I was previously mostly scripting in PHP and now considering getting more serious about
I'm currently working on a project that's getting more complex than I thought it
Right I'm getting a bit tired of this so hopefully you can help me
UPDATE: Ok, I was able to debug this and found that the by doing
I'm getting more and more requests about being able to use an App to
I am getting more and more spam emails recently. I already validate my email
I've been getting more and more comfortable using vi on a daily basis, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.