Commit Graph

4301 Commits

Author SHA1 Message Date
ousttrue
de3c1b48da デバッグ機能の消し忘れ 2022-09-21 15:25:59 +09:00
ousttrue
ed291eaf0f
Merge pull request #1804 from notargs/update_fastspringbone
FastSpringBoneに対し、末端ボーンへの考慮を追加するオプションを追加
2022-09-20 18:06:43 +09:00
ousttrue
dc89cb6aec
Merge pull request #1798 from notargs/fix_1789
頂点レイアウト Issue #1789に対応
2022-09-20 15:48:21 +09:00
ousttrue
184d0bdc74
Merge pull request #1796 from matsutaka-pxv/add-iawaitcaller-to-loadfirstperson
Add IAwaitCaller to VRMImporterContext.LoadFirstPerson
2022-09-20 15:20:33 +09:00
notargs
d66fc2498e FastSpringBoneに対し、末端ボーンへの考慮を追加するオプションを追加しました 2022-09-16 18:30:09 +09:00
ousttrue
be2b05249e
Merge pull request #1802 from ousttrue/doc/v0_103_2
UniVRM-0.103.2 release page
2022-09-16 12:37:07 +09:00
ousttrue
e36561d37f UniVRM-0.103.2 release page 2022-09-15 22:05:00 +09:00
ousttrue
c56327ce6b
Merge pull request #1801 from ousttrue/version/v0_103_2
UniVRM-0.103.2
2022-09-15 13:25:53 +09:00
ousttrue
3077d21c28
Merge pull request #1800 from ousttrue/fix/bone_trait_name
AvatarBuilder.BuildHumanAvatar には隠れたボーン名 HumanTrait.BoneName が必用
2022-09-15 13:25:36 +09:00
ousttrue
e34e06f98a UniVRM-0.103.2 2022-09-15 13:02:58 +09:00
ousttrue
1ef079ca58 コメント追加。Enum.Parse を初期化に移動。 2022-09-15 12:52:56 +09:00
ousttrue
a0ad60240b コード整理 2022-09-14 20:42:45 +09:00
ousttrue
84aee423ac use HumanBodyBones 2022-09-14 20:33:10 +09:00
ousttrue
db33257326 AvatarBuilder.BuildHumanAvatar には隠れたボーン名 HumanTrait.BoneName が必用
HumanBodyBones.ToString != HumanTrait.BoneName であることに注意(指のみ。Space)
2022-09-14 20:05:55 +09:00
notargs
2673380776 Issue #1789に対応 2022-09-14 19:04:30 +09:00
Takayuki Matsuoka
799857bb8b Add IAwaitCaller to VRMImporterContext.LoadFirstPerson
Since we still don't have explicit rule/method to add NextFrameIfTimedOut, this change may seem random.

But we've conducted some benchmarks and profiled them before add these await-s.  These changes ease CPU spikes.
2022-09-14 13:11:23 +09:00
ousttrue
86f945d7c2
Merge pull request #1793 from ousttrue/doc/v0_103_1
release UniVRM-0.103.1
2022-09-13 17:04:18 +09:00
ousttrue
b128757d73 ランタイムロード専用 2022-09-13 16:58:58 +09:00
ousttrue
18e5018c87 release UniVRM-0.103.1 2022-09-13 16:18:03 +09:00
ousttrue
05854863f6
Merge pull request #1792 from ousttrue/version/v0_103_1
UniVRM-0.103.1
2022-09-13 14:42:21 +09:00
ousttrue
7d6f835ffe UniVRM-0.103.1 2022-09-13 14:39:40 +09:00
ousttrue
13011e1144
Merge pull request #1791 from Santarh/fixImageIndexIdentification
Fix a importing error when the model using KHR_texture_basisu extension.
2022-09-13 14:35:15 +09:00
Masataka SUMI
413ed64355 Fix a importing error when the model using KHR_texture_basisu extension. 2022-09-12 22:11:48 +09:00
Masataka SUMI
64d62bb651 fix vrm sample 2022-09-12 22:05:01 +09:00
ousttrue
e9bbbd6bd0
Merge pull request #1790 from Santarh/fixBug
Fix bug of null access when loading vrm1.0 prefab placed in the scene.
2022-09-12 17:58:56 +09:00
Masataka SUMI
ae8d4db6b9 Fix bug of null access when loading vrm1.0 prefab placed in the scene. 2022-09-12 17:55:34 +09:00
ousttrue
34501bb26f
Merge pull request #1788 from 0b5vr/fix-migration
Fix VRM exported from MigrationVrm class (2)
2022-09-09 16:41:29 +09:00
0b5vr
ee3bf2b020 fix Migrate to Vrm1, set texture transform extension properly 2022-09-09 16:36:49 +09:00
ousttrue
370db5e550
Merge pull request #1787 from 0b5vr/fix-migration
Fix VRM exported from MigrationVrm class
2022-09-09 16:33:49 +09:00
ousttrue
bc1d972311
Merge pull request #1785 from 0b5vr/mtoon-1-beta
Fix specVersion of MToon `1.0-draft` -> `1.0-beta`
2022-09-09 13:41:16 +09:00
0b5vr
805397abb2 fix Migrate to Vrm1, set extensionsUsed properly 2022-09-09 12:54:47 +09:00
0b5vr
7c99c16634 fix: Migrate to Vrm1, set missing specVersion and licenseUrl 2022-09-09 12:14:35 +09:00
0b5vr
244e7b1947 refactor: update constraint spec URL on comments 2022-09-09 12:06:45 +09:00
0b5vr
d058be96f6 fix: Fix specVersion of MToon 1.0-draft -> 1.0-beta 2022-09-09 11:35:01 +09:00
ousttrue
e1a24eceaf
Merge pull request #1783 from ousttrue/doc/v0_103_0
release UniVRM-0.103.0
2022-09-08 20:18:52 +09:00
ousttrue
73f3f88494 release UniVRM-0.103.0 2022-09-08 19:34:19 +09:00
ousttrue
faa1dcf62f
Merge pull request #1782 from ousttrue/fix/SimpleViewer_null
add LoadPathAsync
2022-09-08 18:58:04 +09:00
ousttrue
3d1303759d add LoadPathAsync 2022-09-08 18:50:37 +09:00
ousttrue
b3a0cb3336
Merge pull request #1773 from ousttrue/version/v0_103_0
UniVRM-0.103.0
2022-09-08 18:07:01 +09:00
ousttrue
beb0f79f6a
Merge pull request #1780 from matsutaka-pxv/optimize-bonelimit-tohumanbonename
Optimize BoneLimit.ToHumanBoneName
2022-09-08 18:06:18 +09:00
Masataka SUMI
2f7ea945bb
Merge pull request #1781 from matsutaka-pxv/iawaitcaller-nextframe-iftimedout
BREAKING CHANGE: Add interface method IAwaitCaller.NextFrameIfTimedOut which invokes NextFrame if timed out
2022-09-08 18:05:59 +09:00
Takayuki Matsuoka
a68d0122ce BREAKING CHANGE: Introduce NextFrameIfTimedOut as a new interface method of IAwaitCaller
This is a breaking change since it introduces new interface method to IAwaitCaller.

