CECS Home | ANU Home | Search ANU
The Australian National University
ANU College of Engineering and Computer Science
School of Computer Science
Printer Friendly Version of this Document

UniSAFE

Computer Graphics

OpenGL 3D Animation and Interaction

The main objective of this lab is to gain some experience interaction and animation in graphics.

By default I have set up this lab in Java using JOGL, however, you are free to complete this lab in c if you like.

Step 1 (4 marks)

From one of your previous 3D labs add the ability to control the camera viewing position via the mouse. This only needs to be one or two degrees of freedom.

Step 2 (1 mark)

Enable the mouse to 'spin' your central object(a fast drag across the screen would start it spinning). This would give the object some angular velocity, which it maintains for some period of time. The amount of spin would depend on the speed of the mouse.

Step 3 (2 mark)

Create a 3D spinning top that: spins, leading to ever increasing precession, and then topples over. Note the physics does not need to be perfect, just aim for something that looks as realistic as possible.

So to obtain full marks you need to do Step 1 along with Step 3. You can skip Step 2. The maximum you can gain for this lab is 6 marks. That is if you complete all three steps you will still only gain 6 marks not 7!