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
fix(render): stop the procedural figure flashing before the character loads
The landing hero and playground both pass showProceduralWhileLoading:false
to suppress the crude procedural figure while the 702 KB character.glb
loads, but the option was never consumed — the procedural mannequin was
added visible from frame 0 and only hidden once the character resolved, so
it flashed on every page load for the model's fetch time.
Honor the flag: when a characterUrl is set and the flag is false, hide the
procedural meshes at init (the skeleton still drives animation + grounding,
matching the post-load swap) and reveal them only if the character load
fails, so the scene still degrades to the working fallback and never blanks.
- implement showProceduralWhileLoading; correct its now-stale doc comment
- add setMeshVisibility helper (also de-dupes the post-load hide)
Verified in-browser with a throttled model load: mid-load shows no
procedural figure (empty stage, skeleton still animating), the skinned
character appears on load, and an aborted model reveals the procedural
fallback. typecheck, build, and all tests pass.
0 commit comments