----

NextFrameIfTimedOut() is added to IAwaitCaller.  The following inheritors also introduce the method.

- ImmediateCaller.NextFrameIfTimedOut() just invokes NextFrame().
- RuntimeOnlyAwaitCaller.NextFrameIfTimedOut() invokes NextFrame() if timed out.  Otherwise, do nothing.
- RuntimeOnlyNoThreadAwaitCaller.NextFrameIfTimedOut() works same as RuntimeOnlyAwaitCaller.

Constructor of RuntimeOnlyAwaitCaller and RuntimeOnlyNoThreadAwaitCaller
now take argument of timeout in seconds.  The default value is 1/1000 (1 milliseconds).

See also:
https://github.com/vrm-c/UniVRM/pull/1781#pullrequestreview-1100131840
2022-09-08 17:39:05 +09:00
Takayuki Matsuoka
8399f9cd18
Merge branch 'vrm-c:master' into iawaitcaller-nextframe-iftimedout 2022-09-08 10:41:18 +09:00
ousttrue
fba82f02a8
Merge pull request #1779 from Santarh/crOption
Add the `GenerateControlRig` option to VRM 1.0 Importer.
2022-09-07 19:47:10 +09:00
Masataka SUMI
9c88a9761c Add generateControlRig option to VRM 1.0 Importer 2022-09-07 18:51:23 +09:00
Masataka SUMI
e7ed265d67 refactoring 2022-09-07 18:22:11 +09:00
Takayuki Matsuoka
935afcb80d Add new pseudo method NextFrameIfTimedOut to RuntimeOnlyAwaitCaller
This change adds (pseudo) method RuntimeOnlyAwaitCaller.NextFrameIfTimedOut()
which invokes NextFrame() if given time is elapsed.  Otherwise, it does nothing.

We'll be able to utilize this (pseudo) method to ease possible cause of spikes.

For example:

----
public class VRMImporterContext : ImporterContext {
  protected override async Task OnLoadHierarchy(IAwaitCaller awaitCaller, ...) {
    ...
    var blendShapeList = VRM.blendShapeMaster.blendShapeGroups;
    if (blendShapeList != null && blendShapeList.Count > 0) {
      foreach (var x in blendShapeList) {
        await awaitCaller.NextFrameIfTimeout();
        BlendShapeAvatar.Clips.Add(await LoadBlendShapeBind(awaitCaller, x, transformMeshTable));
      }
    }
    ...
  }
}
----

Note that this change doesn't add NextFrameIfTimeout() to IAwaitCaller to avoid
breaking change.  This limitation introduces extra (maybe unnecessarily) complexity.
2022-09-07 17:51:10 +09:00
Takayuki Matsuoka
e7408fe93d
Merge branch 'vrm-c:master' into optimize-bonelimit-tohumanbonename 2022-09-07 16:57:59 +09:00
Takayuki Matsuoka
aac707d187 Optimize UniHumanoid.BoneLimit.ToHumanBoneName
This change optimizes the following points:

(1) Replace linear search for "cashedHumanTraitBoneName" with Dictionary.
(2) Avoid GC alloc in the inner loop.
(2a) Do b.ToString() at the outside of the loop.
(2b) Do x.Replace(" ", "") at once in the static constructor of BoneLimit.
2022-09-07 16:56:46 +09:00
Masataka SUMI
12ac6e372e Apply localPosition while bvh motion transfer in VRM10 Viewer. 2022-09-07 16:44:43 +09:00