|
1 | 1 | # Radium Applications |
| 2 | + |
2 | 3 | Radium is a research 3D Engine for rendering, animation and processing. |
3 | 4 | It is developed and maintained by the [STORM research group](https://www.irit.fr/STORM/site/). |
4 | 5 |
|
5 | 6 | This repository holds front-end applications (GUI, command line) based on Radium Libraries |
6 | | - - Sandbox: Graphical frontend of the Radium Engine. This application aims at demonstrating the capabilities of the Radium Libraries. It can be extended using Radium plugins. |
7 | | - - CLISubdivider: Example of command line application. Loads obj files and run subdivision algorithms implemented with OpenMesh. |
8 | | - |
| 7 | + |
| 8 | +- Sandbox: Graphical frontend of the Radium Engine. This application aims at demonstrating the capabilities of the Radium Libraries. It can be extended using Radium plugins. |
| 9 | +- CLISubdivider: Example of command line application. Loads obj files and run subdivision algorithms implemented with OpenMesh. |
| 10 | + |
9 | 11 | To get more details about each application, checkout the Readme files in each application directory. |
10 | 12 |
|
11 | | -# How to get these applications |
12 | | -## Pre-compiled binaries |
13 | | -Pre-compiled binaries can be downloaded from https://github.com/STORM-IRIT/Radium-Releases/releases/. |
| 13 | +## How to get these applications |
| 14 | + |
| 15 | +### Pre-compiled binaries |
| 16 | + |
| 17 | +Pre-compiled binaries can be downloaded from <https://github.com/STORM-IRIT/Radium-Releases/releases/>. |
14 | 18 |
|
15 | 19 | The downloaded archive contains: |
16 | | - - Radium libraries |
17 | | - - Radium example applications (this repository) |
18 | 20 |
|
19 | | -## Compilation instructions |
| 21 | +- Radium libraries |
| 22 | +- Radium example applications (this repository) |
| 23 | + |
| 24 | +### Compilation instructions |
| 25 | + |
20 | 26 | To compile this repository, you first need to compile and install the [Radium libraries](https://github.com/STORM-IRIT/Radium-Engine). |
21 | | -Then, configure this project using cmake. |
22 | | -You need to tell cmake where to find the installed Radium package by setting the `Radium_DIR` variable to the right location (see more details in Radium Engine documentation: https://storm-irit.github.io/Radium-Engine/). |
| 27 | +Then, configure this project using cmake. |
| 28 | +You need to tell cmake where to find the installed Radium package by setting the `Radium_DIR` variable to the right location (see more details in Radium Engine documentation: <https://storm-irit.github.io/Radium-Engine/>). |
23 | 29 |
|
| 30 | +## How to write your own application |
24 | 31 |
|
25 | | -# How to write your own application |
26 | 32 | This repository also demonstrate how to write applications and extend Radium ecosystem. |
27 | 33 | Radium provides a set of tools simplifying the deployment of such applications, |
28 | 34 | which among other things take care of the portability and relocatability of the |
29 | 35 | binaries. |
30 | 36 |
|
31 | | -Other minimal application examples are available at https://github.com/STORM-IRIT/Radium-Engine/tree/master/tests/ExampleApps. |
| 37 | +Other minimal application examples are available at <https://github.com/STORM-IRIT/Radium-Engine/tree/master/tests/ExampleApps>. |
32 | 38 |
|
33 | 39 | In order to write your own application, you need to follow theses instructions. |
34 | 40 |
|
| 41 | +### Setting a CMakeLists.txt to compile and install an application |
35 | 42 |
|
36 | | -## Setting a CMakeLists.txt to compile and install an application |
37 | 43 | To compile and execute an application, either in the build tree |
38 | 44 | or after installation, the Radium environment must be configured, |
39 | 45 | compiled and installed beforehand. |
40 | 46 |
|
41 | 47 | The main CMakeLists.txt file for compiling a Radium Based application |
42 | 48 | could be as simple as |
| 49 | + |
43 | 50 | ```cmake |
44 | 51 | # set the minimal cmake version supported by Radium cmake system |
45 | 52 | cmake_minimum_required(VERSION 3.6) |
@@ -82,18 +89,22 @@ configure_radium_app( |
82 | 89 | ) |
83 | 90 | ``` |
84 | 91 |
|
85 | | -### Configure the application |
| 92 | +#### Configure the application |
| 93 | + |
86 | 94 | Radium does not support in-source builds (it is bad practice anyway). |
87 | 95 | You then must first create a buid directory that will be the root of the buildtree. |
88 | 96 |
|
89 | | - mkdir build |
90 | | - cd build |
| 97 | +```bash |
| 98 | +mkdir build |
| 99 | +cd build |
| 100 | +``` |
91 | 101 |
|
92 | 102 | If the Radium environment was installed in the directory `pathToRadiumInstallation`, |
93 | 103 | configure the project with : |
94 | 104 |
|
95 | | - cmake ../ -DRadium_DIR=pathToRadiumInstallation/lib/cmake/Radium |
96 | | - |
| 105 | +```bash |
| 106 | +cmake ../ -DRadium_DIR=pathToRadiumInstallation/lib/cmake/Radium |
| 107 | +``` |
97 | 108 |
|
98 | 109 | By default, the application will be installed in a directory |
99 | 110 | called `installed-<Compiler_id>` in the application buildtree. This installed |
|
0 commit comments