128

GitHub - Stellarium/stellarium-web-engine: JavaScript planetarium engine

 5 years ago
source link: https://github.com/Stellarium/stellarium-web-engine
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

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 Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK