GraphicsTown by Zhenghao Gu
UW - Madison CS559 2017 Spring
A modern browser is necessary (Chrome 58 works well, 56/57 should work)

Several seconds may need to load all pictures

Some changes on the control & interface:

1. Origin arcball is replaced so the control is a bit different
2. Scroll wheel to change fov
3. In drive mode, use WASD to move, Left and Right arrows to look around
4. In fly mode, use WASD to move around, SPACE to move up, LEFT_SHIFT to move down. Four arrows to look around.

How to run this demo:

1. All integrated shaders and pictures are moved into standalone files
2. The easiest way is to try this online version: https://pages.cs.wisc.edu/~tgu/cs559-sp2017/p10/index.html
3. If prompted, username is p7-1 and passwd is 23bc966
4. To run locally, try `/path/to/project/folder$ anywhere`. `anywhere` can be installed by `npm install anywhere -g`

Acknowledgement:

1. Skybox texture downloaded from http://www.custommapmakers.org/skyboxes.php
2. Globe map texture downloaded from http://paulbourke.net/geometry/transformationprojection/
3. Globe specular map downloaded from http://away3d.com/tutorials/Globe_Materials_Tutorial
4. Wood box texture downloaded from https://www.cgtrader.com/3d-models/industrial/other/wood-box
5. Ground texture, normal map & specular map downloaded from http://www.minecraftforum.net/forums/mapping-and-modding/resource-packs/1241290-r3d-craft-play-minecraft-in-high-definition-04-04
6. Teapot model downloaded from http://goanna.cs.rmit.edu.au/~pknowles/models.html
7. Bezier curve library from http://pomax.github.io/bezierjs/

Run TimeOfDay
Examine
ArcBall Mode
Drive Mode
Fly Mode

Curve options:
Show Curve
Hermit Curve
Bezier Curve
Curve option