Skip to content

A WebGL project exploring cubemaps, directional lighting, reflection, and animation. Developed from a course template.

Notifications You must be signed in to change notification settings

kaiyamag/cubemap-final-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cubemap-final-project

A WebGL project exploring cubemaps, directional lighting, reflection, and animation. This project unites all of the concepts covered in my Computer Graphics course and showcases individual research into skymaps and reflections. Developed from a course template.

Reflective teapot on a table

Running the Project:

Download all project files from common/ and final-project/ and run engine.html with Visual Studio Code Live Server. Click "Start Animation" to render the scene, navigate using the arrow keys and click & drag, and mute music with the button in the upper right corner.

Project Features:

  • Free camera: move forwards and backwards with arrow keys, turn left and right with arrow keys, click and drag to look around
  • Directional lighting with specular highlights and shininess.
  • Skymap implemented with a cubemap. Cubemap renderer and shader are separate from other shader files.
  • Environment reflections with cubemaps. Reflections are intentionally most visible in specular highlights.
  • Textures (photo and hand-drawn)
  • Animated sunrise: direction and color of directional lighting changes to mimic a sunrise/sunset cycle. Cubemap tint also changes to match lighting color.
  • Music synced to animation frame rate when start button is clicked.

Sources:

About

A WebGL project exploring cubemaps, directional lighting, reflection, and animation. Developed from a course template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published