Interactive Room

By Jack Henderson

CSC 471 Final Project Fall 2012

Description
This is an interactive game where the player can walk freely in the room and interact with several obects in the room. There is a door to leave the room but it is locked and the player must find the key to unlock it. The game is not meant to be challenging but to allow the player to interact with the objects in the room.

Controls
Movement: use "w", "a", "s", and "d" to move around the room
Camera: use the left mouse button and mouse movement to look around the room
Interaction: walk up to an object and press "f" to interact with it

Picking
To enable interaction with objects I used a technique called picking. Picking uses openGls selection mode to render the scene and determine the objects that rendered. The Zbuffer information and names of the objects are stored in a selection buffer. Once the closest object is determined certain actions can be taken based on the name of the object.

Screenshots
Start
Door

Interact with objects to animate them.
Train
Pens
Key

Interact with the lights to turn them on and off.
Dark
Room

References
http://www.lighthouse3d.com/opengl/picking/ A simple tutorial on using picking in openGL