Computer Graphics, Lab Assignment 9
+ LabAssignment2/
+ 1/
- py
+ 2/
- py
+ 3/
- py
- The submission time is determined not when the commit is made but when the git push is made.
- Write down a Python program to visualize ZXZ Euler angles.
- This is how ZXZ Euler angles works
- 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
- Start from 9-Orientation&Rotation practice code, implement ZXZ Euler angles and add code to change , , values in the following way.
- If you press or repeat a key, the value of , , should be changed as shown in the table:
Key | Transformation |
A | Increase by 10 |
Z | Decrease by 10 |
S | Increase by 10 |
X | Decrease by 10 |
D | Increase by 10 |
C | Decrease by 10 |
V | Initialize orientation |
- Hint: You do not need to store a composed rotation matrix as a global variable. You can just store , , as global variables.
- Set the window title to your student ID and the window size to (480,480).
- Expected result: Uploaded LabAssignment9-1.mp4
- Files to submit: A Python source file (Name the file whatever you want (in English). Extension should be .py)
Reviews
There are no reviews yet.