Milestone 2: glTF Loading and Shading
In this second milestone, you extend your CounterKart renderer so that it reads in and shades 3D models. Complete these steps to satisfactorily complete the milestone:
-
Build a renderer that loads and renders your player, powerup, and scenery models—one at a time. The models must be stored as glTF files. Include all parts from the
meshes
arrays. Switch which model is rendered merely by changing a URL in the source code. - Render the model in perspective.
- Rotate the model continually using a turntable display.
- Shade the model with ambient, diffuse, and specular lighting. A fixed albedo is sufficient for now. You'll pull the albedo from textures in a later milestone.
Submission
To submit your milestone, first commit your renderer to GitHub. Second, record a short screencast of you rendering each of your models from milestone 1 in turn. (Feel free to switch models by just changing URLs in the source code.) Comment on features that you found especially challenging or interesting.
Upload your video to a streaming video service like YouTube. Please accommodate your instructor, who has many videos to watch, by not uploading to Discord, Google Drive, or other non-streaming video services. Share just a link to your video in the #milestone-gallery
channel on Discord. The video may remain unlisted, but ensure that anyone with the link can watch it.