From 88b3f248549d26a0a7c68dbe5ef9d81cd12d9dd9 Mon Sep 17 00:00:00 2001 From: uezo Date: Sun, 8 Sep 2024 16:46:08 +0900 Subject: [PATCH 1/2] Small changes - Add outline to hair of Unagirl - Remove unused private member from SimpleCamera --- .../N00_000_Hair_00_HAIR (Instance).asset | 11 ++++++++--- Scripts/IO/SimpleCamera.cs | 4 ---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Demo/Model/Unagirl/Unagirl.Materials/N00_000_Hair_00_HAIR (Instance).asset b/Demo/Model/Unagirl/Unagirl.Materials/N00_000_Hair_00_HAIR (Instance).asset index 7c5a6b7..6e797da 100644 --- a/Demo/Model/Unagirl/Unagirl.Materials/N00_000_Hair_00_HAIR (Instance).asset +++ b/Demo/Model/Unagirl/Unagirl.Materials/N00_000_Hair_00_HAIR (Instance).asset @@ -9,7 +9,11 @@ Material: m_PrefabAsset: {fileID: 0} m_Name: N00_000_Hair_00_HAIR (Instance) m_Shader: {fileID: 4800000, guid: 1a97144e4ad27a04aafd70f7b915cedb, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 m_ValidKeywords: + - MTOON_OUTLINE_COLOR_MIXED + - MTOON_OUTLINE_WIDTH_WORLD - _ALPHATEST_ON - _NORMALMAP m_InvalidKeywords: [] @@ -20,6 +24,7 @@ Material: stringTagMap: RenderType: TransparentCutout disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -65,7 +70,7 @@ Material: m_Offset: {x: 0, y: 0} m_Ints: [] m_Floats: - - _AlphaToMask: 0 + - _AlphaToMask: 1 - _BlendMode: 1 - _BumpScale: 1 - _CullMode: 0 @@ -79,8 +84,8 @@ Material: - _OutlineCullMode: 1 - _OutlineLightingMix: 1 - _OutlineScaledMaxDistance: 4.34 - - _OutlineWidth: 0 - - _OutlineWidthMode: 0 + - _OutlineWidth: 0.037 + - _OutlineWidthMode: 1 - _ReceiveShadowRate: 1 - _RimFresnelPower: 100 - _RimLift: 0.1 diff --git a/Scripts/IO/SimpleCamera.cs b/Scripts/IO/SimpleCamera.cs index 5533a6f..cdff6b2 100644 --- a/Scripts/IO/SimpleCamera.cs +++ b/Scripts/IO/SimpleCamera.cs @@ -41,7 +41,6 @@ public class SimpleCamera : MonoBehaviour public bool IsCameraEnabled { get; private set; } = false; public bool IsAlreadyStarted { get; private set; } = false; private WebCamTexture webCamTexture; - private bool isStillImageAnimating; private void Awake() { @@ -410,8 +409,6 @@ public byte[] GetStillImage() private IEnumerator StillButtonFadeEffect() { - isStillImageAnimating = true; - float originalAlpha = stillFadeImage.color.a; stillFadeImage.color = new Color(stillFadeImage.color.r, stillFadeImage.color.g, stillFadeImage.color.b, 0.7f); @@ -430,7 +427,6 @@ private IEnumerator StillButtonFadeEffect() stillFadeImage.color = new Color(stillFadeImage.color.r, stillFadeImage.color.g, stillFadeImage.color.b, originalAlpha); stillFadeImage.gameObject.SetActive(false); - isStillImageAnimating = false; } } } From 3b6b7c6b556eac4a073bb96f0954be58c13c8e1f Mon Sep 17 00:00:00 2001 From: uezo Date: Sun, 8 Sep 2024 16:46:41 +0900 Subject: [PATCH 2/2] Update README for v0.8.0 --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9f0d708..d2e2a68 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,31 @@ ... and more! See [ChatdollKit Documentation](Documents/manual.md) to learn details. +## ๐Ÿ’Ž What's New in Version 0.8 Beta + +- **โšก Optimized AI Dialog Processing**: We've boosted response speed with parallel processing and made it easier for you to customize behavior with your own code. Enjoy faster, more flexible AI conversations! +- **๐Ÿฅฐ Emotionally Rich Speech**: Adjusts vocal tone dynamically to match the conversation, delivering more engaging and natural interactions. +- **๐ŸŽค Enhanced Microphone Control**: Microphone control is now more flexible than ever! Easily start/stop devices, mute/unmute, and adjust voice recognition thresholds independently. + + ## ๐Ÿš€ Quick start You can learn how to setup ChatdollKit by watching this video that runs the demo scene(including chat with ChatGPT): https://www.youtube.com/watch?v=rRtm18QSJtc [![](https://img.youtube.com/vi/rRtm18QSJtc/0.jpg)](https://www.youtube.com/watch?v=rRtm18QSJtc) +To run the demo for version 0.8, please follow the steps below after importing the dependencies: + +- Open scene `Demo/Demo08`. +- Select `AIAvatarVRM` object in scene. +- Set OpenAI API key to following components on inspector: + - ChatGPTService + - OpenAITTSLoader + - OpenAISpeechListener +- Run on Unity Editor. +- Say "ใ“ใ‚“ใซใกใฏ" or word longer than 3 characters. + + ### ๐Ÿ“ฆ Import packages Download the latest version of [ChatdollKit.unitypackage](https://github.com/uezo/ChatdollKit/releases) and import it into your Unity project after import dependencies;