GPU Programming Lab 2: Building OpenGL Programs

Due Monday, August 29

Start with the demo I call new_demo from the class examples area on isoptera. Build the demo (it contains a Makefile), and run it. Modify the demo to use instanced rendering to draw a Christmas tree. Don't add vertices, but use instanced rendering instead. Use at least 10 layers, spread out vertically. Look at the image below for an example.

For a 25% extra credit bonus on the lab, make the tree so it uses all three dimensions instead of being flat. You can either add more vertices and triangles for this, or add more instances that draw along the zy plane instead of the xy plane, or whatever else seems to work.