Skip to content

simple opengl geometric shapes, fractals and scenes (university project)

Notifications You must be signed in to change notification settings

sdimi/opengl-geometric-shapes

Repository files navigation

Simple openGL geometric shapes, fractals and scenes


House, grass and rotating sun

####sun house scene.cpp We use recursive subdivision in order to create the sphere (sun) and cross product to estimate the perpendicular vectors.

--- ### Pythagoras Tree fractal ####```pythagoras tree fractal.cpp``` The construction of the Pythagoras tree begins with a square. Upon this square are constructed two squares, each scaled down by a linear factor of ½√2, such that the corners of the squares coincide pairwise. The same procedure is then applied recursively to the two smaller squares, ad infinitum.

--- ### Bouncing boxes ####```bouncing cubes.cpp``` Two bouncing cubes that rotate and scale up to a limit.

--- ### House projections ####```house projections.cpp``` Front, below, right, [isometric](https://en.wikipedia.org/wiki/Isometric_projection) and [perspective](https://en.wikipedia.org/wiki/Perspective_(graphical)#Two-point_perspective) projections.

--- ### Gasket fractal ####```fractal.cpp``` Gasket triangle fractal based on [Sierpinski triangle](https://en.wikipedia.org/wiki/Sierpinski_triangle). Drawn with 20k and 50k points.

About

simple opengl geometric shapes, fractals and scenes (university project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages