Jyk1234

11-19-2013, 05:30 AM

Hello all,

I have a small question regarding inverse of a matrix.

So, i have a modelview matrix and it's inverse. I see that the inverse matrix neatly cancels my rotation, and i use this for billboards.

However, when i obtain Euler angles from both matrices, i see that they don't negate each other. i.e

Say angles obtained from MV matrix = a1, a2, a3.

I would have expected the Euler angles from the inverse matrix as -a1, -a2, -a3

However, i see this is not the case. Can anyone please explain what i'm missing here?

Thanks!

I have a small question regarding inverse of a matrix.

So, i have a modelview matrix and it's inverse. I see that the inverse matrix neatly cancels my rotation, and i use this for billboards.

However, when i obtain Euler angles from both matrices, i see that they don't negate each other. i.e

Say angles obtained from MV matrix = a1, a2, a3.

I would have expected the Euler angles from the inverse matrix as -a1, -a2, -a3

However, i see this is not the case. Can anyone please explain what i'm missing here?

Thanks!