Grafik Komputer dan Simulasi
KMK 2033
Pensyarah: Ruzinoor Bin Che Mat
Universiti Utara Malaysia
 

Assignment 2



Objectives

The objective of this assignment is to demonstrate an understanding of many of the concepts that exist in OpenGL, namely; hidden surface removal, shading, translation, rotation, colour, the use of callbacks. An understanding of GLUT will also be required to complete this assignment.

The Problem

- The task is to produce an OpenGL program that allows a simple graphics scene to be displayed in wireframe or
  smooth shaded.
- The scene is to be read from a file and should contain the following object primitives: sphere, cylinder and plane.
- Each object should be able to occur a multiple number of times ia a scene, have a unique colour, position,
  orientation and size.
- The scene should also contain at least one directional light and camera, both of which should have their position,
  orientation and other characteristic.
- The user should be able to control the position and orientation of the camera interactively from the keyboard
  (e.g. down arrow to zoom in the scene, up arrow to zoom out the scene, and etc)
- Perspective transformation should be supported.
- The default display window size should be 300x300.
 

Report

An overall project report is required. This should include:
    - A statement of problem
    - How OpenGL was used to achieve the results
    - what has been accomplished
    - Conclusions, problems, etc.
    - Code Listing
 

Extra Points

Extra marks will be awarded for good scene and extra features. For example you may wish to include a full material and textures on your object.
 
 

Example of Scene




Deadline

Work must be submitted to me or En. Zaimufarruddin by: Saturday 16 August 2003