Skip to content

felarof99/GhostRacer

Repository files navigation

GhostRacer - NUI game built using OpenGL and OpenCL

GhostRacer is a computer game which uses Gesture Recognition with the help of a two-colored cuboidal cardboard box as bike handle for controls. This project was done in my for a Computer Graphics course in my 2nd year of Computer Engineering at NITK. A bike racing game based on Natural User Interface (NUI) was designed. This game used a very economic fluorescent colored tube made out of cardboard for gaming controls. This fluorescent tube acted as the bike handle for controlling acceleration and direction of motion of the bike. The game included a basic physics engine which simulated a close-to-real biking experience. 3D graphics were rendered using OpenGL. The NUI was implemented using OpenCV.

Some screenshots:

Shown here is the bike with brakes, the yellow-fluorescent colored part of the cuboidal tube is seen in one window, while the bike race game visual is seen in the other window. The angle (or slope) of the cuboidal tube describes what direction the bike is taking at that instant. The current state of the bike is "braking or decelerating" and the direction it is moving is "rightward".

Screenshot

When the cuboidal tube is turned like the way one uses the accelerator on the bike, the orange-fluorescent colored part of the cuboidal tube becomes visible to the webcam and the bike starts accelerating. We see the accelerating bike in the other game window and the speed is shown in the form of a progress bar in the bottom of the game window.

Screenshot

Just another screenshot.

Screenshot

About

NUI game built using OpenGL and OpenCL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published