Commit Graph

370 Commits

Author SHA1 Message Date
Masataka SUMI
8a7d0a82f3 mv namespace from VRMShaders.VRM10.MToon10 to VRM10.MToon10 2024-07-18 23:24:50 +09:00
ousttrue
4dc5aae73c AddLogic to LogicFromTransform 2024-07-18 18:46:26 +09:00
ousttrue
02db0d3ba0 setter 2024-07-18 18:46:25 +09:00
ousttrue
7f089f1dd8 FastSpringBoneBufferBuilder を FastSpringBoneBuffer.FastSpringBoneBuffer に合体 2024-07-18 18:46:25 +09:00
ousttrue
80c2bb921c TransformIndexMap to Array.IndexOf 2024-07-18 18:46:25 +09:00
ousttrue
d8735d8952 internal Vrm10RuntimeSpringBone.Vrm10RuntimeSpringBone 2024-07-18 18:46:25 +09:00
ousttrue
a9d645d4ff impl Vrm10RuntimeSpringBone.RestoreInitialTransform 2024-07-18 18:46:25 +09:00
ousttrue
b69b3760e3 private FastSpringBoneBufferBuilder m_initialData 2024-07-18 18:46:25 +09:00
ousttrue
7f856bf945 separate FastSpringBoneBufferBuilder 2024-07-18 18:46:25 +09:00
ousttrue
3a37f35883 Vrm10Runtime から SpringBone 関連を Vrm10RuntimeSpringBone に分離 2024-07-18 18:46:25 +09:00
ousttrue
5b47fab89f SpringBonePaused to IsSpringBoneEnabled. invert boolean 2024-07-18 18:46:25 +09:00
ousttrue
af9e18c09c add BlittableExternalData.Paused 2024-07-18 18:46:25 +09:00
ousttrue
42a3014e7a UniGLTFLogger を追加
[System.Diagnostics.Conditional("VRM_DEVELOP")] により呼び出しが消滅する。
2024-07-16 15:48:50 +09:00
ousttrue
5269bb9b8a remove unused 2024-07-11 19:12:28 +09:00
ousttrue
2ff310a070 VRM10SpringBoneJoint.s_activeForGizmoDraw to InternalsVisibleTo
"DrawColliders"
2024-07-11 19:09:35 +09:00
ousttrue
5b954dbb7c add toggle DrawCollider 2024-07-11 18:20:32 +09:00
ousttrue
7d3aa056ce collider のカスタムエディターで無効なパラメーターを表示しない 2024-07-11 15:11:34 +09:00
ousttrue
5500fd5051 fix plane offset. magenta 2024-07-11 14:12:07 +09:00
ousttrue
a30dfd363b spring と 関連のある collider も描画する 2024-07-11 14:12:07 +09:00
ousttrue
8c09ff60df isLastTail 2024-07-11 14:12:07 +09:00
ousttrue
a87ceb0fd4 VRM10SpringBoneJoint の Gizmo を Spring 単位にまとめて描画するようにした
末端の joint を選択していても 根元から一連の joint を描画し、
末端を別色で highlight する。
2024-07-11 14:12:07 +09:00
ousttrue
e85b246ce4 remove Vrm10Instance.OnDrawGizmosSelected
https://github.com/vrm-c/UniVRM/issues/2325
2024-07-11 14:12:07 +09:00
ousttrue
2effde9c1f show spring info on VRM10SpringBoneJointEditor 2024-07-11 14:12:07 +09:00
ousttrue
4ffb659992 impl capsule inside 2024-06-06 14:24:43 +09:00
ousttrue
24985e21a7 CapsuleInside gizmo, import, export 2024-06-06 14:09:32 +09:00
ousttrue
94e732d83a impl plane collider 2024-06-06 13:45:39 +09:00
ousttrue
a3564ec859 export 2024-06-05 16:09:43 +09:00
ousttrue
a71aa9fd8f import 2024-06-05 15:54:03 +09:00
ousttrue
31fac6cad6 VRMC_springBone_extended_collider gizmo 2024-06-05 14:59:43 +09:00
LanternaBlender
3185e02518 Show collider identification name on inspector 2024-05-31 20:04:54 +09:00
Isamu Mogi
698a4dbc8e Unity2022.2.4以下と2021.3.17以下でFindObjectBy系APIが存在しないのに対応
FindObjectsBy系のAPIは、UniVRMがサポートしているUnityのうち、次の範囲のバージョンには存在しない。

