CSE 167 Final Project: Pirate Island
Aaron Schwartz and Yunjiu Li, Fall 2010
Introduction
Our scene takes place on an island surrounded by ocean. The dynamic ocean is a bezier patch whose control points get updated pseudo-randomly. The beautiful terrain is a heightmap based on an image file, with different textures blending into one another depending on the height of the terrain. Starting from the top we have a slight rock texture which turns into grass and then the sand which intersects with our ocean surface, giving the feeling that the ocean is washing up onto the shore. The scene is lit up using per-pixel illumination from multiple light sources. Just in case the viewer gets bored, we also included a mini game where the stranded pirate on the island hallucinates and has to shoot the hallucinations to make them disappear. The user is able to move around the scene shooting objects along a bezier path which are then able to collide with other objects.
Controls
- p - drink (start game)
- q - sober up (end game)
- w - forwards
- s - backwards
- a - left
- d - right
- z - enable/disable per pixel illumination
- h - enable/disable bezier patch movement
- i - take screenshot
- left mouse button - shoot
Features
- Piecewise bezier surfaces with movement
- Per-pixel illumination with multiple light sources and multitexturing
- Moving objects along a bezier path
- Collision detection with bounding boxes and collision with ground terrain
- Surface created from heightmap with different textures applied at different heights
Screenshots
This is the starting scene of the game. The pirate is sober. You need to press 'p' for the pirate to drink and the game to begin.

This is a screenshot while in gameplay mode. The pirate is drunk and is hallucinating. He had too much rum and is now seeing treasure chests. Press the left mouse button to make all the chests disappear but you must make it disappear within 20 seconds or the pirate will faint. If you succeed in killing the hallucinations, the difficulty will increase and the hallucinations will reappear but will move at a much faster rate.