Commit Graph

1343 Commits

Author SHA1 Message Date
Masataka SUMI
2e3a60f81e Ignore using Task<T>.Wait() 2024-07-28 19:23:07 +09:00
ousttrue
7ef4f50558 Humanoid.Get_GetBoneTransform を追加
Animator.GetBoneTransform のために GetComponent しているところの Export Error を修正するついでに、
Animator.GetBoneTransform と Humanoid.GetBoneTransform 両対応とした(vrm-0.x と vrm-1.0 両方)。
2024-07-25 14:28:59 +09:00
ousttrue
b852819b70 error message 2024-07-25 14:07:36 +09:00
ousttrue
be20563059 GetComponent を置き換え。
TryGetComponent
GetComponentOrThrow(拡張関数)
GetComponentOrNull(拡張関数)

sample と test は据え置き
2024-07-24 22:09:30 +09:00
ousttrue
652ac53cc9 fix AnimationValidator
#2319 これかも
2024-07-24 20:30:44 +09:00
ousttrue
ca0e062e9c use TryGetComponent 2024-07-24 20:18:44 +09:00
ousttrue
6c929f67f0 attach されていない場合でも is 演算子が true になって後続で例外になる 2024-07-24 19:42:34 +09:00
Masataka SUMI
da1d48ac22 update package.json management 2024-07-23 20:21:41 +09:00
Masataka SUMI
47681f7677 Merge branch 'master' of https://github.com/vrm-c/UniVRM into disassemblyVrmShaders6 2024-07-23 20:00:33 +09:00
Masataka SUMI
05a1e7a9cc
Merge branch 'master' into disassemblyVrmShaders5 2024-07-23 19:56:12 +09:00
ousttrue
0f704c7142 URP プロジェクトで matcap を含むモデルを Editor import するとエラーになるのを回避(暫定)
とりえあずエラー回避。
`Exception: UnityEngine.Texture.Sphere is not converted`
mtoon URP "MToon" shader is not ready. import fallback to unlit
2024-07-23 15:34:10 +09:00
ousttrue
2f38b0a902 UniVRM-0.124.2 2024-07-23 12:41:47 +09:00
Masataka SUMI
e9da5e2b7b mv VRMShaders namespace to UniGLTF 2024-07-20 23:47:45 +09:00
Masataka SUMI
d0dcdf09fc UniHumanoid can't depends on UniGLTF 2024-07-20 23:20:37 +09:00
Masataka SUMI
5f8c930031 mv AwaitCaller definitions from VRMShaders to UniGLTF 2024-07-20 23:14:40 +09:00
Masataka SUMI
00c74f684f mv top level IO definitions from VRMShaders to UniGLTF 2024-07-20 23:13:34 +09:00
Masataka SUMI
5cdec669a0 mv TextureIO from VRMShaders to UniGLTF 2024-07-20 23:08:55 +09:00
Masataka SUMI
45cb2a04fe mv MaterialIO from VRMShaders to UniGLTF 2024-07-20 23:00:12 +09:00
Masataka SUMI
246e926b95 mv AnimationIO from VRMShaders to UniGLTF 2024-07-20 22:55:53 +09:00
Masataka SUMI
f544ac8041 remove prefix VRMShaders.* from UniUnlit asmdef files. 2024-07-20 22:12:06 +09:00
Masataka SUMI
73bca6447b mv UniUnlit from VRMShaders to UniGLTF 2024-07-20 22:07:49 +09:00
ousttrue
2b4f4bc343 とりあえず ILogHandler に対応。更なる拡張は使うときに。 2024-07-16 16:18:26 +09:00
ousttrue
42a3014e7a UniGLTFLogger を追加
[System.Diagnostics.Conditional("VRM_DEVELOP")] により呼び出しが消滅する。
2024-07-16 15:48:50 +09:00
Masataka SUMI
7be5a204f3 maintain ExtensionSupportFlags when migrating a vrm0.x model. 2024-07-11 00:07:30 +09:00
ousttrue
eec1a275d0 UniVRM-0.124.1 2024-07-04 13:50:16 +09:00
ousttrue
54e2629ce6 avoid -1 in skin.joints 2024-07-03 21:10:04 +09:00
ousttrue
f1fb4cc7ea bake 時に SkinnedMeshRenderer.bones に null が含まれていても通す 2024-07-03 21:07:15 +09:00
ousttrue
ae8541e3d6 skinning で使っているボーンを削除してから export したときの import error の修正 2024-07-03 21:02:52 +09:00
ousttrue
727945c8f6 boneWeights コピー忘れ 2024-07-03 19:34:50 +09:00
ousttrue
12208de468 VRM-1.0 の export 時に Animator の代替に UniHumanoid.Humanoid を使う 2024-07-03 16:16:13 +09:00
ousttrue
4f94362b56 UniVRM-0.124.0 2024-06-25 13:41:57 +09:00
ousttrue
b69a58997e keep BlendShape normal 2024-06-24 20:26:13 +09:00
ousttrue
a0ea3ad2e5 cleanup 2024-06-24 17:54:14 +09:00
ousttrue
85bfe4bcd1 fix blendshape bake.
簡単になるように処理順をみなおし。

            var mesh = src.sharedMesh.Copy(false, ".baked");
            src.BakeMesh(mesh);
            CopyBlendShapes(src, mesh);

            var m = Matrix4x4.TRS(Vector3.zero, src.transform.rotation, Vector3.one);
            mesh.ApplyMatrixAlsoBlendShapes(m); // 最後の一回だけまとめて matrix を適用する
