Homework 4: Clipping and OpenGL animations
Due: Thursday, Oct. 15, 11:59pm on Moodle
The goal of this homework is to practice line clipping and become familiar with how transformations work in OpenGL to create animations.
Part I: Line Clipping (5 pts)
Instructions here: hw4.pdf. You can hand this part in on paper or on Moodle.
Part II: OpenGL 2D Animations (10 pts)
For this part, we will be building upon Lab 6 to create a shape and make it move in a figure eight.
glRotate(angle,x,y,z)where the angle is in degrees and (x,y,z) denotes the vector around which to rotate.
glTranslate(tx,ty,tz)where tx, ty, and tz are the amount to move in each direction.
glScale(ax,ay,az)were ax ,ay, and az are the scaling factors in each dimension.
python hw4.py
COLLABORATION:
For this assignment, you are welcome to work together, but everyone should turn in their own math/code that they have written and understood. Please cite anyone you worked with at the top of your assignment.
EXTRA CREDIT OPTIONS: