Skip to content

A game demonstrating handling light, motion, and cameras in OpenGL

Notifications You must be signed in to change notification settings

shtuk41/LightMotionGLDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightMotionGLDemo

A game demonstrating handling light, motion, and cameras in OpenGL

It has dependencies on freeglut (https://freeglut.sourceforge.net/), glew32 (https://glew.sourceforge.net/basic.html), and a linear algebra library written by Edward Angel (https://www.cs.unm.edu/~angel/BOOK/INTERACTIVE_COMPUTER_GRAPHICS/SIXTH_EDITION/) used in Computer Graphics course. It was developed for school project in 2011.

Controls:

  • x key rotates head right
  • z key rotates head left
  • space key stop the car
  • 0 through 9 sets speed of the car
  • c key changes camera view STATIC, VIEW, CHASE
  • r key resets the game
  • a key zooms in lens in STATIC view
  • s key zooms out lens in STATIC view
  • q key zooms in position in STATIC view
  • w key zooms out position in STATIC view
  • f key switches focus between center of the map and the car
  • h key switches the headlights on and off
  • l key switches emergency lights and off

Screenshots:

  • First-person view with the headlights on.

Screenshot

  • Static view with the headlights on.

Screenshot

  • Static view with the headlights and emergency lights on.

Screenshot

  • Another static view with the headlights and emergency lights on.

Screenshot

  • Static view with the lights off.

Screenshot

  • Another static view with the headlights on.

Screenshot

  • Chase view with the emergency lights on.

Screenshot

  • Chase view with headlights on.

Screenshot

  • Static view with zoom out position focused on center of the map

Screenshot

  • Static view with zoom out position focused on the car

Screenshot

About

A game demonstrating handling light, motion, and cameras in OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published