From 1de282308f77261f12c3ea069aa3f48d66d2a86c Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Sat, 22 Aug 2020 12:29:42 +0200 Subject: [PATCH] Fixed an issue where the mouth wouldn't open through camera tracking with hybrid lipsync in `OpenSeeVRMDriver`. --- Examples/OpenSeeVRMDriver.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/OpenSeeVRMDriver.cs b/Examples/OpenSeeVRMDriver.cs index 2375dcb..69d2b75 100644 --- a/Examples/OpenSeeVRMDriver.cs +++ b/Examples/OpenSeeVRMDriver.cs @@ -263,7 +263,7 @@ public class OpenSeeVRMDriver : MonoBehaviour { } float weight; OVRLipSync.Viseme current = GetActiveViseme(out weight); - if (current == OVRLipSync.Viseme.sil && weight > 0.9999f) { + if (current == OVRLipSync.Viseme.sil && (weight > 0.9999f || weight < 0.0001f)) { if (wasSilViseme) { if (hybridLipSync && Time.time - startedSilVisemes > silVisemeHybridThreshold) { ApplyMouthShape(); @@ -273,10 +273,12 @@ public class OpenSeeVRMDriver : MonoBehaviour { startedSilVisemes = Time.time; } wasSilViseme = true; + Debug.Log("Got sil"); } else { if (wasSilViseme) startedSilVisemes = Time.time; wasSilViseme = false; + Debug.Log("Not sil " + current + " " + weight); if (hybridLipSync && Time.time - startedSilVisemes < silVisemeHybridThreshold) ApplyMouthShape(true); }