lusiaold / stellarium-web-engine

JavaScript planetarium engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stellarium Web Engine

Version 0.1

About

Stellarium Web Engine is a JavaScript planetarium renderer using WebGL that can be embedded into a website.

Features

  • Atmosphere simulation.
  • Gaia stars database access (more than 1 billion stars).
  • HiPS surveys rendering.
  • High resolution planet textures.
  • Constellations.
  • Support for adding layers and shapes in the sky view.
  • Landscapes.

Build the javascript version

You need to make sure you have both emscripten and sconstruct installed.

# Setup emscripten path.
source $PATH_TO_EMSDK/emsdk_env.sh

# Build stellarium-web-engine.js and stellarium-web-engine.wasm
# This will also copy the files into html/static/js
make js

# Now we can open html/test-page.html in a browser.

Build the C version

For development, it is useful to work on a native build of the code, since the code is written in C with OpenGL, you can simply build it with:

make

About

JavaScript planetarium engine


Languages

Language:C 67.9%Language:C++ 30.4%Language:Python 0.5%Language:JavaScript 0.5%Language:HTML 0.3%Language:GLSL 0.2%Language:Objective-C 0.1%Language:Makefile 0.1%Language:CSS 0.1%Language:Dockerfile 0.0%Language:Shell 0.0%