Commit Graph

6135 Commits

Author SHA1 Message Date
AoiKamishiro
e477cf9fdf 未使用usingの削除 2025-07-01 11:51:05 +09:00
AoiKamishiro
3f9301824d BlittableTransformのアライメント最適化 2025-07-01 11:50:58 +09:00
AoiKamishiro
54b8c0caf1 BlittableSpringのアライメント最適化 2025-07-01 11:25:19 +09:00
AoiKamishiro
cf488a6524 可読性の向上 2025-07-01 10:21:54 +09:00
AoiKamishiro
f92ee46451 BlittableTransformの最適化 2025-07-01 09:59:08 +09:00
AoiKamishiro
46f9d6b52d 演算処理をMathHelperへ移行 2025-07-01 09:59:08 +09:00
AoiKamishiro
da1bdcb728 Mathematicsパッケージ演算をユーティリティクラスに分離 2025-07-01 09:59:08 +09:00
AoiKamishiro
022e23b6d5 BlittableTransformの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
e5f6819b6d BlittableSpringの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
a447433f5c BlittableSpanの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
4cf52f7b31 BlittableModelLevelの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
6c741cf348 BlittableJointMutableの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
e1bded5bd0 BlittableJointImmutableの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
24f5b10a63 BlittableColliderの最適化 2025-06-30 02:40:04 +09:00
AoiKamishiro
8ff75be0f5 mathematicsパッケージの参照追加 2025-06-30 02:40:04 +09:00
AoiKamishiro
9b485510fb SpringBoneJobsアセンブリのBurst対応追加 2025-06-30 02:40:03 +09:00
ousttrue
cff9aa75b7
Merge pull request #2685 from notargs/use_materials
MaterialValueBindingMergerについて、sharedMaterialsではなくmaterialsを使用するように変更
2025-06-26 21:51:22 +09:00
notargs
a5042629d7 名前を揃えるように変更 2025-06-26 21:42:45 +09:00
notargs
498fb59e1c コメントを更新 2025-06-26 21:26:14 +09:00
notargs
21155c332f RuntimeImportの際はmaterialを複製しないように修正 2025-06-26 21:23:16 +09:00
notargs
70c0c40fb8 TODOを追記 2025-06-26 21:05:07 +09:00
notargs
3dd21ea354 Disposeを追記 2025-06-26 19:15:17 +09:00
notargs
176ac7edf6 MaterialValueBindingMergerについて、sharedMaterialsではなくmaterialsを使用するように変更 2025-06-26 19:08:11 +09:00
ousttrue
07d2e7d0b8
Merge pull request #2681 from ousttrue/v0_129_2
[Unity-2022.3.52f1] UniVRM-0.129.2
2025-06-20 13:37:39 +09:00
ousttrue
e12f875bb3 UniVRM-0.129.2 2025-06-20 13:24:10 +09:00
ousttrue
86b13deb18 Unity-2022.3.52f1 2025-06-20 13:21:48 +09:00
ousttrue
ba092512c0
Merge pull request #2676 from ousttrue/version/v0_130_0
UniVRM-0.130.0
2025-06-12 15:09:34 +09:00
ousttrue
736740c157 UniVRM-0.130.0 2025-06-12 13:06:30 +09:00
ousttrue
b54d60576d
Merge pull request #2670 from matsutaka-pxv/avoid-toarray
UniGLTF.MeshData.ImportMeshIndependentVertexBufferのGC Allocを削減
2025-06-11 15:51:59 +09:00
ousttrue
56c2094b8a
Merge branch 'master' into avoid-toarray 2025-06-11 15:49:38 +09:00
ousttrue
7faed7e86e
Merge pull request #2672 from ousttrue/fix/SafeGetInitialPose
nullcheck つきの初期姿勢
2025-06-05 17:26:42 +09:00
ousttrue
dab2e2de3f nullcheck つきの初期姿勢 2025-06-05 12:46:02 +09:00
ousttrue
0b5ea9bbc2
Merge pull request #2669 from ousttrue/fix/unity6
Unity6.0で開いて変わったところ
2025-05-30 15:13:47 +09:00
ousttrue
8a35b6db58 compatibility mode is off 2025-05-28 17:49:51 +09:00
ousttrue
6373c8eb73 Unity6.0で開いて変わったところ 2025-05-28 14:46:23 +09:00
matsutaka
8503e3c6c9 chore: ImportMeshIndependentVertexBufferのGC Allocを削減
以下のようなListへの追加処理について
blendShape.Positions.AddRange(array.Select(...).ToArray())
.ToArray() および AddRange() によって大量の GC Alloc が発生する場合がある。

