Starting from:

$25

Computer Graphics-Lab Assignment 9 Solved

Write down a Python program to visualize ZXZ Euler angles. 

A.     This is how ZXZ Euler angles works 

i.         Rotate along Z-axis by α ii.            Rotate along X-axis of the new frame by β iii.  Rotate along Z-axis of the new frame by γ 

B.     Start from 9-Orientation&Rotation practice code, implement ZXZ Euler angles and add code to change α, β, γ values in the following way. 

i.         If you press or repeat a key, the value of α, β, γ should be changed as shown in the table: 

Key 
Transformation 

Increase α by 10°  

Decrease α by 10°  

Increase β by 10°  

Decrease β by 10°  

Increase γ by 10°  

Decrease γ by 10°  

Initialize orientation 
C.     Hint: You do not need to store a composed rotation matrix as a global variable. You can just store α, β, γ as global variables. 

D.     Set the window title to your student ID and the window size to (480,480). 

Expected result: Uploaded LabAssignment9-1.mp4 

More products