From 2fa5bc78b5c4500301327bd6a334ab4fb8e04a17 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 30 Sep 2022 18:44:36 -0700 Subject: Redo FX layer Apparently the same avatar parameter can only be updated so quickly before VRChat starts dropping messages. So now we divide the board into "groups" of 8 characters. Each group can be updated relatively slowly, but all groups can be updated in parallel. Thus we can update the board group-by-group, pausing between each group. * Fix shader bugs - now there are Row05 parameters, and row00 refers to the topmost row instead of the bottom-most. * Remove outdated layer/group names files * Extend osc_ctrl.py to support encoding & sending messages * Add generate_params.py to handle creating TaSTT_params.asset * Add generate_utils.py for common code generation facilities & parameters. --- TaSTT.cs | 78 ---------------------------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 TaSTT.cs (limited to 'TaSTT.cs') diff --git a/TaSTT.cs b/TaSTT.cs deleted file mode 100644 index d9901d6..0000000 --- a/TaSTT.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEditor; -using UnityEditor.Animations; -using UnityEngine; -using VRC.SDK3.Avatars.Components; -using VRC.SDK3.Avatars.ScriptableObjects; - -namespace TaSTT -{ - public class TaSTT : EditorWindow - { - private static TaSTT instance_; - private GameObject avatar_root_; - private AnimatorController fx_controller_; - - [MenuItem("Window/TaSTT")] - private static void ShowWindow() - { - instance_ = GetWindow(); - instance_.titleContent = new GUIContent("TaSTT"); - } - - private void Draw() - { - GUILayout.Label("TaSTT: A free VRChat STT"); - GUILayout.Label("Made with love by yum_food"); - GUILayout.Label(""); - - avatar_root_ = (GameObject)EditorGUILayout.ObjectField( - new GUIContent("Avatar Root"), avatar_root_, - typeof(GameObject), true); - fx_controller_ = (AnimatorController)EditorGUILayout.ObjectField( - new GUIContent("FX Controller"), fx_controller_, - typeof(AnimatorController), true); - - if (GUILayout.Button("Create animations!")) - { - if (avatar_root_ == null || !fx_controller_ == null) - { - // TODO(yum_food) why doesn't EditorGUILayout.HelpBox() work here? - Debug.LogError("Avatar root or FX controller are not set! Cannot create animations."); - return; - } - // TODO(yum_food) - } - if (GUILayout.Button("Create FX layer!")) - { - if (!avatar_root_ == null || !fx_controller_ == null) - { - Debug.LogError("Avatar root or FX controller are not set! Cannot create FX layer."); - return; - } - // TODO(yum_food) - } - } - - private static void CreateAnimations() - { - VRCAvatarDescriptor descriptor = avatar_root_.GetComponent(); - if (descriptor == null) - { - Debug.LogError("Failed to get avatar descriptor"); - return; - } - AnimationClip anim = new AnimationClip(); - clip.frameRate = 1f; - } - - private void OnGUI() - { - if (instance_ != null) - { - Draw(); - } - } - } -} -- cgit v1.2.3