これを軽減するため、以下のような変更を行う
(1) .ToArray() を削除
(2) List の Capacity を事前に算出し、AddRange 時の GC Alloc を削減
(3) BlendShape の position, normal, tangents の Capacity を独立して指定できるコンストラクタを追加
2025-05-28 13:26:19 +09:00
ousttrue
a8f486e0b6
Merge pull request #2664 from Santarh/mtoonVisualArtifact
fix(tangent): binarize tangent.w to ±1 to prevent NaNs and artifacts
2025-05-28 12:36:19 +09:00
ousttrue
926fb460cf
Merge branch 'master' into mtoonVisualArtifact 2025-05-28 12:35:30 +09:00
Masataka SUMI
d7a2ddf9dc
fix(tangent): binarize tangent.w to ±1 to prevent NaNs and artifacts
Unity’s Mesh.RecalculateTangents() sometimes generates triangles whose
three vertices disagree on tangent.w (+1 vs –1). The mixed values are
linearly interpolated in the fragment shader; at the midpoint w≈0,
bitangent normalization hits a divide-by-zero, producing NaNs and
visible glitches (notably on Android GPUs).
2025-05-15 23:38:06 +09:00
ousttrue
96a7b03851
Merge pull request #2663 from ousttrue/version/v0_129_1
Some checks failed
Expired Issues Closure / cycle-weekly-close (push) Has been cancelled
UniVRM-0.129.1
2025-05-15 15:25:37 +09:00
ousttrue
d113c030a2 UniVRM-0.129.1 2025-05-15 15:04:49 +09:00
ousttrue
9481ff6e55
Merge pull request #2658 from ousttrue/fix/strictry_empty
[package] 厳格に空の状態から依存を解決できるようにする
2025-05-15 15:02:51 +09:00
ousttrue
b1f14473b8
Merge branch 'master' into fix/strictry_empty 2025-05-15 15:02:35 +09:00
ousttrue
fa576c7242
Merge pull request #2662 from matsutaka-pxv/reuse-positions
chore: Reuse `positions` to eliminate redundant `ToArray()`
2025-05-15 15:00:52 +09:00
ousttrue
b2c38ee585
Merge branch 'master' into reuse-positions 2025-05-15 15:00:29 +09:00
ousttrue
7792507172
Merge pull request #2659 from ousttrue/fix/initpose_without_RuntimeGltfInstance
RuntimeGltfInstance が無い場合に NullReferenceException を修正
2025-05-15 15:00:10 +09:00
ousttrue
766d2f2cae "com.unity.test-framework": "1.4.6"
from "com.unity.feature.development": "1.0.1"
2025-05-15 14:52:17 +09:00
matsutaka
95023ed299 chore: Reuse positions to eliminate redundant ToArray()
Since local variable positions[] always contains valid result of
blendShape.Positions.ToArray(), we can reuse it to eliminate
redundant ToArray() which also causes extra GC Alloc.

ローカル変数 positions[] は常に正しい blendShape.Positions.ToArray() の
結果を保持しているので、これを再利用することで余分な ToArray() および
GC Alloc を抑制することができます。
2025-05-15 10:43:42 +09:00
ousttrue
271d2ae6b6 生成元を修正 2025-05-14 13:27:55 +09:00
ousttrue
7e819b8019 RuntimeGltfInstance が無い場合に NullReferenceException を修正 2025-05-12 19:54:56 +09:00