CP2060 - Task 03 - OpenGL Interactive Scene

 

Due at the start of your prac in week 10.

Create an OpenGL application that includes the following:

  • 3D objects (hard-code them, don't use mesh files) - be interesting and use what you can here
  • Lighting - at least 2 lights which the user can modify by pressing the number keys (0 for light 0, etc.). This should switch between two states for the light - e.g. on/off, two different colours, etc. (add more interaction as well if you like).
  • Keyboard controls to move/rotate the camera - use the arrow keys for yaw and pitch, x and c for roll and a and z for sliding in and out
  • Mouse control - right-click should exit the program

The scene you create should actually make sense - i.e. we should be able to work out what it is. A collection of unrelated objects is not the idea.

All drawing should be done in the display callback function or referenced from this function.

Include a big comment right at the top of your main code file that includes your details and details of what your scene is and how the interactivity works (and anything else you want the markers to know).

These are the minimum requirements for this task. You can include additional features if you wish.


Submission

You will be marked in class by running your application in C++. Have your task ready to show your tutor at the start of the week 10 prac. You also need to copy all of your files on to the tutor's CD for marking of code.

Marking

  • Quality of Code - 4 marks
    (comments, meaningful variable names, logical coding, etc.)
  • 3D Objects - 4 marks
    (depth of drawing, use of colour, interest)
  • Interactivity - 2 marks
    (mouse and keyboard controls)

 

 

 

 Announcements
This is task 3 of 3, worth 10% (The tasks all add up to 30% of your total assessment in CP2060).

 

 Subject Coordinator: Lindsay {w} | {e}.

Last Update: October 2, 2001