Team Members
- Utkarsh Mall - 130050037
- Tushar Rain- 130050040
Components
- R2D2 Droid
- B1 Battle Droid
- Scene: Interiors of a ship
Droid comparisons with real models
Modelled R2D2 vs Real R2D2
Modelled Battle Droid vs Real Battle Droid
Hierarchical modelling
- For R2D2 we keep its torso as root of hierarchy tree.
- The arms,leg,head are childen of this node, and lower part of arms is child of these arms
- For B1 Battle Droid we again, keep torso as root of hierarchy tree.
- The arms,leg,head are childen of this node with all 3 degree of freedoms.
- The lower part of arms and legs are children of them repectively
Heirarchy tree for R2D2
Heirarchy tree for B1 Battle Droid
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 M: Rotate lower legs round
- Left Shift : Reset to initial position
Note:The rotation for both arms and legs is symmetrically due to limitations over button and increased complexity of control. The parts can move individually too.
Lighting Images
No Light
With first Light Source
With second Light Source
Spotlight
How To Run The Program
- Untar the file and make it current directory
- Write command 'make' in terminal.
- An executable named 'a3_droids' should be created.
- Errors might arise due to different OpenGL version, check the errors and edit the files accordingly.
- try './a3_droids' or 'optirun ./a3_droids' to run the program.
References
- Used for passing float variables to shader (Last seen: October 19 2015)
- Used for checking key codes (Last seen: October 19 2015)
- Used for making videos.(Last seen: October 19 2015)
- Used for perspective projection matrices(Last seen: October 19 2015)
- Used for finding normal transformation matrices(Last seen: October 19 2015)
- inverse and transform of matrix(Last seen: October 19 2015)
- For loading texture(Last seen: October 19 2015)