From 24d2a189c99e1192058cdf189843baba781e20e3 Mon Sep 17 00:00:00 2001 From: Kung-vr <38249782+Kung-vr@users.noreply.github.com> Date: Sun, 21 Mar 2021 23:44:47 +0900 Subject: [PATCH] Adjust tracker battery overlay position for Vive Tracker 3.0 This is a slight adjustment to the battery overlay position to prevent clipping with the new Vive Tracker 3.0 higher face and closer prongs. These changes shouldn't degrade functionality on other trackers. --- src/tabcontrollers/UtilitiesTabController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabcontrollers/UtilitiesTabController.cpp b/src/tabcontrollers/UtilitiesTabController.cpp index a8602af..439d68b 100644 --- a/src/tabcontrollers/UtilitiesTabController.cpp +++ b/src/tabcontrollers/UtilitiesTabController.cpp @@ -238,11 +238,11 @@ vr::VROverlayHandle_t createBatteryOverlay( vr::TrackedDeviceIndex_t index ) { vr::VROverlay()->SetOverlayFromFile( handle, batteryIconPath.toStdString().c_str() ); - vr::VROverlay()->SetOverlayWidthInMeters( handle, 0.05f ); + vr::VROverlay()->SetOverlayWidthInMeters( handle, 0.045f ); vr::HmdMatrix34_t notificationTransform = { { { 1.0f, 0.0f, 0.0f, 0.00f }, - { 0.0f, -1.0f, 0.0f, 0.01f }, - { 0.0f, 0.0f, -1.0f, -0.013f } } }; + { 0.0f, -1.0f, 0.0f, 0.0081f }, + { 0.0f, 0.0f, -1.0f, -0.0178f } } }; vr::VROverlay()->SetOverlayTransformTrackedDeviceRelative( handle, index, ¬ificationTransform ); LOG( INFO ) << "Created battery overlay for device " << index;