Skip to content

Commit

Permalink
カメラ起動時にクラッシュする問題の対処とモジュールアップデート (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan committed Feb 11, 2022
1 parent 1b497ce commit 0735fe2
Show file tree
Hide file tree
Showing 746 changed files with 46,967 additions and 171 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
* 旧バージョンから大幅に動作が変わっています。旧バージョンは[こちら](OLD_VERSION.md)

# Requirement
以下の環境で動作確認済みです。
以下の環境で動作確認済みです。M1では動きません。
* Mac OS Mojave(10.14)
* Mac OS Catalina(10.15)


仮想カメラにCamTwistを利用するためダウンロードしてください。
* [CamTwist 3.4.3](http://camtwiststudio.com/download/)

Expand Down
6 changes: 0 additions & 6 deletions src/EasyVTuberNew/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,5 @@ FinalIK
FinalIK.meta
UniRx/
UniRx.meta
Zenject/
Zenject.meta
UnityNativeWindow
UnityNativeWindow.meta
TransformControl
TransformControl.meta


Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static BlendShapeKeyFactory()
/// </remarks>
public static BlendShapeKey CreateFrom(string name)
=> _presets.ContainsKey(name)
? new BlendShapeKey(_presets[name])
: new BlendShapeKey(name);
? BlendShapeKey.CreateFromPreset(_presets[name])
: BlendShapeKey.CreateUnknown(name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace App.Main.Scripts.FaceControl
/// </summary>
public class DefaultFunBlendShapeModifier
{
private BlendShapeKey FunKey { get; } = new BlendShapeKey(BlendShapePreset.Fun);
private BlendShapeKey FunKey { get; } = BlendShapeKey.CreateFromPreset(BlendShapePreset.Fun);

public float FaceDefaultFunValue { get; set; } = 0.0f;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace App.Main.Scripts.FaceControl
/// <summary> 瞬きに対して目と眉を下げる処理をするやつ </summary>
public class EyeDownBlendShapeController : MonoBehaviour
{
private static readonly BlendShapeKey BlinkLKey = new BlendShapeKey(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = new BlendShapeKey(BlendShapePreset.Blink_R);
private static readonly BlendShapeKey BlinkLKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_R);

[SerializeField] private FaceControlManager faceControlManager = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class ImageBasedBlinkController : MonoBehaviour
{
private const float EyeCloseHeight = 0.02f;

private static readonly BlendShapeKey BlinkLKey = new BlendShapeKey(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = new BlendShapeKey(BlendShapePreset.Blink_R);
private static readonly BlendShapeKey BlinkLKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_R);

[Inject] private FaceTracker _faceTracker = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace App.Main.Scripts.FaceControl
/// <summary> 自動まばたき用の値計算と、指示があれば実際に値を適用するやつ </summary>
public class VRMAutoBlink : MonoBehaviour
{
private static readonly BlendShapeKey BlinkLKey = new BlendShapeKey(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = new BlendShapeKey(BlendShapePreset.Blink_R);
private static readonly BlendShapeKey BlinkLKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_L);
private static readonly BlendShapeKey BlinkRKey = BlendShapeKey.CreateFromPreset(BlendShapePreset.Blink_R);

[SerializeField]
private float closeDuration = 0.05f;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ public class AnimMorphEasedTarget : MonoBehaviour

private readonly Dictionary<BlendShapeKey, float> _blendShapeWeights = new Dictionary<BlendShapeKey, float>
{
[new BlendShapeKey(BlendShapePreset.A)] = 0.0f,
[new BlendShapeKey(BlendShapePreset.E)] = 0.0f,
[new BlendShapeKey(BlendShapePreset.I)] = 0.0f,
[new BlendShapeKey(BlendShapePreset.O)] = 0.0f,
[new BlendShapeKey(BlendShapePreset.U)] = 0.0f,
[BlendShapeKey.CreateFromPreset(BlendShapePreset.A)] = 0.0f,
[BlendShapeKey.CreateFromPreset(BlendShapePreset.E)] = 0.0f,
[BlendShapeKey.CreateFromPreset(BlendShapePreset.I)] = 0.0f,
[BlendShapeKey.CreateFromPreset(BlendShapePreset.O)] = 0.0f,
[BlendShapeKey.CreateFromPreset(BlendShapePreset.U)] = 0.0f,
};

private readonly BlendShapeKey[] _keys = new[]
{
new BlendShapeKey(BlendShapePreset.A),
new BlendShapeKey(BlendShapePreset.E),
new BlendShapeKey(BlendShapePreset.I),
new BlendShapeKey(BlendShapePreset.O),
new BlendShapeKey(BlendShapePreset.U),
BlendShapeKey.CreateFromPreset(BlendShapePreset.A),
BlendShapeKey.CreateFromPreset(BlendShapePreset.E),
BlendShapeKey.CreateFromPreset(BlendShapePreset.I),
BlendShapeKey.CreateFromPreset(BlendShapePreset.O),
BlendShapeKey.CreateFromPreset(BlendShapePreset.U),
};

private OVRLipSyncContextBase _context;
Expand Down
51 changes: 0 additions & 51 deletions src/EasyVTuberNew/Assets/App/Scripts/Utils/OpenCVUtilsExt.cs

This file was deleted.

This file was deleted.

9 changes: 9 additions & 0 deletions src/EasyVTuberNew/Assets/Packages/TransformControl.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/EasyVTuberNew/Assets/Packages/TransformControl/Demo.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions src/EasyVTuberNew/Assets/Packages/TransformControl/Demo/Demo.mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Demo
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0.317
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8602941, g: 0.8602941, b: 0.8602941, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0735fe2

Please sign in to comment.