jacksoncougar / menger-sponge-demo

Opengl demo to render the menger sponge fractal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Graphics (CPSC 453): Menger Spong Fractal Project

Jackson Cougar Wiebe • University of Calgary • Fall 2019

Menger

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.

Demo (wait for it)

menger-spong-demo-gif

Compile

Compile with CMake

Controls

  • 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).

Dependancies

  • glew (external)
  • glfw3 (external)

About

Opengl demo to render the menger sponge fractal.


Languages

Language:C++ 97.0%Language:GLSL 2.8%Language:Makefile 0.2%