Quest and Pico body tracking

* Update OpenXR SDK to 1.1.48
This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent e29a08ea2e
commit 460fbec06d
28 changed files with 949 additions and 6 deletions
+15
View File
@@ -17,6 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "utils/overloaded.h"
#include "xr/fb_body_tracker.h"
#define GLM_FORCE_RADIANS
#include "stream.h"
@@ -224,6 +225,20 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.face_tracking = from_headset::face_type::pico;
}
info.num_generic_trackers = 0;
if (config.check_feature(feature::body_tracking))
{
if (application::get_fb_body_tracking_supported())
{
auto num_trackers = config.fb_lower_body
? xr::fb_body_tracker::joint_whitelist.size()
: std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [](auto & joint) { return joint < XR_FULL_BODY_JOINT_LEFT_UPPER_LEG_META; });
info.num_generic_trackers = num_trackers;
}
else if (application::get_pico_body_tracking_supported())
info.num_generic_trackers = xr::pico_body_tracker::joint_whitelist.size();
}
info.palm_pose = application::space(xr::spaces::palm_left) or application::space(xr::spaces::palm_right);
info.passthrough = self->system.passthrough_supported() != xr::system::passthrough_type::no_passthrough;
info.system_name = std::string(self->system.properties().systemName);