Write Down The Equation And Transformation Matrix For 3D Rotation About X, Y and Z-Axis


 • For 3-D rotation, we need to pick an axis to rotate an object.

• The most common choices are the x-axis, y-axis, and z-axis.

X-Axis Rotation


write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics

• The transformation for x-axis is obtain from equation of z-axis rotation by replacing cyclically as shown here:

x -> y -> z -> x

• Rotation about x-axis, we leave x co-ordinate unchanged.

y' = ycosθ - zsinθ

z' = ysinθ + zcosθ

x' = x

• Matrix equation is:

p' = Rx (θ) * p 

write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics,3d rotation in cg

Y-Axis Rotation


write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics,3d rotation in cg

 The transformation for y-axis is obtain from equation of x-axis rotation by replacing cyclically as shown here:

x -> y -> z -> x

• Rotation about y-axis, we leave y co-ordinate unchanged.

z' = zcosθ - xsinθ

x' = zsinθ + xcosθ

y' = y

• Matrix equation is:

p' = Ry (θ) * p 

write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics,3d rotation in cg

Z-Axis Rotation


write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics,3d rotation in cg

• Two-dimension rotation equation can be easily converted into 3-D z-axis rotation equation.

• Rotation about z-axis, we leave z co-ordinate unchanged.

x' = xcosθ - ysinθ

y' = xsinθ + ycosθ

z' = z

• Where, parameter θ specify rotation angle.

• Matrix equation is:

p' = Rz (θ) * p 

write down the equation and transformation matrix for 3D Rotation about X Y and Z-axis,3d rotation,3d rotation in computer graphics,3d rotation in cg

2-D Viewing Plane In Computer Graphics

String Handling In Java

Comment your views on this Article :)


Thank you for visiting my blog :)


No comments

Comment your views on this article

Powered by Blogger.