Computer Systems Lab
Collaboration and Distance Learning Ideas 2003
Introduction to Transformations in 3D Programming with OpenGL
Project: Robot Program - Exercise in Transformations:
Translations, Rotations, Scalings
- Construct-a-Robot/Transformer (or similar figure)
that has individually moving parts
- Basic design:
- Torso - connects to Head, Left and Right Upper arms, Left and Right Upper Legs
- Left and Right Upper Arms - connect to Left and Right Lower Arms
- Left and Right Lower Legs - connect to Left and Right Lower Legs
- Download robot1.c starter program.
- Middle mouse button ("both buttons" for 2-button mice): menu
- Left button: positive rotations
- Right button: negative rotations
- Download cylinder.c starter program.
- Draws a 5-sided "cylinder" + a triangle
- Translated 2 units along the z axis
- Use left and right buttons to rotate the cylinder
- NOTE: You can also construct another 3D object such as a
car, tank, pool table with pool balls, or some other shape
with movable parts
YOU CAN BE CREATIVE
- Link to your Project Robot website:
- __ Screenshots of program in action
- __ Description of details of your program. What are the different
parts of the "robot" that you translated/rotated/scaled?
- __ COMMENTED program code (.txt version for easy web
access)