Ithaca High School Math Seminar Lesson 2-14

Date: 2023.12.14

Today we'll continue to explore 3D graphics by creating a program that renders a scene similar to that below (click the video to play it). Given that I'm (again!) away at a conference, this time we'll try something different. Instead of writing a program from scratch, we're going to fill in the blanks of an existing one.

Step 1: Fix the code, run the program!

The Odin code downloadable here (octahedra.odin, 4KB) has a number of areas with ??? symbols, which when correctly filled in, creates a program that draws a bunch of octahedra, as illustrated above. Your task is to figure out what should replace the ??? symbols in the code, fill them in, and compile and run the program.

Final Task: Create a new folder, and save octahedra.odin (linked above) into it. Fill in the blanks in the code, and compile and run the program.