@@ -8,8 +8,8 @@ The following instructions are tested on an Ubuntu 20.04 operating system.
8
8
9
9
For loading commonly used mesh/scene formats.
10
10
11
- ``` bash
12
- user@pc: ~ $ sudo apt install libassimp-dev
11
+ ``` bash title="Terminal"
12
+ sudo apt install libassimp-dev
13
13
```
14
14
15
15
## Backbones
@@ -22,7 +22,7 @@ Rmagine provides an interface to integrate ray tracing libraries, we call backbo
22
22
23
23
We support Embree in its latest version (tested: v4.0.1, v4.2.0):
24
24
25
- ``` bash
25
+ ``` bash title="Terminal"
26
26
user@pc:~ $ git clone https://github.com/embree/embree.git
27
27
user@pc:~ $ mkdir embree/build && cd embree/build
28
28
user@pc:~ /embree/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
@@ -56,7 +56,7 @@ The Headers require a specific GPU driver and CUDA version to be installed on yo
56
56
57
57
Download the Rmagine repository.
58
58
59
- ``` bash
59
+ ``` bash title="Terminal"
60
60
user@pc:~ /rmagine$ mkdir build
61
61
user@pc:~ /rmagine$ cd build
62
62
user@pc:~ /rmagine/build$ cmake ..
@@ -69,7 +69,7 @@ The path to OptiX-Headers should be specified with the CMake-Variable `OptiX_INC
69
69
70
70
Alternatively, cmake checks for the environment variable ` OPTIX_INCLUDE_DIR ` to exist. After downloading the OptiX-SDK you can add the following command to your ` .bashrc ` :
71
71
72
- ``` bash
72
+ ``` bash title="Terminal"
73
73
export OPTIX_INCLUDE_DIR=~ /.../NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64/include
74
74
```
75
75
@@ -79,7 +79,7 @@ After adding this path, the project should compile without changing the cmake fl
79
79
80
80
You can check if everything went wrong by running the benchmark that was build besides the library:
81
81
82
- ``` bash
82
+ ``` bash title="Terminal"
83
83
user@pc:~ /rmagine/build$ ./bin/rmagine_benchmark_cpu ../dat/sphere.ply
84
84
...
85
85
[ 100% - velos/s: 6261.9, mean: 6244.84]
@@ -88,7 +88,7 @@ Result: 6244.84 velos/s
88
88
89
89
or if the OptiX support was successfully build:
90
90
91
- ``` bash
91
+ ``` bash title="Terminal"
92
92
user@pc:~ /rmagine/build$ ./bin/rmagine_benchmark_gpu ../dat/sphere.ply
93
93
...
94
94
[ 100% - velos/s: 383094, mean: 383457, rays/s: 5.52178e+09]
@@ -99,15 +99,15 @@ Result: 383457 velos/s
99
99
100
100
After compilation do
101
101
102
- ``` bash
102
+ ``` bash title="Terminal"
103
103
user@pc:~ /rmagine/build$ sudo make install
104
104
```
105
105
106
106
### Optional: Check Installation
107
107
108
108
You can check if everything went wrong by running the benchmark that was build besides the library:
109
109
110
- ``` bash
110
+ ``` bash title="Terminal"
111
111
user@pc:~ $ rmagine_benchmark_cpu rmagine/dat/sphere.ply
112
112
...
113
113
[ 100% - velos/s: 6261.9, mean: 6244.84]
@@ -116,7 +116,7 @@ Result: 6244.84 velos/s
116
116
117
117
or if the OptiX support was successfully build:
118
118
119
- ``` bash
119
+ ``` bash title="Terminal"
120
120
user@pc:~ $ rmagine_benchmark_gpu rmagine/dat/sphere.ply
121
121
...
122
122
[ 100% - velos/s: 383094, mean: 383457, rays/s: 5.52178e+09]
@@ -125,7 +125,7 @@ Result: 383457 velos/s
125
125
126
126
## Uninstall Rmagine
127
127
128
- ``` bash
128
+ ``` bash title="Terminal"
129
129
user@pc:~ /rmagine/build$ sudo make uninstall
130
130
```
131
131
@@ -135,30 +135,30 @@ We are working on creating debian packages for easier installations.
135
135
136
136
## Dependencies
137
137
138
- ``` console
138
+ ``` bash title="Terminal"
139
139
sudo apt install libassimp-dev libeigen3-dev
140
140
```
141
141
142
142
## Install
143
143
Download latest Rmagine debian packages from Github releases page (v2.3.0). Install the core by calling
144
144
145
- ``` console
145
+ ``` bash title="Terminal"
146
146
sudo apt install ./rmagine-core_2.3.0_amd64.deb
147
147
```
148
148
149
149
### Embree Backbone
150
150
151
151
We support Embree in its latest version (tested: v4.0.1 - v4.3.0). Make sure you have Embree installed on your system.
152
152
153
- ``` console
153
+ ``` bash title="Terminal"
154
154
sudo apt install ./rmagine-embree_2.3.0_amd64.deb
155
155
```
156
156
157
157
### OptiX Backbone
158
158
159
159
Make sure you have a current NVIDIA driver installed, then install rmagine-cuda and rmagine-optix by:
160
160
161
- ``` console
161
+ ``` bash title="Terminal"
162
162
sudo apt install ./rmagine-cuda_2.3.0_amd64.deb
163
163
sudo apt install ./rmagine-optix_2.3.0_amd64.deb
164
164
```
@@ -167,7 +167,7 @@ sudo apt install ./rmagine-optix_2.3.0_amd64.deb
167
167
168
168
To uninstall everything related to rmagine, call:
169
169
170
- ``` console
170
+ ``` bash title="Terminal"
171
171
sudo apt-get remove rmagine-core
172
172
```
173
173
0 commit comments