Sly_Raccoon

12-07-2015, 01:35 AM

Hi All,

I am relatively new to Opengl so bear with me :) I have taken over a project from someone else and they are using the transpose of the inverse of the model view matrix to get a normal matrix, which is passed to the shaders for lighting / shading effects ??

The Issue I have is that in one location where this is done they had View * Model and in the other two they used Model * View for the model view matrix, which of these is the correct way? all the google searches I have done for model view matrix either don't say how they are created or talk about model view projection matrices.

Hopefully this is a simple answer :) and thanks in advance.

I am relatively new to Opengl so bear with me :) I have taken over a project from someone else and they are using the transpose of the inverse of the model view matrix to get a normal matrix, which is passed to the shaders for lighting / shading effects ??

The Issue I have is that in one location where this is done they had View * Model and in the other two they used Model * View for the model view matrix, which of these is the correct way? all the google searches I have done for model view matrix either don't say how they are created or talk about model view projection matrices.

Hopefully this is a simple answer :) and thanks in advance.