 |
Practical 6 (Week 7).
Before you continue with your task work, you should complete the OpenGL
prac work below.
If need be, go through your text book and the lecture notes to catch up
with the OpenGL programming we have covered so far...
Don't copy the code from the samples straight away, but only use it if
you get stuck.
Main Source Code Directory
World Windows
Lecture
12 code (changing the world window).
- Modify the code above to pan the window left and right instead of
zooming in and out.
- Get it to be interactive so that the user can use the arrow keys to
pan the window and the keys : a = zoom in, z = zoom out.
Transformations
- Make your own function to draw a simple, non-symmetrical object, such
as the house of chapter 5, and then add code to your program to be able
to do the following transformations on it:
- s = scale - double the size
- S = scale - halve the size (shift + s)
- r = rotate - by 45 degrees CCW
- R = rotate - by 45 degrees CW
- t = translate - right by half the distance to the edge of the
screen
- T = translate - left by half the distance to the edge of the screen
|
|
 |
 |
Announcements |
 |
|
You should be focusing on the prac work during prac times.
It is important to get up to speed on OpenGL quickly.
|
|
|
Subject Coordinator: Lindsay
{w} | {e}.
Last Update:
September 11, 2001
|
 |
|
 |