Rendering a Galaxy with the density wave theory

Simulating a galaxy without solving the n-body problem


The C++ source code of this article is available for download via GitHub. Linux anf the CodeBlocks IDE as well as SDL and OpenGL development libraries are required for compiling the code.

Hints for compiling the code

  1. Michel Stokking, EtiC Galaxy simulation; Galaxy extraterrestrial life simulation and rendering
  2. Bartosz Rempuszewski, An Implementation of this article using Javascript and webGL


  1. C.C. Lin, Yuan, C., and F.H. Shu, "On the Spiral Structure of Disk Galaxies III. Comparison with Observations", Ap.J. 155, 721 (1969). (SCI)
  2. Carroll, Bradley W. and Dale A. Ostlie, "An Introduction to Modern Astrophysics." (2007). Addison Wesley. pp. 966.
  3. Freeman, K. C., "On the Disks of Spiral and so Galaxies" (1970). Astrophysical Journal, vol. 160, p.811
  4. Density wave theory. (2010, Augst 03). In Wikipedia, the free encyclopedia. Retrieved August 03, 2010, from
  5. John Walker "Colour Rendering of Spectra." (1996, April 25). Webpage, retrieved from

You might also like: