Commit Graph

2684 Commits

Author SHA1 Message Date
ousttrue
730197da1e fix ! 2022-02-28 17:33:15 +09:00
ousttrue
8e4a8c517a Not throw if other than MeshRenderer and SkinnedMeshRenderer 2022-02-28 17:22:59 +09:00
ousttrue
72d25d8b66 UnityColorSpaceSettingsValidator VRM_USE_GAMMA to UNIGLTF_USE_GAMMA_COLORSPACE. 2022-02-28 16:51:00 +09:00
ousttrue
7852b70b0f remove #if
minimum version is Unity-2019.4
2022-02-28 15:59:12 +09:00
ousttrue
315fbbe935 VRM_USE_GAMMA 2022-02-28 15:52:25 +09:00
ousttrue
603be0dd2b GltfExportSettings.AnimationExporter to gltfExporter argument 2022-02-28 15:34:37 +09:00
ousttrue
e19ab9808a EditorAnimationExporter 2022-02-28 14:29:56 +09:00
ousttrue
e387eb4de5 VersionDialog 発動 2022-02-24 19:38:08 +09:00
ousttrue
19f47a7d1c RuntimeOnlyAwaitCaller if isPlaying 2022-02-24 19:22:59 +09:00
ousttrue
3756f2a4b0 稀に BlendShape が null の時がある 2022-02-24 19:16:28 +09:00
ousttrue
3c873cdbaa fix await caller. ハイレベルAPI で awaitCaller=null 引き数を受ける関数が、new ImmediateCaller する 2022-02-24 19:15:59 +09:00
ousttrue
7cb05f041d
Merge pull request #1550 from ousttrue/fix/matrix_decompose
System.Numerics.Matrix4x4 to UnityEngine.Matrix4x4
2022-02-24 17:52:10 +09:00
ousttrue
0863bc950c add null check 2022-02-24 15:52:45 +09:00
ousttrue
22dbe1576d System.Numerics.Matrix4x4 to UnityEngine.Matrix4x4 2022-02-24 15:42:57 +09:00
ousttrue
77ecc3d699 UniVRM-0.96.0 2022-02-22 18:47:43 +09:00
ousttrue
a6da3c833d sample を変更に追随 2022-02-22 18:42:57 +09:00
ousttrue
bd97a4f47f
Merge pull request #1545 from ousttrue/fix/new_immediatecaller
remove `awaitCaller ?? new ImmediateCaller()`
2022-02-22 18:20:20 +09:00
ousttrue
884c9ea52e
Merge pull request #1544 from ousttrue/fix/false_other_renderer
false not throw
2022-02-22 18:18:51 +09:00
ousttrue
0f584fb272
Merge pull request #1543 from ousttrue/fix/vrm_not_export_animations
VRM は Animation をエクスポートしない
2022-02-22 18:18:22 +09:00
ousttrue
f49e651590
Merge pull request #1542 from ousttrue/fix10/skip_empty_mesh
skip empty mesh
2022-02-22 18:17:04 +09:00
ousttrue
d498bb1512
Merge pull request #1541 from ousttrue/fix/springbone_gizmo
[SpringBone]非Play時にもSpringのGizmoを表示する
2022-02-22 18:16:32 +09:00
ousttrue
7b377084d1
Merge pull request #1536 from ousttrue/fix10/vrm10viewer_async_toggle
[1.0] サンプルに async togle を追加
2022-02-22 18:16:18 +09:00
ousttrue
7306c72599
Merge pull request #1533 from ousttrue/fix10/setup_from_add_component
add custom editor
2022-02-22 18:14:06 +09:00
ousttrue
c467ede04f
Merge pull request #1531 from ousttrue/fix/system_numerics_to_unityengine
Fix/system numerics to unityengine
2022-02-22 18:13:44 +09:00
ousttrue
1f8a116d3a remove #if UNITY_EDITOR 2022-02-22 17:52:24 +09:00
ousttrue
14367b9846
Merge pull request #1546 from notargs/feature/fix_springbone_bug
VRM1.0でSpringBone.centerが正常に動いていないバグを修正
2022-02-21 20:43:42 +09:00
notargs
e2a2c073c9 Fix springbone center logic 2022-02-21 18:25:00 +09:00
ousttrue
faebd43771 remove awaitCaller ?? new ImmediateCaller()
上流の awaitCaller を下流に使ってないことも修正
2022-02-21 16:47:44 +09:00
ousttrue
15c42eee05 false not throw 2022-02-21 16:30:04 +09:00
ousttrue
1cc152abff add virtual void ExportAnimations 2022-02-21 15:44:57 +09:00
ousttrue
3156d0c74c skip empty mesh 2022-02-21 15:01:26 +09:00
ousttrue
6b54c06b5a add EditorGizmo 2022-02-21 14:24:53 +09:00
ousttrue
e9aa0ce652 remove m_drawGizmo, use OnDrawGizmosSelected 2022-02-21 14:14:13 +09:00
ousttrue
0818851605 add use async toggle to VRM10ViewerUI 2022-02-18 19:57:30 +09:00
ousttrue
429abd358f capacity 2022-02-17 19:40:19 +09:00
ousttrue
48670c4267 後方互換のためのバージョンチェックがループの中にあるのを外に出した。結果をキャッシュした
* List.Assign が遅いようなので書き直し
* Vertices もCapcity計算する
2022-02-17 19:28:07 +09:00
ousttrue
cd123c21ae add custom editor 2022-02-17 17:44:33 +09:00
ousttrue
c6b53148c4 remove unused 2022-02-16 16:52:27 +09:00
ousttrue
37de8f2199 Replace System.Numerics to UnityEngine 2022-02-16 16:38:18 +09:00
ousttrue
258cc1925b
Merge pull request #1527 from ousttrue/fix/index_buffer_bytes
IndexBuffer のとりまわし
2022-02-16 13:50:28 +09:00
ousttrue
f47f754b01 BufferAccessor のカプセル化を推進。カプセル化を破るが使っていないメソッドを削除。近隣の未使用も削除。 2022-02-16 13:46:26 +09:00
ousttrue
72e0a6c952 GetIndicesFromAccessor to GetIndicesFromAccessorIndex. test 修正。 triangle flip しなくなった. および UNSIGNED_BYTE ないところ。 2022-02-16 13:15:21 +09:00
ousttrue
b43acd7b5c
Merge pull request #1528 from ousttrue/fix/scripted_importer_dispose
dispose
2022-02-16 12:48:30 +09:00
ousttrue
c94691ff25 switch throw 2022-02-16 12:47:10 +09:00
ousttrue
48f666939f private setter 2022-02-16 12:46:59 +09:00
Masataka SUMI
fbb20ba648 Truncate SkinnedMeshVertices array, too. 2022-02-15 22:21:12 +09:00
ousttrue
b044dc99a0 merge BufferAccessorAdapter to BufferAccessor. remove unused. 2022-02-15 20:34:23 +09:00
ousttrue
e98e062130 dispose 2022-02-15 19:04:07 +09:00
ousttrue
fb09c3fa6d GltfData.GetIndices の責務を MeshContext に移動
* triangle flip
* concat submesh indices
2022-02-15 18:27:36 +09:00
ousttrue
dac2a5e19e GetIntIndicesFromView return BufferAccessor 2022-02-15 17:31:47 +09:00
ousttrue
115ca18b51 BufferAccessor を UniGLTF に移動 2022-02-15 17:13:26 +09:00
ousttrue
951f22796c
Merge pull request #1523 from ousttrue/fix10/spanlike_to_nativearray
SpanLike を NativeArray で置き換える
2022-02-14 20:14:47 +09:00
ousttrue
b9d81d2cc1 use INativeArrayManager 2022-02-14 19:56:34 +09:00
ousttrue
f6eb38fa4e remove Deconstruct of KeyValuePair 2022-02-14 19:53:16 +09:00
ousttrue
ed40a8e3e2
Merge pull request #1525 from ousttrue/fix/AssignHumanoid_index_check
null index check
2022-02-14 17:25:58 +09:00
ousttrue
6585ad0a98 null index check 2022-02-14 16:42:49 +09:00
ousttrue
379c0de9b6 Dispose 忘れ 2022-02-14 14:23:06 +09:00
ousttrue
570b56a52c Remove unused. 2022-02-14 13:35:20 +09:00
ousttrue
21ac603a31 use INativeArrayManager 2022-02-14 13:22:13 +09:00
ousttrue
ae96708943 remove SpanLike 2022-02-14 13:16:09 +09:00
ousttrue
a83fac8800 INativeArrayManager 2022-02-14 13:10:29 +09:00
ousttrue
b98c2f852f BufferAccessor use NativeArray 2022-02-10 22:23:39 +09:00
ousttrue
abc9bfbe09 Vrm10ImportData use NativeArray 2022-02-10 21:03:22 +09:00
ousttrue
293a49fd31 remove ArraySegmentByteBuffer 2022-02-10 20:39:50 +09:00
ousttrue
505e174f59 IBytesBuffer 2022-02-10 18:55:43 +09:00
ousttrue
bccad49a27 GLTF to Gltf 2022-02-10 18:53:18 +09:00
ousttrue
8d80c32a11 Merge Vrm10ExportData to ExportingGltfData 2022-02-10 18:49:48 +09:00
ousttrue
d183364687
Merge pull request #1519 from ousttrue/fix10/separate_vrm10storage
Vrm10Storageを分解
2022-02-10 16:49:03 +09:00
ousttrue
7483033bc0
Merge pull request #1520 from Santarh/updateHlapi
Define & Implements error & cancel handling explicitly about High-level VRM1.0 Loader API.
2022-02-10 14:53:58 +09:00
Masataka SUMI
6e4ef560fa throw if necessary. 2022-02-10 00:43:15 +09:00
Masataka SUMI
39a11f92f4 VRM10Viewer can handle OperationCanceledException. 2022-02-10 00:27:17 +09:00
Masataka SUMI
24f6184823 Vrm10.LoadAsync passthrough OperationCanceledException. 2022-02-10 00:26:58 +09:00
Masataka SUMI
6421ffb426 fix cancel bug 2022-02-09 23:17:32 +09:00
Masataka SUMI
09ef2b93fc VRM10Viewer can cancel loading. 2022-02-09 23:14:56 +09:00
Masataka SUMI
9e06e955c3 add behaviours about function loading vrm10 has cancelled. 2022-02-09 23:14:29 +09:00
Masataka SUMI
0b77833b49 add comment 2022-02-09 20:44:29 +09:00
Masataka SUMI
23d440829e consider IAwaitCaller on VRM1.0 HLAPI 2022-02-09 20:41:13 +09:00
ousttrue
05928872cd Vrm10Storage を Vrm10ImportData と Vrm10ExportData に分解 2022-02-09 20:36:41 +09:00
Masataka SUMI
a22b4b6f52 fix cancel handling 2022-02-09 20:33:49 +09:00
Masataka SUMI
a6945d79f9 Add a minimum cancellation handling to VRM1.0 HLAPI. 2022-02-09 20:10:15 +09:00
ousttrue
0b25d46b36 static class UriByteBuffer 2022-02-09 19:53:21 +09:00
ousttrue
abd1c5a840 NativeArrayManager.Convert 2022-02-09 19:22:02 +09:00
ousttrue
720f011ae2
Merge pull request #1499 from ousttrue/fix10/simplify_vrmlib
VrmLib の整理
2022-02-09 18:28:00 +09:00
ousttrue
5abfe93e25 UniVRM-0.95.1 2022-02-07 13:31:24 +09:00
ousttrue
141a3c4cec Dispose 呼び忘れ
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
2022-02-07 13:20:20 +09:00
ousttrue
d71792acda
Merge pull request #1505 from ousttrue/fix/position_min_max
POSITION の Accessor に min, max を追加
2022-02-04 20:30:35 +09:00
ousttrue
f0e93bca28 LINQやめ 2022-02-04 20:23:49 +09:00
ousttrue
e22189c7bb UniVRM-0.95.0 2022-02-04 20:09:31 +09:00
ousttrue
48e4d71c43
Merge pull request #1504 from Santarh/fixHlapi
Refactor High-level VRM-1.0 Loading API.
2022-02-04 19:52:58 +09:00
ousttrue
237ca2a303 POSITION の Accessor に min, max を追加
#1492
2022-02-04 19:46:34 +09:00
Masataka SUMI
d5c0d5a484 change name 2022-02-04 19:11:12 +09:00
ousttrue
080f05ef72
Merge pull request #1498 from 0b5vr/constraint-axes
[1.0] Constraint, freezeAxes -> axes
2022-02-04 19:01:41 +09:00
Masataka SUMI
4fefbc38c3 Change High-level VRM-1.0 loading API. 2022-02-04 18:54:58 +09:00
0b5vr
c5d330626d refactor (1.0, constraint): rename AxesMaskExtensions.Freeze -> Mask 2022-02-04 18:51:47 +09:00
ousttrue
e67448c817
Merge pull request #1503 from ousttrue/fix/gltfdata_dispose
GltfData.Dispose の呼び忘れを修正
2022-02-04 17:45:53 +09:00
ousttrue
ea53893a52
Merge pull request #1501 from 0b5vr/springbone-null
[1.0] don't export the springBone extension if there are no colliders and springs
2022-02-04 17:44:01 +09:00
ousttrue
7ce3df2a66
Merge pull request #1500 from 0b5vr/specversion
fix: add specVersion to spring bone and node constraint
2022-02-04 17:42:18 +09:00
Masataka SUMI
5d9368f919 mv Vrm10Utility to Vrm10 2022-02-04 17:22:58 +09:00
Masataka SUMI
02427e630e VRM10Utility can receive CancellationToken 2022-02-04 17:13:47 +09:00
Masataka SUMI
bb1c3d4cc1 fix comments 2022-02-04 17:12:03 +09:00
Masataka SUMI
77fbb6ff77
Merge pull request #1497 from ousttrue/fix10/vrm10data_api
Fix10/vrm10data api
2022-02-04 16:57:54 +09:00
ousttrue
d610c84751 neutral の修正漏れ 2022-02-04 16:35:30 +09:00
ousttrue
285e393ca8 fix Dispose 2022-02-04 16:34:18 +09:00
ousttrue
0d93bab539 using 2022-02-04 16:33:54 +09:00
ousttrue
a7fda8d04d unittest の Dispose 呼び忘れを修正 2022-02-04 16:33:30 +09:00
0b5vr
14d8aeeece fix (1.0, springBone): don't export the springBone extension if there are no colliders and springs 2022-02-04 15:47:19 +09:00
0b5vr
ede3a4143c fix: add specVersion to spring bone and node constraint 2022-02-04 15:32:46 +09:00
ousttrue
4bb2cfaf59 remove unused 2022-02-04 15:04:56 +09:00
ousttrue
b48c8707d8 コンストラクターを上の方に 2022-02-04 13:42:00 +09:00
ousttrue
6905f85284 NativeArrayManager class を切り出し 2022-02-04 13:40:05 +09:00
0b5vr
67d00a496a change (1.0, constraint): default value of axes should enable all axes 2022-02-04 13:27:21 +09:00
0b5vr
d9d9e13901 change (1.0, constraint): freezeAxes -> axes
See: https://github.com/vrm-c/vrm-specification/pull/352
2022-02-04 12:33:01 +09:00
ousttrue
02c320f374 Vrm10Data.ParseOrMigrate を Parse と Migrate の別関数に分割
* Migrateの返り値は呼び出し側にDisposeの責務がある
* Vrm10Utility を Vrm10Data.ParseOrMigrate の代わりに使う
2022-02-03 22:06:06 +09:00
ousttrue
d492118f25 separate MigrationData.cs 2022-02-03 20:32:40 +09:00
ousttrue
0e3bc2848a
Merge pull request #1489 from ousttrue/fix10/fix_migration_meta_firstpersonboneoffset
[1.0] Migrationのエッジケースを修正
2022-02-03 20:24:07 +09:00
ousttrue
b72dce24c2
Merge pull request #1487 from ousttrue/fix10/fix_neutral
Fix10/fix neutral
2022-02-03 20:22:02 +09:00
ousttrue
88fd397148
Merge pull request #1485 from ousttrue/fxi10/update_vrm10data_api
Fxi10/update vrm10data api

この後で、 Parse と Migrate を分割します
2022-02-03 20:21:45 +09:00
ousttrue
62d217993a 同じ対象に対する設定が複数ある場合に先頭のものを採用する 2022-02-02 19:55:28 +09:00
ousttrue
67492239e8 [1.0] Migration
* meta: unknown key で throw せずに warning メッセージ表示に留める
* firstPersonBoneOffset: 無くても動くように修正
* KeyNotFoundException に key.ToString を追加
2022-02-02 13:49:29 +09:00
notargs
13d1af1893 metaファイルの漏れを修正 2022-02-02 13:29:37 +09:00
ousttrue
945873a5b3 neutral 関連個所(シリアライズ周り)を修正 2022-02-01 14:31:51 +09:00
ousttrue
6a4fb470ea [1.0]仕様を更新。Expressoin.Neutral が入ったのに応じて Migration を更新 2022-02-01 14:18:18 +09:00
ousttrue
ab8c19060c コメント修正 2022-01-26 19:57:10 +09:00
ousttrue
ae25b13292 use Vrm10Utility 2022-01-26 19:36:13 +09:00
ousttrue
511aa89dcc Vrm10Data.TryParseOrMigrate の API 変更
* 関連する unittest で Dispose
2022-01-26 18:53:09 +09:00
ousttrue
f9a1c8cb83 null check 2022-01-26 18:04:55 +09:00
ousttrue
33384b5557 vrm-1.0 のマイグレート絡みの Dispose は別 Issue で修正します。API 変更が必用 2022-01-26 14:19:16 +09:00
ousttrue
62356cb57e Test の Dispose が足りないところを修正 2022-01-26 14:17:59 +09:00
ousttrue
163308e2f4 Dispose 上の方 2022-01-26 13:08:32 +09:00
ousttrue
f966abb9e4 NativeArray<byte>? やめ。
* コンストラクターで初期化
* Dispose上の方
2022-01-26 12:49:53 +09:00
ousttrue
6dc449a61d use VrmUtility 2022-01-25 20:02:15 +09:00
ousttrue
dbdb989dad use VrmUtility 2022-01-25 20:00:14 +09:00
ousttrue
7a0e105f61 HighLevel API
とりあえず
2022-01-25 19:55:11 +09:00
ousttrue
684db5091f fix GltfData.Dispose for tests 2022-01-25 19:17:24 +09:00
ousttrue
d6dac4db9c ImporterContext は GltfData.Dispose を呼ばない 2022-01-25 18:38:30 +09:00
ousttrue
a9f1f0a353 CreateNativeArray を遅延 2022-01-25 18:38:12 +09:00
ousttrue
ab0964293f GltfData.Bin を ArraySegment<byte> から NatriveArray<byte> に置き換え。Dispose の責務が発生したが、ImporterContext が Dispose することにした。 2022-01-25 18:03:10 +09:00
ousttrue
64d6a6bde4 add test 2022-01-25 13:35:24 +09:00
ousttrue
509a3cac05
Merge pull request #1479 from notargs/feature/fix_bone_bug
UniGLTFについて、SkinnedMeshRendererかつボーンが存在しないとき、挙動がおかしくなる問題を修正した
2022-01-20 12:37:27 +09:00
notargs
53e98eb5f5 コメント、不要なusingを削除 2022-01-19 18:32:28 +09:00
notargs
9008ec0bf0 SkinnedMeshRendererかつボーンが存在しないとき、挙動がおかしくなる問題を修正した 2022-01-19 18:30:15 +09:00
ousttrue
fd3324494b
Merge pull request #1467 from ousttrue/fix/add_export_progress
Add EditorProgress for GltfExportWindow
2022-01-19 16:26:19 +09:00
Masataka SUMI
0def42eb35 MetallicRougness テクスチャの Export テストの修正 2022-01-19 16:18:44 +09:00
ousttrue
8136543161
Merge pull request #1473 from ousttrue/fix10/expression_migration_fallback
vrm-0.x の仕様で、preset: unknown のときに name を preset として解釈するに対応
2022-01-18 21:33:52 +09:00
ousttrue
3e8a2e7ee0
Merge pull request #1471 from ousttrue/fix/glb_parse_check
glb parse の throw を更新
2022-01-18 21:33:07 +09:00
ousttrue
bc7b6ffda1 Vrm10Importer で Neutral を Custom から救出するコードを追加 2022-01-18 21:07:26 +09:00
ousttrue
7c8bdb86b7
Merge pull request #1474 from ousttrue/version/v0_94_0
UniVRM-0.94.0
2022-01-18 20:50:44 +09:00
ousttrue
cca4a54b0b 同名が複数の時、先に来た方が勝つように修正
コメント増量
2022-01-18 20:50:10 +09:00
ousttrue
7abe05827b ToLowerInvariant 2022-01-18 20:35:01 +09:00
ousttrue
0d0da0bcad GlbParseException を作りました 2022-01-18 20:26:36 +09:00