Assignment 3 - "Train Set"
Project Overview
This outdoor scene involves a train going around in a loop, a car that can be driven around, and buildings and trees to fill in the landscape.
Initially, you can walk around the scene on foot. However, it is also possible to hop in the car for a ride and also to catch the train as it goes by.
The train, tracks, and road are produced by splines and a little math. The viewer bobs around as if walking when on foot.
Interaction
- Keyboard:
- When on foot:
- w,s = forward, backward
- a,d = strafe left, right
- q,e = turn left, right
- enter = when near the train engine or the car, gets in
- When in the car:
- w,s = forward, backward
- a,d = turn
- space = brake
- enter = get out of the car
- When on the train:
- w,s = forward, backward
- enter = get off the train
- When on foot:
- Mouse:
- When on foot:
- Move the mouse with the left button down to look around
- When in the car:
- Nothing
- When on the train:
- Nothing
- When on foot:
Files
- README - This
- Makefile - 'make' to build
- assignment3 - executable
- assignment3.png - screenshot
- main.cpp - program entry point, callbacks, and most glut-work
- objects.cpp - drawing non-primitive shapes in OpenGL, mainly
- objects.h - declarations
- vertex.cpp - handy vector math routines
- vertex.h - declarations
Compilation Instructions
Compiled in Linux with:
- gcc-3.3.1
- glut-3.7.1
Last modified
19 years ago
Last modified on Aug 7, 2005, 6:37:02 PM
Attachments (7)
- thumbnail.png (10.0 KB ) - added by 19 years ago.
- grandthefttrain.tar.gz (96.7 KB ) - added by 19 years ago.
- assignment3.exe (474.0 KB ) - added by 19 years ago.
- GrandTheftTrain-debug.apk (27.8 KB ) - added by 14 years ago.
- grandthefttrain-src.tar.bz2 (38.7 KB ) - added by 11 years ago.
- grandthefttrain-win32-bin.zip (112.9 KB ) - added by 11 years ago.
- GrandTheftTrain.dmg (62.4 KB ) - added by 11 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.