Don't build a matrix that has a z component. What are you trying to do?

DmitryM

05-21-2010, 12:06 AM

The Z-axis rotation comes as a source of your rotation matrix, but it's lost once you applied it. Any final rotation can be represented by rotating along X & Y axises. Most probably you are trying to do something conceptually incorrect.