Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to tutorials #143

Merged
merged 1 commit into from
Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tutorials/11_gazebo_scene_viewer_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ The following list will describe some methods:

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/gazebo_scene_viewer
mkdir build
cd build
Expand Down
3 changes: 2 additions & 1 deletion tutorials/12_mesh_viewer_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/mesh_viewer
mkdir build
cd build
Expand Down
3 changes: 2 additions & 1 deletion tutorials/13_custom_scene_viewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ There are some scenes that are not available in Ogre because we have not or we c

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/custom_scene_viewer
mkdir build
cd build
Expand Down
60 changes: 33 additions & 27 deletions tutorials/14_camera_tracking_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Using the `W` and `S` keys you can move the box forward or backward. Pressing `A

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/camera_tracking
mkdir build
cd build
Expand All @@ -19,33 +20,38 @@ To run the example:

```{.sh}
./camera_tracking
```

You'll see:

```{.sh}
===============================
TAB - Switch render engines
ESC - Exit

W: Move box forward
S: Move box backward
A: Rotate box to the left
D: Rotate box to the right

1: Camera tracking only
2: Camera tracking and
following
3: Camera tracking and
following (world frame)

T: Toggle smooth tracking
F: Toggle smooth following

Track offset
u/U: +- 0.1 on X
i/I: +- 0.1 on Y
o/O: +- 0.1 on Z

Follow offset
j/J: +- 0.1 on X
k/K: +- 0.1 on Y
l/L: +- 0.1 on Z
TAB - Switch render engines
ESC - Exit

W: Move box forward
S: Move box backward
A: Rotate box to the left
D: Rotate box to the right

1: Camera tracking only
2: Camera tracking and
following
3: Camera tracking and
following (world frame)

T: Toggle smooth tracking
F: Toggle smooth following

Track offset
u/U: +- 0.1 on X
i/I: +- 0.1 on Y
o/O: +- 0.1 on Z

Follow offset
j/J: +- 0.1 on X
k/K: +- 0.1 on Y
l/L: +- 0.1 on Z
===============================

```
Expand Down
12 changes: 9 additions & 3 deletions tutorials/15_custom_shaders_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,24 @@ This example will create two images (RGB and Depth) based on the scene. The scen

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
cd ign-rendering/examples/camera_tracking
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/custom_shaders
mkdir build
cd build
cmake ..
make
```

```{.sh}
./custom_shaders
```
./camera_tracking

You'll see:

```{.sh}
Image saved: depth.png
Image saved: regular.png
```
Expand Down
12 changes: 9 additions & 3 deletions tutorials/17_render_pass_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ This example shows how to add gaussian mode to the camera

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/render_pass
mkdir build
cd build
Expand All @@ -17,11 +18,16 @@ Execute the example:

```{.sh}
./render_pass
```

You'll see:

```{.sh}
[Msg] Loading plugin [ignition-rendering4-ogre]
Engine 'optix' is not supported
===============================
TAB - Switch render engines
ESC - Exit
TAB - Switch render engines
ESC - Exit
===============================
```

Expand Down
12 changes: 9 additions & 3 deletions tutorials/18_simple_demo_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ This example shows how move the camera automatically.

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/simple_demo
mkdir build
cd build
Expand All @@ -17,11 +18,16 @@ Execute the example:

```{.sh}
./simple_demo
```

You'll see:

```{.sh}
[Msg] Loading plugin [ignition-rendering4-ogre]
Engine 'optix' is not supported
===============================
TAB - Switch render engines
ESC - Exit
TAB - Switch render engines
ESC - Exit
===============================
```

Expand Down
14 changes: 10 additions & 4 deletions tutorials/19_text_geom_tutorial.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
\page text_geom Text geom
\page text_geom Text geometry

This example shows how to include text in the scene.

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/text_geom
mkdir build
cd build
Expand All @@ -17,11 +18,16 @@ Execute the example:

```{.sh}
./text_geom
```

You'll see:

```{.sh}
[Msg] Loading plugin [ignition-rendering4-ogre]
Engine 'optix' is not supported
===============================
TAB - Switch render engines
ESC - Exit
TAB - Switch render engines
ESC - Exit
===============================
```
@image html img/text_geom.png
Expand Down
8 changes: 7 additions & 1 deletion tutorials/20_particles_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ This example shows how to include a particle emitter in the scene.

## Compile and run the example

Create a build directory and use `cmake` and `make` to compile the code:
Clone the source code, create a build directory and use `cmake` and `make` to compile the code:

```{.sh}
git clone https://github.com/ignitionrobotics/ign-rendering
cd ign-rendering/examples/particles_demo
mkdir build
cd build
Expand All @@ -17,6 +18,11 @@ Execute the example:

```{.sh}
./particles_demo
```

You'll see:

```{.sh}
[Msg] Loading plugin [ignition-rendering4-ogre2]
===============================
TAB - Switch render engines
Expand Down