From 544f2b05b89b55b8b2e72007de28a7604c3108c2 Mon Sep 17 00:00:00 2001 From: Etheri <77143489+EtheriVR@users.noreply.github.com> Date: Fri, 23 Jun 2023 02:32:09 +0200 Subject: [PATCH] Improves convergance Improve convergance by simply sending the propper y values --- EyeTrackApp/osc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EyeTrackApp/osc.py b/EyeTrackApp/osc.py index 4a5786a..a69079c 100644 --- a/EyeTrackApp/osc.py +++ b/EyeTrackApp/osc.py @@ -160,9 +160,8 @@ def output_osc(eye_x, eye_y, eye_blink, last_blink, self): eye_y = (self.right_y + self.left_y) / 2 if not se: - self.client.send_message("/tracking/eye/LeftRightVec", - [float(self.l_eye_x), float(eye_y), 0.8, float(self.r_eye_x), float(eye_y), - 0.8]) # vrc native ET (z values may need tweaking, they act like a scalar) + # vrc native ET (z values may need tweaking, they act like a scalar) + self.client.send_message("/tracking/eye/LeftRightVec",[float(self.l_eye_x), float(self.left_y), 0.8, float(self.r_eye_x), float(self.right_y),0.8]) class VRChatOSC: