WIP: Pico 4 Pro face tracking
This commit is contained in:
@@ -248,6 +248,8 @@ void scenes::stream::tracking()
|
||||
face_tracking = from_headset::face_type::fb2;
|
||||
else if (application::get_htc_face_tracking_eye_supported() or application::get_htc_face_tracking_lip_supported())
|
||||
face_tracking = from_headset::face_type::htc;
|
||||
else if (application::get_pico_face_tracking_supported())
|
||||
face_tracking = from_headset::face_type::pico;
|
||||
}
|
||||
|
||||
on_interaction_profile_changed({});
|
||||
@@ -336,7 +338,7 @@ void scenes::stream::tracking()
|
||||
case wivrn::from_headset::face_type::fb2:
|
||||
application::get_fb_face_tracker2().get_weights(t0 + Δt, packet.face.emplace());
|
||||
break;
|
||||
case wivrn::from_headset::face_type::htc:
|
||||
case wivrn::from_headset::face_type::htc: {
|
||||
auto & face_htc = packet.face_htc.emplace();
|
||||
face_htc.eye_active = false;
|
||||
face_htc.lip_active = false;
|
||||
@@ -345,6 +347,10 @@ void scenes::stream::tracking()
|
||||
if (application::get_htc_face_tracking_lip_supported())
|
||||
application::get_htc_face_tracker_lip().get_weights(t0 + Δt, face_htc);
|
||||
break;
|
||||
}
|
||||
case wivrn::from_headset::face_type::pico:
|
||||
application::get_pico_face_tracker().get_weights(t0 + Δt, packet.face_pico.emplace());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user