using UnityEngine; namespace Normal.Realtime.Examples { public class VoiceMouthMove : MonoBehaviour { public SkinnedMeshRenderer[] skinned; private RealtimeAvatarVoice _voice; private float _mouthSize; void Awake() { _voice = GetComponent(); } void Update() { if (skinned != null) //not sure whether work or not { float targetMouthSize = Mathf.Lerp(0.1f, 1.0f, _voice.voiceVolume); _mouthSize = Mathf.Lerp(_mouthSize, targetMouthSize, 30.0f * Time.deltaTime); foreach (SkinnedMeshRenderer s in skinned)//not sure whether work or not { s.SetBlendShapeWeight(41, _mouthSize * 100); s.SetBlendShapeWeight(17, _mouthSize * 50); s.SetBlendShapeWeight(6, _mouthSize * 20); } } } } }
top of page

Tilt Brush Mixed Reality Capture

  • 作家相片: Ju Zhang
    Ju Zhang
  • 2021年12月11日
  • 讀畢需時 1 分鐘

很早之前玩beat saber的时候就想拍mixed reality的视频,最近要用tilt brush交个小作业,刚好就给了自己一些动力把落灰的绿幕拿出来小试牛刀。稍微记录一下怎么做的和一些容易忘记的步骤。


  1. Plugin


2. Process









相關文章

查看全部
Inspector GUI

https://answers.unity.com/questions/814870/why-arent-public-variables-shown-in-the-inspector.html public variables shown in the Inspector...

 
 
 

Comentarios


  • Facebook
  • Twitter
  • LinkedIn

©2021 by Mianzi Ltd

bottom of page