Team Members
- Utkarsh Mall - 130050037
- Tushar Rain- 130050040
Key Assignment
Keys for camera movement
- A D: move camera eye in X direction
- W S: move camera eye in Y direction
- Z X: move camera eye in Z direction
- ← →: move lookat point in X direction
- ↑ ↓: move lookat point in Y direction
- PgUp PgDn: Rotate Up vector
- Tab: Reset camera to original position
Keys for lights
- 1: Toggle Light 1 on/off
- 2: Toggle Light 2 on/off
- 3: Toggle SpotLight on/off
Keys for R2D2 Motion
Press Caps Lock to toggle motion between R2D2 and Battle Droid
- 4 6: Translate along Z direction
- 5 R: Translate along Y direction
- E T: Translate along X direction
- F H: Rotate along Z axis
- G V: Rotate along X axis
- C B: Rotate along Y axis
- Y U: Rotate Left arm(Object's right)
- O P: Rotate Right arm(Object's left)
- N M: Translate Left Lower arm(Object's right)
- , . : Translate Right Lower arm(Object's left)
- J L: Rotate Head
- I K: Translate Leg(initially inside the droid)
- Left Shift : Reset to initial position
Keys for Battle droid Motion
Press Caps Lock to toggle motion between R2D2 and Battle Droid
- 4 6: Translate along Z direction
- 5 R: Translate along Y direction
- E T: Translate along X direction
- F H: Rotate along Z axis
- G V: Rotate along X axis
- C B: Rotate along Y axis
- - Backspace: Rotate head along Y axis
- = ]: Rotate head along X axis
- [ \: Rotate head along Z axis
- I P: Rotate arms around Z axis
- 9 O: Rotate arms around X axis
- 8 0: Rotate arms around Y axis
- , / : Rotate legs around Z axis
- L . : Rotate legs around X axis
- K ; : Rotate legs around Y axis
- 7 U: Rotate lower arms around
- J N: Rotate lower legs round
- Left Shift : Reset to initial position
Keyframes and playback related keys
- Enter: Save keyframe
- Left Control : Enter playback mode and play the animation
- Space: Enter record mode and save the frame images
- ` : Toggle between using bezier curves/interpolation for camera movement
- Delete: Delete saved keyframes
Final Short Film
How To Run The Program
- Untar the file and make it current directory
- Write command 'make' in terminal.
- An executable named 'a4_anim' should be created.
- Errors might arise due to different OpenGL version, check the errors and edit the files accordingly.
- try './a4_anim' or 'optirun ./a4_anim' to run the program.
- Use 'make createVideo' to create the video 'output.avi' from the frames. The commands for inverting the frames will also be called during createVideo.
- Use 'make deleteframes' to delete the already saved frames.
Sample output video
References
- Used for passing float variables to shader (Last seen: November 5 2015)
- Used for checking key codes (Last seen: November 5 2015)
- Used for making videos.(Last seen: November 5 2015)
- Used for perspective projection matrices(Last seen: November 5 2015)
- Used for finding normal transformation matrices(Last seen: November 5 2015)
- inverse and transform of matrix(Last seen: November 5 2015)
- For loading texture(Last seen: November 5 2015)
- For encoding from multiple input image files(Last seen: November 5 2015)