You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first one(right.glb) loads, the second one(left.glb) fails but without returning success=false.
It just stops loading at gltfRoot = await Task.Run( () => ParseJson(json) );
It seems that Task.Yield() works well on WebGL, but Task.Run() has issues.
I created an IDeferAgent that returns false for ShouldDefer(float duration) and call Task.Yield in BreakPoint() and BreakPoint(float duration),
and now I do manage to load two models at the same time.
* feat: Support for exporting glTF shader based materials.
* feat(test): AssertLogger that does not have expected log items/codes.
* feat(test): Tests for GltfMaterialExporter.
* refactor: Moved `UvTransform` into main assembly, due to it's generic usefulness.
* feat: Material exporter is chosen based on used shader by default.
* refactor: Removed redundant shader property identifiers.
* refactor: Dedicated test files per render pipeline, since there are subtle differences.
* doc: Added docs for glTF material export.
fix: Replaced HTML tag superscript with Unicode chars.
fix: Markdown removed table trailing pipes.
* fix: StandardShaderMode is available, regardless of scripting defines/render pipeline usage. It's in its dedicated file now as well.
* chore: Tracking *.jpg files with GIT LFS and converted existing textures.
I try to start loading to GLB files at the same time on WebGL:
https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets/dist/profiles/oculus-touch/right.glb
https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets/dist/profiles/oculus-touch/left.glb
The first one(
right.glb
) loads, the second one(left.glb
) fails but without returningsuccess=false
.It just stops loading at
gltfRoot = await Task.Run( () => ParseJson(json) );
glTFast/Runtime/Scripts/GltFast.cs
Line 292 in cc3c7a3
Waiting for one model to load and then loading the other, does work.
I did notice that while the second model stuck, the first model is in the process of
await Prepare()
glTFast/Runtime/Scripts/GltFast.cs
Line 255 in cc3c7a3
Unity 2019.4.7f1
Also, the package works much faster now and with less stuttering while loading. Thanks :)
The text was updated successfully, but these errors were encountered: