Running Gaia Sky¶
If you installed the software using an installer or a package manager
deb), you just need to use the standard running
procedures of your Operating System to run the application.
In windows, this means clicking on
Start and then browsing the start
Gaia Sky. You can run the executable from there.
gaiasky in a terminal or use your favourite desktop
environment search engine to run the Gaia Sky launcher.
Locate the launcher in your install directory (usually
/Applications) and double click on it.
Code and pakcage
However, if you are a maverick and do not like installers, you can also
run the Gaia Sky directly from the source code in
Running from source¶
If you want to compile the source code, you will need the following:
Please, be aware that only
tags are guaranteed to work
branch holds the development version and the configuration files are
possibly messed up and not ready to work out-of-the-box. So remember to
tag version if you want to run it right away from source.
Also, this guide is for Unix-like systems only. If you are working
on Windows, you will need git for
windows, which contains a version of
MinGW (bash) packed with
vim and some other utils. All other
parts of the process should work the same under Windows systems.
First, clone the repository:
$ git clone https://github.com/langurmonkey/gaiasky.git $ cd gaiasky
Getting the catalog data¶
The TGAS catalog files (Gaia data) are not in the repository, so if
you want to use TGAS when running from source you need to download the
tar file corresponding to your version — see table below.
As of version
1.5.0, there are new GPU-bound catalogs which perform
much better and can also be combined with the levels-of-detail structure
to produce a good combo in terms of performance and load times. Choose
which catalog you want to use. Usually, the single file GPU version
should work fine (tgas GPU), and has no culling, so all particles are
visible at all times.
|tgas LoD (1.0.3)||Levels of detail (lod) TGAS catalog. CPU-bound.||
|tags LoD (1.0.4)||Levels of detail (lod) TGAS catalog. CPU-bound.||
|tags LoD (1.5.0, 1.5.1)||Levels of detail (lod) TGAS catalog. GPU-bound. Version
|tags GPU (1.5.0, 1.5.1)||TGAS catalog, GPU-bound. Version
1.0.x just extract the package in the specified
location. For versions
1.5.0+ you can choose whether you want to use
the Levels of detail catalog (LoD, multiple files, uses an octree structure
which culls particles outside the view frustum and hides particles which
are far away according to the view distance setting) or the regular
catalog (single file, loaded once at startup, contains the full catalog,
which is sent to GPU memory). Then, you need to point the key
data.json.catalog in your
to the file specified in the last column in the table.
Albeit not recommended for performance reasons, the legacy
particle-based (CPU-bound) version of the catalog (version
can still be used with newer versions. To do so, extract the package in
gaiasky/assets/data/octree/tgas so that the
file and the
particles folder are directly within that folder and
edit the configuration file so that
data.json.catalog points to
Compiling and running¶
To compile the code and run Gaia Sky run the following.
$ gradlew core:run
In order to pull the latest changes from the GitHub repository:
$ git pull
Remember that the master branch is the development branch and therefore intrinsically unstable. It is not guaranteed to always work.
Packaging Gaia Sky¶
Gaia Sky can be exported to a folder to be run as a standalone app with the following.
$ gradlew core:dist
That will create a new folder called
releases/gaiasky-[version].[revison] with the exported application. Run scripts
are provided with the name
gaiasky (Linux, macOS) and
Also, to export Gaia Sky into a
tar.gz archive file, run the following.
$ gradlew core:createTar
In order to produce the desktop installers for the various systems you
need a licensed version of
Install4j. Then, you need to run:
$ gradlew core:pack
These command will produce the different OS packages (
of Gaia Sky into
Running from downloaded package¶
If you prefer to run the application from the
tar.gz package, follow the instructions below.
In order to run the application on Linux, open the terminal, uncompress
the archive, give execution permissions to the
gaiasky script and then
$ tar zxvf gaiasky-[version].tar.gz $ cd gaiasky-[version]/ $ gaiasky
In order to run the application on Windows, open a terminal window (type
cmd in the start menu search box) and run the
$ cd path_to_gaiasky_folder $ gaiasky.cmd