Skip to content

peterklipfel/carnival

Repository files navigation

================================================================================
Carnival
================================================================================

This project is a carnival.  It currently has 3 types of rides and 1 type of hut that have been placed throughout.  The rides are configurable on the fly and have an earthquake mode ("t").  I have left a head at the top of the scene to watch over the carnival.  It is at the top of the skydome at x = y = 0.  If you think your hardware is up to the task, you can press 'p' to try to render faces in the rides.  This has not been optimized, so it makes most machines grind to a halt.

Also, press "m"

So, when you open the program, make sure to press "m", "t", and "p"

To compile and run, execute the following commands in the directory of carnival.c (Note: you must have an openGL development environment on your machine)
	$ make
	$ ./carnival

The controls are as follows
esc        - exit
Arrow Keys - Move around space
page up    - increase the view size (zoom out)
page down	 - decrease the view size (zoom in)
b(or B)	   - toggle lighting effects
g(or G)    - toggle axes
m(or M)    - toggle mezmerize mode
p(or P)    - toggle person mode (Warning: this requires very good hardware)
r(or R)    - reset display 
t(or T)    - toggle earthquake (tremor) mode
a          - decrease amient light
A          - increase ambient light
c          - decrease specularity
C          - increase specularity
d          - decrase diffusion
D          - increase diffusion
e          - decrease emission
E          - increase emission
l          - decrease the number of lights
L          - increase number of lights
n          - decrease shinyness
N          - increase shinyness
s          - decrease the number of spokes
S          - increase the number of spokes
v          - slow down ferris wheel
V          - speed up ferris wheel

About

A whole bunch of fun with OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages