Galaxy-Renderer-Typescript icon indicating copy to clipboard operation
Galaxy-Renderer-Typescript copied to clipboard

Procedural generation of a 2D spiral galaxy with the density wave theory

Galaxy-Renderer-Typescript

Procedural generation of a 2D spiral galaxy with the density wave theory, typescript and webgl2.

A Program for modelling a two dimensional galaxy based on the density wave theory. This archive contains the source code for an article at beltoforion.de about simulating a galaxy with the density wave theory. For more Details please read the Articles:

  • https://beltoforion.de/en/spiral_galaxy_renderer [english]
  • https://beltoforion.de/de/rendern_von_spiralgalaxien [german]

An online demo of the typescript version can be viewed here:

applet image

A C++ implementation of this code is available here:

  • https://github.com/beltoforion/Galaxy-Renderer

Prerequisites:

This program has the following dependencies:

  • webpack
  • webpack-cli
  • gl-matrix

To install the dependencies go to the project folder and type:

npm install

You should then be able to compile the project with Visual Studio Code.