In OpenGL, ModelView Matrix is ModelxView or View x Model?

Arun AC

In OpenGL, the modelview matrix is

Eye Coordinates = ModelView Matrix * Object Coordinates = View Matrix * Model Matrix * Object Coordinates;

or

Eye Coordinates = ModelView Matrix * Object Coordinates = Model Matrix * View Matrix * Object Coordinates;

Which one is correct? and Why?

Steven De Bock

You typically want to move your object from object space into model space. This means that you will transform your object coordinates first with your Model matrix, using

Model Space Coordinates = Model Matrix * Object Space Coordinates [1]

After your object has been transformed into model space, you typically want to transform it into view space (eye space), using:

Eye Coordinates = View Matrix * Model Space coordinates [2]

Ergo, using [1] and [2], we obtain:

Eye Coordinates = View Matrix * Model Matrix * Object Space Coordinates

And thus your first equation is correct.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

openGL/glut & glm ModelView Matrix

From Dev

openGL/glut & glm ModelView Matrix

From Dev

Getting ModelView and Projection matrices in Opengl 2.x [C++]

From Dev

why the modelview matrix?

From Dev

why the modelview matrix?

From Dev

OpenGL model, view, projection matrices

From Dev

Model View Matrix from Quaterion

From Dev

Best place to store model matrix in OpenGL?

From Dev

Opengl Translation on Model Matrix malforms result

From Dev

Model Matrix trasformations OpenGL ES 2.0

From Dev

QMatrix4x4 Model View Projection OpenGL Can't Get Scene to Render

From Dev

Create view (lookat) matrix for opengl manually in java

From Dev

Which opengl calls modify the view matrix

From Dev

Create view (lookat) matrix for opengl manually in java

From Dev

extracting scale matrix from modelview matrix

From Dev

KnockoutJS : separate model from modelview

From Dev

Translation matrix applyed to the view matrix not working (android opengl2)

From Dev

Opengl Model Matrix doesnt rotate around the origin after one rotation

From Dev

Opengl ES 2.0: Model Matrix vs Per Vertex Calculation

From Dev

OpenGL why send only one model matrix if two models in scene?

From Dev

Test OpenGL ES matrix operations in console application Mac OS X

From Dev

How to manage the Model, View and Projection matrices in modern OpenGL

From Dev

Converting 3D world vectors to model-view matrix

From Dev

Getting posted ID from Dropdownlist model which is not included in the modelview

From Dev

OpenGL perspective matrix to DirectX matrix?

From Dev

OpenGL perspective matrix to DirectX matrix?

From Dev

How to properly pass parameters between modelView and View for the datacontext

From Dev

Multiplication by a view matrix does not affect the resulting value in OpenGL ES 2.0/3.0

From Dev

OpenGL Perspective Matrix in Python

Related Related

  1. 1

    openGL/glut & glm ModelView Matrix

  2. 2

    openGL/glut & glm ModelView Matrix

  3. 3

    Getting ModelView and Projection matrices in Opengl 2.x [C++]

  4. 4

    why the modelview matrix?

  5. 5

    why the modelview matrix?

  6. 6

    OpenGL model, view, projection matrices

  7. 7

    Model View Matrix from Quaterion

  8. 8

    Best place to store model matrix in OpenGL?

  9. 9

    Opengl Translation on Model Matrix malforms result

  10. 10

    Model Matrix trasformations OpenGL ES 2.0

  11. 11

    QMatrix4x4 Model View Projection OpenGL Can't Get Scene to Render

  12. 12

    Create view (lookat) matrix for opengl manually in java

  13. 13

    Which opengl calls modify the view matrix

  14. 14

    Create view (lookat) matrix for opengl manually in java

  15. 15

    extracting scale matrix from modelview matrix

  16. 16

    KnockoutJS : separate model from modelview

  17. 17

    Translation matrix applyed to the view matrix not working (android opengl2)

  18. 18

    Opengl Model Matrix doesnt rotate around the origin after one rotation

  19. 19

    Opengl ES 2.0: Model Matrix vs Per Vertex Calculation

  20. 20

    OpenGL why send only one model matrix if two models in scene?

  21. 21

    Test OpenGL ES matrix operations in console application Mac OS X

  22. 22

    How to manage the Model, View and Projection matrices in modern OpenGL

  23. 23

    Converting 3D world vectors to model-view matrix

  24. 24

    Getting posted ID from Dropdownlist model which is not included in the modelview

  25. 25

    OpenGL perspective matrix to DirectX matrix?

  26. 26

    OpenGL perspective matrix to DirectX matrix?

  27. 27

    How to properly pass parameters between modelView and View for the datacontext

  28. 28

    Multiplication by a view matrix does not affect the resulting value in OpenGL ES 2.0/3.0

  29. 29

    OpenGL Perspective Matrix in Python

HotTag

Archive