[10+10] camera movement Keyboard "c" selects the camera. When the camera is selected, it moves according to the arrow keys. When '←' or '→' is pressed, the camera rotates along a blue circle parallel to the equator. When '↑' or '↓' is pressed, the camera rotates along a red circle orthogonal to the equator. Fig.6 The camera always points to the origin. Describe two possible choices of the "up" direction as you move through the north pole.
![]() |
| Fig.6 |
[20] mouse interaction Select any fingers on the screen with a mouse click. Mouse motion replaces the arrow functionality. When no parts of the haptic device is selected, the camera should be selected and move according to the mouse movement as the keyboard.
[20] animation Locate the tip of Ctip .When "space bar" is pressed, pick a random point in the plane and (randomly) a Platonic solid to fly along a quadratic arc(simulating gravity) to the tip of Ctip. Animate the motion.
[5] for more interesting objects, trajectories and other fun effects.
You're supposed to submit the following files.
readme: what went right & what went wrongmakefile: Please refer to the sample.run: Executable script which does all the batch jobs. Please refer to the sample.hw2b.c)Here are the executables for each platform you can try yourselves.
glut32.dll and cygwin1.dll.)