Commit Graph

404 Commits

Author SHA1 Message Date
Masataka SUMI
a5f75194c0 mv VRM0.X material io files from VRMShaders.VRM.IO.Runtime to VRM 2024-07-18 23:51:13 +09:00
ousttrue
42a3014e7a UniGLTFLogger を追加
[System.Diagnostics.Conditional("VRM_DEVELOP")] により呼び出しが消滅する。
2024-07-16 15:48:50 +09:00
Isamu Mogi
de61e50493 VRM0のMToonエクスポート時にノーマルマップテクスチャをglTFのマテリアルにもエクスポートするようにした 2024-07-05 20:23:17 +09:00
ousttrue
768b77b49f avoid null glTF_VRM_HumanoidBone.node 2024-07-03 21:14:00 +09:00
ousttrue
ae8541e3d6 skinning で使っているボーンを削除してから export したときの import error の修正 2024-07-03 21:02:52 +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
Masataka SUMI
9ce2304a53 If MaterialDescriptorGenerator is not specified, automatically determine it. 2024-04-30 16:35:48 +09:00
ousttrue
7e07c5806e blendshape rotation scaling がまとめて処理される
blendshape を除外するには処理前にすべて 0 に戻す処理が必要。
前はやっているところもあったのだけど、
undo とか事後に値を復帰させるか否かなど、
選択肢とトレードオフがあります。
2024-02-05 16:41:16 +09:00
ousttrue
12db3507be rotation もしくは scaling だけを freeze するのは難しかった。
両方やるかやらないかに修正。
2024-02-05 16:21:30 +09:00
ousttrue
29c6ad9c33 VRMFirstPerson.CopyTo skip null 2024-01-26 14:38:32 +09:00
ousttrue
7cf69ad57a update comment of VRMBoneNormalizer.Execute 2024-01-09 13:40:41 +09:00
ousttrue
30f893fa1b avatar 代入の workaround 2024-01-05 15:08:43 +09:00
ousttrue
06d77d6d6e fix warnings 2023-12-12 15:37:19 +09:00
ousttrue
6e13c87c00 add renderer without firstperson setting 2023-12-08 17:47:34 +09:00
ousttrue
fb7cb163b1 fix VrmMeshIntegratorWizard.WriteAssets 2023-12-04 17:55:36 +09:00
ousttrue
b5a7c1b13b remove GltfMeshUtility.ForceUniqueName.
automatically force when createAvatar
2023-12-04 17:04:44 +09:00
ousttrue
e3404e1f16 refactor MeshUtility.Process params 2023-12-04 17:00:15 +09:00
ousttrue
00e1278123 fix NormalizeNoneSkinnedMesh 2023-12-01 17:17:48 +09:00
ousttrue
f84a6ccb73 fix GltfMeshUtility.WriteAssets 2023-12-01 17:06:31 +09:00
ousttrue
f8f27d0619 prefab と runtime で整合性。
- prefab 時は instance 化する。統合グループをの内容をインスタンス後のもので置き換える
- 未使用削除
2023-11-29 20:02:46 +09:00
ousttrue
32af053a62 vrm-0.x firstperson 2023-11-28 18:20:43 +09:00
ousttrue
4ec5d54588 bake mesh inplace 2023-11-27 20:05:01 +09:00
ousttrue
ff68649036 MeshAttachInfo 2023-11-27 18:58:50 +09:00
ousttrue
16d17a7951 separate file 2023-10-26 16:28:51 +09:00
ousttrue
787dada27e AvatarDescription.AddAnimator to CreateAvatarForCopyHierarchy 2023-10-26 14:56:23 +09:00
ousttrue
ced5dc8918 implement FreezeScaling 2023-10-25 21:50:06 +09:00
ousttrue
8ff3faa857 rename UniVrmPackageVersion to PackageVersion 2023-10-20 19:16:20 +09:00
ousttrue
443e0048bd VRMVersionをリネームして場所移動。VRM10から参照できるようになる。 assets.generator に使う。 2023-10-20 18:10:42 +09:00
ousttrue
4896e783da UniVRM-0.115.0 2023-10-12 13:38:35 +09:00
ousttrue
ebb7ef67c0
Merge pull request #2148 from Santarh/vrm0xBlendshapePreview
[VRM0.x] Fix wrong preview results in editor inspector when a vrm blendshape material target is "*_ST_S" or "*_ST_T"
2023-10-11 20:03:45 +09:00
Masataka SUMI
1360834711 [VRM0.x] Fix wrong preview results in editor inspector when a material target is "*_ST_S" or "*_ST_T" 2023-08-30 17:00:58 +09:00
ousttrue
0d8d6c538d UniVRM-0.114.0 2023-08-21 18:47:27 +09:00
Masataka SUMI
15f9de1101
Merge pull request #2114 from CrucibleNetworksLtd/auto-detect-render-pipelines
Auto detect render pipelines
2023-08-15 12:33:52 +09:00
thoxey
88588bf111 Adds a new trio of utility classes
These allow for the creation of materialdescriptorgenerators that use the current render pipeline
2023-07-25 12:23:25 +01:00
ousttrue
760a4aee3c UniVRM-0.113.0 2023-07-24 20:45:26 +09:00
ousttrue
e8861704d2 UniVRM-0.112.0 2023-06-09 17:13:42 +09:00
ousttrue
48ebe7e081
Merge pull request #2064 from ousttrue/fix/broken_springbone_no_throw
springbone の import で throw しない
2023-06-06 13:04:08 +09:00
ousttrue
3f3f97d4e9
Merge pull request #2075 from ousttrue/version/v0_111_0
UniVRM-0.111.0
2023-06-05 20:04:23 +09:00
ousttrue
32bc5d6d86 UniVRM-0.111.0
バージョン番号の更新。サンプルの更新による差分あり。
2023-06-05 17:07:50 +09:00
ousttrue
cd6db6d127 human bone の index が -1 になりうる? 2023-06-05 17:01:32 +09:00
ousttrue
70dbeb1291 add index -1 check 2023-05-15 13:18:47 +09:00
ousttrue
69b952257a VRMSpringUtility.LoadSecondary 関数が throw しないように修正
fix #2023
SpringBone は不完全になるが throw しない。
2023-05-15 13:07:16 +09:00
ousttrue
4c3de71408 UniVRM-0.110.0
sample追加あり
2023-04-12 14:12:03 +09:00
Hans
17b095858d
Add missing menu register 2023-04-09 15:10:11 +08:00
ousttrue
4bfd536e0e UniVRM-0.109.0 2023-03-10 13:58:43 +09:00
amamagi
e663091fee feat: Add ITextureDeserializer parameter to Vrm10.LoadXXXAsync() and VrmUtility.LoadXXXAsync() 2023-01-11 11:43:58 +09:00
0b5vr
cd88d0744f feature (VRM0, SpringBone): add limit break slider to spring bone joint properties 2022-12-08 20:40:15 +09:00
ousttrue
e16dd2f8c0
Merge pull request #1943 from ousttrue/version/v0_108_0
UniVRM-0.108.0
2022-12-05 20:35:37 +09:00
Masataka SUMI
0a7ac08dac specify a Shader instead of a string in MaterialDescriptor. 2022-12-05 17:21:20 +09:00