diff options
| author | yum <yum.food.vr@gmail.com> | 2022-09-30 18:44:36 -0700 |
|---|---|---|
| committer | yum <yumfood@airmail.cc> | 2022-09-30 18:44:36 -0700 |
| commit | 2fa5bc78b5c4500301327bd6a334ab4fb8e04a17 (patch) | |
| tree | d03c01d929431320686d61f7091b96f6be3d14ca /TaSTT.cs | |
| parent | 73bbba9de5210ae7f895ae82bd2524eb76e3a38c (diff) | |
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.
Diffstat (limited to 'TaSTT.cs')
| -rw-r--r-- | TaSTT.cs | 78 |
1 files changed, 0 insertions, 78 deletions
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<TaSTT>();
- 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<VRCAvatarDescriptor>();
- 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();
- }
- }
- }
-}
|
