-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
28 lines (19 loc) · 710 Bytes
/
README
File metadata and controls
28 lines (19 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Barnes & Hut orbital simulator in Haskell
Made by Morten Olsen Lysgaard
for Main you need:
* ghc
* ffmpeg
* imagemagik
for OpenGL you need:
* GLUT bindings
* OpenGL-RAW or something i think
cabal install handles it ;)
to build, run: ghc -threaded --make Main.hs
After that you can open simulate.sh and edit it for your location.
Then run simulate.sh.
The binary, Main creates a series of SVG files displaying the planets.
Then, a imagemagik, ffmpeg magic turns it intoo a video.
It's also possible to run the simulation in realtime with the OpenGL script.
Compile it with $ ghc -threaded --make Opengl.hs
This was created because I was bored during a flu/fever in my summer vacation 2011.
Have fun!