![]() |
ANU College of Engineering and Computer Science
School of Computer Science
|
|
|
OpenGL 3DThe main objective of this lab is to gain some experience in drawing simple 3D objects using Open GL. In particular I hope students gain an understanding of model transformations and how to make use of the stack of these transformation matrices.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 (3 marks)Obtain a copy of ScreebSaverOGL.java which forms a simple screen saver program(the same as the last lab). Compile and run it(you need to include the jogl jar files along with set up the LD_LIBARAY_PATH).Create a simple polygon that rotates in 3D on it's y-axis. Duplicate this polygon 4 times so that the same polygon is rotating similtainiously in 4 different places on the screen. In doing this you should use either a method for drawing the shape which you call 4 times or a using a display list(i.e. glNewList, glEndList, and glCallList). This will also involve using glPushMatrix and glPopMatrix. Step 2 (2 mark)Find a real object that is not too complex(but also not to simple) and attempt to model this in OpenGL. An example of the type of objects include: a pen, a tooth brush, a vegemite container, a calculator, mobile phone, etc...Once again display 4 of them rotating at the same time. Step 3 (1 mark)Add an image onto the surface of your object. So in the case of the vegemite container you would add the label. In the case of the tooth brush you would add a logo. .... | |||||||||||||||||||||||||||||||||||||||||||||
|
Please direct all enquiries to: ericm@cs.anu.edu.au Page authorised by: Head of School, SoCS |
| The Australian National University — CRICOS Provider Number 00120C |