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

VR Experiment Data Collection

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

之前实验用了一个还不错的插件,是一个英国一个博士的论文,免费用的,需要熟悉一下。


具体信息官网上都有介绍,如何使用以及发表的文章,是VR实验需要拿手部位置信息以及一些互动不错的方法。

相關文章

查看全部
Inspector GUI

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

 
 
 

コメント


  • Facebook
  • Twitter
  • LinkedIn

©2021 by Mianzi Ltd

bottom of page