Skip to content

Commit 9027861

Browse files
committed
Set an up-axis (Z+)
1 parent e229201 commit 9027861

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ int main() {
6161
auto rec = rerun::RecordingStream("rerun_example_cpp");
6262
rec.connect().throw_on_failure();
6363

64+
rec.log_timeless("world", rerun::ViewCoordinates::RIGHT_HAND_Z_UP); // Set an up-axis
65+
6466
const int num_points = 1000;
6567

6668
// Points represented by std::vector<Eigen::Vector3f>
@@ -81,9 +83,9 @@ int main() {
8183
Eigen::Matrix3f camera_orientation;
8284
// clang-format off
8385
camera_orientation <<
84-
0.0, 1.0, 0.0,
85-
0.0, 0.0, 1.0,
86-
1.0, 0.0, 0.0;
86+
+1.0, +0.0, +0.0,
87+
+0.0, +0.0, +1.0,
88+
+0.0, -1.0, +0.0;
8789
// clang-format on
8890
rec.log(
8991
"world/camera",

0 commit comments

Comments
 (0)