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 3800322
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:52:29+00:00 2026-05-19T13:52:29+00:00

So I am learning OpenGL with as the main resource having the Red book.

  • 0

So I am learning OpenGL with as the main resource having the “Red book”. I am reading about matrix algebra, rotation/scaling/transform matrices and everything is great, but I just don’t get one simple thing. Let’s say the function glLoadIdentity(). It sets the default matrix of 4×4. So it sets 3 vertices and 1 point: (1,0,0) (0,1,0) (0,0,1) vertices, (0,0,0) point. But my question is, what do those correspond? Generally speaking, what does a matrix correspond in OpenGL? I got an idea that these are the directions of axies. But the axies of what? The camera?

  • 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-19T13:52:30+00:00Added an answer on May 19, 2026 at 1:52 pm

    OpenGL matrices only correspond to a transformation, moving objects, vectors and points defined in one coordinate space to another. If you have a matrix M (m11 – m44 as shown below) and a vector V (v1 – v4) in one coordinate space then multiplying by M will convert your V vector (which could describe a movement vector, object location or an object vertex) to W (w1-w4) in a different coordinate space:

    | m11 m12 m13 m14 |   | v1 |     | w1 |
    | m21 m22 m23 m24 |   | v2 |     | w2 |
    | m31 m32 m33 m34 | X | v3 |  =  | w3 |
    | m41 m42 m43 m44 |   | v4 |     | w4 |
    

    Where:

    w1 = m11 * v1 + m12 * v2 + m13 * v3 + m14 * v4
    w2 = m21 * v1 + m22 * v2 + m23 * v3 + m24 * v4
    w3 = m31 * v1 + m32 * v2 + m33 * v3 + m34 * v4
    w4 = m41 * v1 + m42 * v2 + m43 * v3 + m44 * v4
    

    So if we think of v1 – v3 as the old x, y and z coordinates and set v4 to 1, then we can think of w1 – w3 as the new x, y and z coordinates there are a few things we can see:
    m11 is a multiplier from the old x coordinate to the new one so it’s used in scale transformations (and similarly for m22 and m33)
    m14 multiplied by 1 and added to the new x coordinate so it is used for translations (and similarly for m24 and m34)

    Rotations are a little harder to conceptualise but they are done by setting the other matrix values to appropriate values. You can read more here: http://gpwiki.org/index.php/Matrix_math

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

Sidebar

Related Questions

I'm learning OpenGL, and I am reading a book to help me a long.
So I have begun learning OpenGL, reading from the book OpenGL Super Bible 5
I'm learning about openGL and how to do transformations such as translating and scaling.
I am learning OpenGL and recently discovered about glGenTextures. Although several sites explain what
I have been learning OpenGL and SDL lately and I've become rather confused about
I'm learning OpenGL and having a hard time finding a clear definition of the
I am learning OpenGL and having a problem with gluPerspective. Here is the code
Having only recently started learning the 'new' OpenGL (programmable as opposed to fixed-function, I
I'm learning OpenGL using the newest blue book, and I was hoping to get
I am learning about 3D programming with the book Learning Modern 3D Graphics Programming

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.