Archived

This topic is now archived and is closed to further replies.

Reiken

3D rotational equations on the X,Y,Z axises

Recommended Posts

To anyone interested, Firstly I have to thank the others who helped me out with the 3d-2d conversion equations for making my wireframe. I am now looking at rotating my vertices, I have the 2d-3d conversion in working order, I now need to get some help with rotating the vertices of an object/model. I have a fairly good understanding of triganometry, although 3dimentional rotational equations has got me stumped. If anyone could get me some trig. equations for X,Y and Z rotation, I would really appreciate it. >> Reiken

Share this post


Link to post
Share on other sites
Rotation around X-axis:
[1 0 0 0]
[0 cos -sin 0]
[0 sin cos 0]
[0 0 0 1]

Rotation around Y-axis:
[cos 0 sin 0]
[0 1 0 0]
[-sin 0 cos 0]
[0 0 0 1]

Rotation around Z-axis:
[cos -sin 0 0]
[sin cos 0 0]
[0 0 1 0]
[0 0 0 1]

To rotate around an arbitrary vector:
-Rotate vector onto the X, Y, or Z axis
-Rotate around the axis
-Rotate back to the original vector

Share this post


Link to post
Share on other sites