Skip to content

jacksoncougar/menger-sponge-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published