Original Post
I rotate object O about x axis for 45 degrees. Then I want to rotate O about the y axis , the problem comes. I think the y axis here used in D3DXMatrixRotationY(&matRotY, 0.01f ); should still be the one pointing upwards. But apparently DirectX is rotating my O about the y axis that has been also rotated about x axis for 45 degrees. How to avoid this? Thanks