Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.41 KB

Animated 3D Simulation of Lorenz Attractor (Mathematical Butterfly Effect / Chaos Theory)

What the hell is that?

The Lorenz attractor is a set of three differential equations that define a path in tridimentional space:

Given a 3D point in space (x,y,z) at time t0, you can calculate the next point t1 by using a numerical iterative method (such as Runge-Kutta). If you apply this again and again you can generate a set of points that can be rendered and animated.

So what about it? This path has a "butterfly" shape and exhibits chaotic properties, a small change in the initial point can lead to completely different (and apparently random) paths.

Dependencies

Under OSX, having Xcode installed.

Under Linux: sudo apt-get install freeglut3-dev libgles2-mesa-dev

Compiling

$ make

Running

$ ./lorenz

Usage

  • Space: Play/Pause
  • ESC: Exit
  • Mouse: Rotate
  • Keys 1-5: Several presets.
  • +/-: Zoom
  • u: Animation mode (Full graph, start to current, trail)
  • r/t: Animation speed
  • y: Restart animation.
  • o: Line mode (Point/Line/Triangles)
  • p: Show graph of projection to each axis.

Screenshots