2024-06-24 17:39:27 +09:00
ousttrue
e725329648 fix editor test for null material export.
related #2313
2024-06-17 13:57:22 +09:00
ousttrue
999714e372
Merge pull request #2316 from ousttrue/version/v0_123_0
UniVRM-0.123.0
2024-06-08 01:11:55 +09:00
ousttrue
e7d850f51d use DefaultMaterial if gltfPrimitive.material is not exists or -1 2024-06-07 18:19:01 +09:00
ousttrue
3a754d7114 UniVRM-0.123.0
Sample更新あり。
2024-06-07 17:07:10 +09:00
ousttrue
33d8d42516 glTFPrimitives.material を int? に変更 2024-06-07 17:02:55 +09:00
ousttrue
c7f2104d2d MATERIALS_CONTAINS_NULL を warn に格下げ 2024-06-07 16:58:44 +09:00
Masataka SUMI
645e254744 load KHR_texture_basisu as default (but not implemented now) 2024-06-04 17:32:43 +09:00
shino
d29adf0a9d No access to mesh.vertices and mesh.normals and use the arrays around 2024-05-31 19:10:01 +09:00
shino
12df224409 Change Aggregate to AccessorsBounds.UpdatePositionAccessorsBounds 2024-05-31 19:05:19 +09:00
ousttrue
bcafcfd4a9 UniVRM-0.122.0 2024-05-10 15:09:56 +09:00
Isamu Mogi
c1d7a4b099 Unity2023.1以降でGetScriptingDefineSymbolsForGroup系APIがObsolete警告が出るのに対応
Unity 2023.1以降のバージョンでPlayerSettings.GetScriptingDefineSymbolsForGroup()系の関数がObsoleteになり、次の警告が発生していました。

```
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(109,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(116,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(117,13): warning CS0618: 'PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup, string)' is obsolete: 'Use SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(125,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(126,13): warning CS0618: 'PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup, string)' is obsolete: 'Use SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines) instead'
```

代わりにGetScriptingDefineSymbols系APIを使うようにしました。これはUnity 2021.3にも存在しているので、そのまま置き換えることができました。
2024-05-03 00:35:26 +09:00
ousttrue
469c973a04
Merge pull request #2281 from Santarh/materialDescriptorGeneratorDetemine
If MaterialDescriptorGenerator is not specified, automatically determine it.
2024-04-30 19:43:30 +09:00
Masataka SUMI
9ce2304a53 If MaterialDescriptorGenerator is not specified, automatically determine it. 2024-04-30 16:35:48 +09:00
Masataka SUMI
578ad66c78 Define ExtensionSupportFlags for KHR_texture_basisu 2024-04-30 16:09:12 +09:00
Masataka SUMI
2c84452e3b
Create UnityPackage Action で UnityPackage をビルドして artifact に upload する (#2272) 2024-03-28 14:37:21 +09:00
Masataka SUMI
69c518caee
Create UnityPackage Action でとりあえず EditMode Tests まで走らせる (#2271) 2024-03-27 22:18:29 +09:00