From cce8a110e1ede64ef98ec3dba3e5d4f227a0edf4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 Dec 2014 17:26:52 +0100 Subject: implement camera offset --- facetracknoir/curve-config.cpp | 3 + facetracknoir/mapping.ui | 827 ++++++++++++++++++++++++----------------- 2 files changed, 497 insertions(+), 333 deletions(-) (limited to 'facetracknoir') diff --git a/facetracknoir/curve-config.cpp b/facetracknoir/curve-config.cpp index db5a4a75..ac34e57a 100644 --- a/facetracknoir/curve-config.cpp +++ b/facetracknoir/curve-config.cpp @@ -76,6 +76,9 @@ MapWidget::MapWidget(Mappings& m, main_settings& s) : tie_setting(s.a_x.src, ui.src_x); tie_setting(s.a_y.src, ui.src_y); tie_setting(s.a_z.src, ui.src_z); + + tie_setting(s.camera_yaw, ui.camera_yaw); + tie_setting(s.camera_pitch, ui.camera_pitch); } void MapWidget::doOK() { diff --git a/facetracknoir/mapping.ui b/facetracknoir/mapping.ui index 9f422b9b..574f320f 100644 --- a/facetracknoir/mapping.ui +++ b/facetracknoir/mapping.ui @@ -7,7 +7,7 @@ 0 0 970 - 655 + 664 @@ -626,350 +626,400 @@ false - + QLayout::SetMinAndMaxSize 6 - - - - X - - - - - - - Yaw - - - - - - - Pitch - - - - - - - Y - - - - - - - Z - - - - - - - Roll - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + Assign input axis to output axis. - - - - - - + + Qt::AlignJustify|Qt::AlignVCenter - - - - - - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - Source + + true - - - - Invert + + + + QFrame::NoFrame - - - - - - Destination + + QFrame::Raised + + + + + + + + + + + + Roll + + + + + + + X + + + + + + + Invert + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + Pitch + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + + + Y + + + + + + + Destination + + + + + + + + + + + + + + Yaw + + + + + + + + + + + + + + Source + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + Z + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + label_15 + label_14 + label_13 + label_15 + label_15 + label_13 + label_14 + src_yaw + invert_yaw + label_7 + src_pitch + label_8 + invert_pitch + label_9 + src_roll + invert_roll + label_10 + src_x + invert_x + label_11 + src_y + invert_y + label_12 + src_z + invert_z @@ -993,7 +1043,7 @@ true - + @@ -1009,7 +1059,7 @@ - + @@ -1019,6 +1069,117 @@ + + + + With compensation on, translation is applied after rotation. For example, rotating +180 degrees yaw and moving backwards results in moving forward as a result of that rotation. + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + + + + + + + + + 0 + 0 + + + + Camera offset + + + + + + QFrame::NoFrame + + + QFrame::Raised + + + + + + + 0 + 0 + + + + Yaw + + + + + + + + 0 + 0 + + + + -90 + + + 90 + + + + + + + + 0 + 0 + + + + Pitch + + + + + + + + 0 + 0 + + + + -90 + + + 90 + + + + + + + + + + Specify an angle for off-center camera as a basis for which direction is which, avoiding axis interconnect. + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + -- cgit v1.2.3