Jackson Cougar Wiebe • University of Calgary • Fall 2019
Menger uses opengl to render the menger sponge fractal.
This demo allows you to change the depth of fractal recursion, control the viewport camera, and change the perspective between orthographic and perspective.
Compile with CMake
-
F7
Toggle between Orthographic and Perspective projection. -
F8
Toggle between lighting and flat shading. -
-
Reduce Menger fractal iterations. -
*
Increase Menger fractal iterations. -
Esc
Exit mouse rotation mode -
Rotation: Click on the viewport to enter mouse rotation mode. Rotate using mouse x and y movements.
-
Zoom: Zoom out by holding <ctrl> and moving the mouse up and down (y coordinate).
- glew (external)
- glfw3 (external)