Module 02 / HTML MODEL
The <model> element
The FK01, as plain HTML
3D as plain HTML: an element like <img> or <video>, with the browser doing the rendering, the lighting and AR.
Why it matters
- What you're looking at
- The FK01 in Safari's native <model> element: turn it, play its explode, put it on your desk in AR. Other browsers get <model-viewer> on WebGL 2.
- Why it matters
- No engine to download or maintain, system-quality rendering, and one USDZ file that also opens in Quick Look and AR.
- The trade-off
- Only Safari 27 on Apple platforms ships it so far; everyone else needs a 330 KB fallback. Little control over shading or effects.
Loading stage…
Module notes
The FK01 Field Camera embedded like an image or a video, with no engine and no canvas. Turn it in your hand in Safari 27, play its explode, or set it on your desk in AR. Other browsers get a WebGL stand-in.
- This browser
- checking…
- Native path
- Native <model> (USDZ / GLB) needs HTML <model>
- Fallback
- <model-viewer> on WebGL 2 needs WebGL 2
- Status
- Live since 2026-10-09
- Payload
- The FK01 (fk01.glb) · 2.04 MB
- Studio lighting (studio.hdr) · 677 KB
- <model-viewer> · 211 KB
- three.js core and GLTFLoader · 115 KB
- Stage code · 6 KB
- The FK01 as USDZ (fk01.web.usdz), no engine · 1.72 MB (instead, in Safari 27)
- Budget
- Payload 3.0 MB · budget ≤ 3.5 MB Within
- First frame desktop 3.3 s · phone 3.4 s · budget ≤ 3.5 s Within
- Frame rate desktop 60 fps · phone 60 fps · budget ≥ 55 fps desktop · ≥ 30 phone Within
- Browser support
-
First version with each feature · WebKit (Safari 27 release notes) and caniuse, 2026-10-09Feature Chrome Safari Firefox HTML <model> element Not yet 27 Not yet <model> environmentmap, playback Not yet 27 Not yet AR Quick Look link (rel=ar) Not yet 12 (iOS) Not yet WebGL 2 (the stand-in) 56 15 51 - Tags
Module 02 / Use it on your page
A native HTML element. In Safari 27 it is one tag and a USDZ file; elsewhere Google's <model-viewer> web component draws a GLB on WebGL 2.
Safari 27: no library + a USDZ (1.7 MB) · elsewhere: npm @google/model-viewer 4.3 (about 330 KB with three.js) + a GLB (2 MB) · optional .hdr light (677 KB)
-
Step 1
Export two files from one scene
A GLB for <model-viewer> and a USDZ for <model> and AR Quick Look. Here Blender exports both by script; the glTF validator and usdchecker --arkit check them, and usdcrush (macOS) shrinks the USDZ for the web.
-
Step 2
Use the element
stagemode="orbit" gives drag-to-turn without script. Your script can play the file's animation, backwards too, once the model is ready.
<model stagemode="orbit" environmentmap="studio.hdr"> <source src="fk01.web.usdz" type="model/vnd.usdz+zip"> </model> <script type="module"> const model = document.querySelector("model"); await model.ready; model.playbackRate = -1; // 1 takes it apart, -1 puts it back model.play(); </script> -
Step 3
Fall back to <model-viewer>
Detect the element. Where it's missing, load the web component and give it the GLB; its animation and camera are driven from script the same way.
if (!("HTMLModelElement" in window)) { await import("@google/model-viewer"); const mv = document.createElement("model-viewer"); mv.src = "fk01.glb"; mv.alt = "The FK01 Field Camera"; mv.setAttribute("camera-controls", ""); mv.setAttribute("animation-name", "explode"); document.querySelector("model").replaceWith(mv); } -
Step 4
Offer AR on phones
A link with rel="ar" around an image opens AR Quick Look on iPhone and iPad. Show it only where the browser says it can; <model-viewer>'s ar attribute covers Android.
<a rel="ar" href="fk01.usdz" hidden> <img src="fk01-poster.jpg" alt="View the FK01 in your room"> </a> <script> const ar = document.querySelector('a[rel="ar"]'); ar.hidden = !ar.relList.supports("ar"); </script>
Serving it
- Serve .usdz as model/vnd.usdz+zip (AR Quick Look refuses anything else) and .glb as model/gltf-binary.
- Gzip the .glb and the .hdr: each downloads at about half its size.
- To move a <model> from script, remove stagemode first: entityTransform is read-only while it's set.
- AR needs https.