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.
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.
Interact with objects to animate them.
Interact with the lights to turn them on and off.
References
http://www.lighthouse3d.com/opengl/picking/
A simple tutorial on using picking in openGL