wayron's picture

Order of the matrix4


I wonder why OpenTK keeps translation in row3 of the matrix,
why it's not col3 like in OpenGL ?
In this case order of the operations is Translation x Rotation x Scale,
when in OpenGL normally it's opposite Scale x Rotation x Translation
Is it deliberately done ?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tksuoran's picture

You can implement Matrix4 in a number of different ways. OpenTK has chosen one way. If you don't like it, you can implement your own (I did).

See http://and-what-happened.blogspot.com/2011/05/row-major-and-column-major... for some details about different choices you can make while implementing a matrix class.

wayron's picture

Great article, thanks for answer :)