- 2021.3.0~2021.3.17
- 2022.1.0~2022.1.24
- 2022.2.0~2022.2.4

そのため、該当するバージョンのUnityではコンパイルエラーが発生していた。UNITY_2022_3_OR_NEWERで分岐することで、旧APIと新APIを安全に選択するようにした。

厳密にはUNITY_2022_2_5_OR_NEWERを用いたいが、そのようなシンボルは存在していなかった。
2024-05-14 20:15:56 +09:00
Isamu Mogi
018aec1fab Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応
Unity 2023.1以降のバージョンでUnityEngine.Object.FindObjectsOfType系APIがObsoleteになり、次の警告が発生していました。

```
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(250,24): warning CS0618: 'Object.FindObjectOfType<T>()' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(208,31): warning CS0618: 'Object.FindObjectsOfType<T>()' is obsolete: 'Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not.  FindObjectsOfType sorts the results by InstanceID but if you do not need this using FindObjectSortMode.None is considerably faster.'
```

代わりにFindObjectsBy系APIを使うようにしました。これはUnity 2021.3にも存在しているので、そのまま使うことができました。

FindObjectOfType()とFindFirstObjectByType()の違いに関してはドキュメントからは読み取れませんでしたが、
Unity-Technologiesgが公開しているUnity 6000のソースコードを見る限り、動作は同一に見えるためそのまま置き換えました。

https://github.com/Unity-Technologies/UnityCsReference/blob/6000.0/Runtime/Export/Scripting/UnityEngineObject.bindings.cs#L586-L602
2024-05-08 03:48:25 +09:00
ousttrue
8741e5e119 Editorスクリプトの配置間違い 2024-03-01 12:54:06 +09:00
ousttrue
712b35c542 inspector の list で VRM10SpringBoneColliderGroup の名前を表示する 2024-02-27 19:20:11 +09:00
ousttrue
a552230f4c headless mesh を destroy 対象に追加する 2024-02-26 16:12:06 +09:00
ousttrue
a4758d1b4d auto で headless を作成する必要がなかったときの fallback は both の挙動 2024-02-26 16:11:22 +09:00
Fuji Sunflower
e4474a3331
Add RequireComponent
Add Humanoid as RequireComponent to Vrm10Instance.cs
2024-02-17 15:25:09 +09:00
tsgcpp
f3e0e8e417 fix: Skip Vrm10Runtime instantiation after the GameObject is destroyed 2024-01-06 00:16:03 +09:00
ousttrue
225d58cf12 fix 4 indent 2023-11-13 19:05:32 +09:00
ousttrue
d4ca89562e fix BoneWeights in MeshIntegration 2023-11-06 20:58:27 +09:00
ousttrue
12c5f9a7d2 CreateErasedMeshAsync 2023-11-01 20:37:14 +09:00
ousttrue
acc47ef119 WIP generate FirstPerson headless model 2023-11-01 20:03:59 +09:00
Fuji Sunflower
ad11124329 Fix null exception
Fix null exception by Humanoid
2023-10-28 20:12:52 +09:00
Masataka SUMI
b93dac4c46 Fix outer and inner limitation of eye direction in vrm-1.0 2023-10-11 18:40:22 +09:00
Masataka SUMI
a4dea7d279 Refactoring 2023-10-11 18:38:50 +09:00
Masataka SUMI
21c457a868 Fix incorrect eye direction control at VRM 1.0 2023-10-11 18:31:20 +09:00
ousttrue
ba77522f62 rename TPose to Vrm10TPose 2023-08-21 17:03:18 +09:00
ousttrue
1d05e845c9 sample の retarget を更新。
TPose を表現する empty クラスを追加。
2023-08-21 16:25:49 +09:00
ousttrue
f514e89962 LookAtEyeDirection を Yaw, Pitch 二値に縮小。
左目と右目の独立はまたの機会に・・・
2023-08-18 18:13:02 +09:00
ousttrue
0c4f768eb2 LookAtInput get, set 2023-08-18 18:03:51 +09:00