← demo & playground · host control · badge motion

Clip swap

Three running viewers, one control bar: the skills graph's badge in its two modes and a plain preview. ◀, the clip list and ▶ send mocap:setClip to all three: the document, three.js and the WebGL context stay, only the clip is fetched and the scene rebuilt. Each viewer shows its answer and the time from the request to it. Without "Clear first" the old clip plays until the new one is ready, then cuts; with it the viewer is empty in between. A request still unanswered after 1 s dims the old clip and its controls to 20 % over 2 s and fades a spinner in on top (an emptied viewer shows only the spinner). The badges fade the new figure in (their fadein). A local server answers in a few ms, so the gap and the dim are hard to see: throttle the network in the devtools to watch them. "Reload instead" sets the iframe's src, the old way, and times it to mocap:ready. "Silhouette" changes a param of the badges, so they reload while the plain preview keeps running. "Broken clip" asks for a clip that does not exist: each viewer answers with the error and shows it in place of the clip, without its play bar, paused; the next clip removes it (with "Reload instead" the viewer shows the error and posts nothing). "Empty" clears all three: background only, no play bar, paused; they get no answer to show.