Commit Graph

1324 Commits

Author SHA1 Message Date
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
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
ousttrue
3e0c24c0e0 UniVRM-0.121.0 2024-03-19 19:06:40 +09:00
ousttrue
adab235990 impl FreezeMesh for glTF export 2024-03-08 16:04:04 +09:00
ousttrue
1329be9662 impl onAddCallback, onRemoveCallback 2024-03-06 17:42:36 +09:00
ousttrue
38d4f3e69b sample 更新ひとつあり。 2024-02-29 20:25:09 +09:00
ousttrue
a552230f4c headless mesh を destroy 対象に追加する 2024-02-26 16:12:06 +09:00
ousttrue
276ff8cbf8 UniVRM-0.119.0 2024-02-08 20:54:55 +09:00
ousttrue
ffcf2095ee
Merge pull request #2240 from ousttrue/fix/normalize_blendshape_with_root_scaling
hierarchy にスケーリングがある場合の blend shape の正規化修正
2024-02-08 20:50:33 +09:00
ousttrue
2feda7742b
Merge pull request #2237 from ousttrue/fix/integrate_blendshape_weight_1_100
[MeshUtility] 統合時のblendshapeweight定数の修正
2024-02-08 17:05:54 +09:00
ousttrue
c115ed87f1 うーん 2024-02-08 16:47:08 +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
6978be42b4 unity frameWeight is 100 2024-02-05 15:39:56 +09:00
ousttrue
1c92ebbd52 UniVRM-0.118.0 2024-01-23 18:48:35 +09:00
ousttrue
c74440086b add VRMShaders dependency to UniHumanoid.asmdef 2024-01-23 13:15:48 +09:00
ousttrue
9dc2802621 add ErrorHandling for vrma importer 2024-01-19 15:29:45 +09:00
ousttrue
eb4319c1c2
Merge pull request #2223 from tsgcpp/feature/remove_log_in_ondestroy
[提案] RuntimeGltfInstance.OnDestroy時のDebug.Logを削除する
2024-01-16 20:34:32 +09:00
ousttrue
a71e60ce30 UniVRM-0.117 2024-01-09 14:33:17 +09:00
tsgcpp
07970b7863 feat: Remove a log in RuntimeGltfInstance.OnDestroy 2024-01-06 00:17:01 +09:00
ousttrue
9c22dc58b5 move asset reload to editor 2023-12-12 16:31:04 +09:00