If you see this, something is wrong
First published on Friday, Nov 20, 2026 and last modified on Friday, Nov 20, 2026
WebMagic
Documents Live support 3D models as content blocks. In the web view, a 3D viewer renders the model. You can modify the view using standard mouse/touch actions.
| Action | Mouse | Touch |
| Rotate (orbit around the model) | Left-drag | One-finger drag |
| Zoom | Wheel | Pinch |
| Pan | Right-drag | Two-finger drag |
Here is the syntax to create a Model3D object in LaTeX.
\begin{Model3D}
\label{fig:my-model} % optional: label, usable with \ref
\caption{Caption of the model} % optional: caption text
\url{ModelName} % REQUIRED: model name (see below)
\type{obj} % optional: format to show first
\end{Model3D}
where \url can hold
\url{ModelName} % model of the current document (data/{slug}/models/ModelName/)
\url{ModelName}{other-slug} % model that belongs to another document (second argument = its slug)
\url{fixture:default} % model shipped with the application (the builder's default)Zip you model data (model(s) plus textures) and use the usual "upload Media" action to upload the model to your project.
| Extension | Description | Support | Textures |
.glb
|
glTF 2.0 binary, a single file with geometry, materials and (usually) embedded textures |
Native (three.js GLTFLoader)
|
Yes. Full PBR: base color, normal, roughness, metalness, emissive, AO. Embedded images are decoded by the browser. |
.gltf
|
glTF 2.0 text (JSON) with external .bin and image files
|
Native (GLTFLoader)
|
Yes. Same as .glb, with external files looked up in the zip by file name.
|
.obj
|
Wavefront OBJ, with an optional .mtl for materials
|
Emulated. It uses our own streaming parser (assets/lib/objStream.js) and our own MTL-to-material mapping, not three’s OBJLoader or MTLLoader.
|
Yes, through the .mtl. Handled: map_Kd, roughness, metalness, bump/normal, emissive, and alpha (d/map_d). Windows paths in the MTL are handled. It streams, so a 652 MB file loads.
|
.fbx
|
Autodesk FBX |
Native (FBXLoader), plus a fix that forces a white base color when a map exists
|
Yes. Embedded or external, including .tga.
|
.stl
|
Stereolithography mesh, geometry only |
Native (STLLoader)
|
No. STL has no UVs or materials. Vertex colors are used if the file has them. Otherwise it is rendered in gray (0xb0b4ba).
|
| Action | Control | What it does | Saved |
| Save picture | Floppy-disk button |
Saves the current view as a PNG through the same chart#export route that charts use. That PNG is what the other exports (Word, PDF, ODT) and the poster shown before the model loads use.
|
Server, as {id}-canvas_png.png
|
| Texture size | Menu: 512 / 1024 / 2048 px (default 1024) |
Sets the largest side of textures. The server sends reduced copies, made with Imagick on first request and cached in var/model-cache/. On the client, textures still larger than the limit are redrawn smaller, which saves GPU memory. A smaller size is faster on a slow computer.
|
Browser localStorage, one value for all models
|
| Controls | Switch | Shows or hides the panel below. | No |
| Action | Control | What it does | Saved |
| Model file | Select, shown only when the folder has 2 or more model files |
Picks which file to display, for example an FBX or an OBJ from the same zip. The author’s \type{…} only decides which one comes first.
|
Per model |
| Gray | Checkbox | Replaces all materials with one neutral material, to see the shapes. It is on by default when the model has no texture at all. | Per model |
| Flip normal Y | Checkbox | Inverts the Y of normal maps, for models exported with the other (DirectX or OpenGL) convention. This fixes bumps that look sunken. | Per model |
| Background | Color picker |
Background color of the viewer (default #f8f9fa).
|
Per model |
| Light color | Color picker | Color of the directional light (default white). | Per model |
| Gray color | Color picker | Color of the gray material. | Per model |
| Light | Slider, 0–4, step 0.1 | Intensity of the directional light (default 1.2). | Per model |
| Ambient | Slider, 0–3, step 0.05 | Intensity of the environment (ambient) lighting (default 1). | Per model |
| Reset | Button | Restores the default colors, intensities, gray and flip settings. | Clears the saved settings |
This is the model that you get when creating a Model3D by drag and drop.
3D model fixture:default
This is a subway car which has both an obj and a fbx model, with textures.
3D model subway-car-interior-2026-09-01-05-58-21-utc