# asset pipeline

> from a blender model to a game: modeling, uvs, textures, rigs, export, and keeping it cheap to draw.

source: https://learning.anthnydas.com/games/asset-pipeline/

## tl;dr

model it, unwrap it, texture it, rig it, export it as gltf. the game pays for every vertex, triangle and draw call, so keep them few.

- **blender:** 5.2 lts (every path and key here checked in its manual)
- **export:** .glb (gltf 2.0, all in one binary file)
- **up axis:** z → y (the gltf exporter turns it for you)
- **a cube's vertices:** 8 → 14 (on the gpu, cut along 7 seams)
- **reach for it:** props and characters for a game engine, models for three.js and the web, anything that ships as gltf or fbx

an asset pipeline is the path a 3d model takes from the program it's made in to the game that draws it. this sheet follows one model through blender: shape it, unwrap it, texture it, rig it, export it, and keep it cheap to draw.

every menu path and key was checked against blender 5.2 lts and its manual, with the default keymap, and the export defaults against the 5.2.3 source.[^version] menus move between versions, so check yours against these. in the tables, `MMB` is the middle mouse button, and `Numpad 1` is the 1 on the number pad, not the one above the letters.

## blender basics

the window is split into areas, and each area holds an editor: the 3d viewport, the outliner, the properties editor, the timeline. a workspace is a saved layout of them for one job, picked from the tabs along the top: Layout, Modeling, UV Editing, Shading, Animation and more.[^workspaces]

you edit an object in a mode. object mode moves whole objects. edit mode, `Tab`, edits a mesh's vertices, edges and faces.[^keymap]

| action                       | where                           | keys                     |
| ---------------------------- | ------------------------------- | ------------------------ |
| orbit                        | 3D Viewport                     | `MMB` drag               |
| pan                          | 3D Viewport                     | `Shift-MMB` drag         |
| zoom                         | 3D Viewport                     | wheel                    |
| front, right, top view       | View > Viewpoint                | `Numpad 1`, `3`, `7`     |
| perspective or orthographic  | View > Perspective/Orthographic | `Numpad 5`               |
| frame the selection          | View > Frame Selected           | `Numpad .`               |
| add an object                | Add                             | `Shift-A`                |
| move, rotate, scale          | Object > Transform              | `G`, `R`, `S`            |
| lock an axis, type an amount | while moving                    | `X`, `Y`, `Z`, a number  |
| object or edit mode          | the mode menu, top left         | `Tab`                    |
| find a command by name       | Edit > Menu Search              | `F3`                     |
| change what you just did     | Edit > Adjust Last Operation    | `F9`                     |
| toolbar, sidebar             | View                            | `T`, `N`                 |
| hide, show all again         | Object > Show/Hide              | `H`, `Alt-H`             |
| wireframe, solid, rendered   | Viewport Shading, top right     | `Z`                      |
| undo, redo                   | Edit                            | `Ctrl-Z`, `Shift-Ctrl-Z` |

so `S 2 Return` doubles an object's size, and `G Z 1 Return` lifts it one unit.[^transform] `Ctrl` with a view key gives the opposite side: `Ctrl-Numpad 1` is the back.[^viewpoint]

- no numpad or no middle button: Edit > Preferences > Input. Emulate Numpad makes the number row act as the numpad, and Emulate 3 Button Mouse turns `Alt` with the left button into the middle one.[^input]
- on a mac, `Cmd` works in place of `Ctrl` for most of these.[^keymap]
- a new scene measures in meters, one unit to a meter, and gltf uses meters too, so a 2 m door arrives 2 m tall.[^units][^gltf-spec]

## modeling

a mesh is vertices, the edges between them, and the faces that fill them in. most modeling is a few moves, repeated: pull a face out, inset it, cut a loop around it, bevel an edge.[^mesh-tools] modifiers like subdivision or decimate change the shape without touching the mesh, until you apply them.[^modifiers]

| action                        | where, in edit mode                  | keys                 |
| ----------------------------- | ------------------------------------ | -------------------- |
| vertex, edge or face select   | the header, by the mode menu         | `1`, `2`, `3`        |
| select a loop                 | Select > Select Loops                | `Alt`-click          |
| select what's connected       | Select > Select Linked               | `Ctrl-L`, `L`        |
| extrude                       | Mesh > Extrude                       | `E`, `Alt-E`         |
| inset a face                  | Face > Inset Faces                   | `I`                  |
| cut a loop                    | Edge > Loop Cut and Slide            | `Ctrl-R`             |
| bevel edges                   | Edge > Bevel Edges                   | `Ctrl-B`             |
| cut by hand                   | Mesh > Knife Topology Tool           | `K`                  |
| merge vertices                | Mesh > Merge                         | `M`                  |
| fill in an edge or a face     | Vertex > New Edge/Face from Vertices | `F`                  |
| split off the selection       | Mesh > Separate                      | `P`                  |
| point normals outward         | Mesh > Normals > Recalculate Outside | `Shift-N`            |
| join objects (object mode)    | Object > Join                        | `Ctrl-J`             |
| add subdivision (object mode) | Add Modifier > Generate              | `Ctrl-1` to `Ctrl-5` |
| smooth by angle (object mode) | Object > Shade Auto Smooth           |                      |
| apply scale (object mode)     | Object > Apply > Scale               | `Ctrl-A`             |

`L` does the same for the part under the mouse, without selecting it first. `E` extrudes the selection and moves it. `Alt-E` opens a menu of other ways to extrude.[^mesh-tools]

- scaling in object mode puts the scale on the object, not on the mesh, and modifiers, constraints and parenting all read it. apply it with `Ctrl-A` > Scale before you rig: the manual says to apply transforms before rigging and animation.[^apply]
- Face Orientation, in the viewport's Overlays menu, paints the back of every face red. red on the outside of a model is a face turned inside out, and `Shift-N` turns them all outward.[^overlays][^normals]
- model in quads if you like: the gltf exporter turns every face into triangles. so the count a game cares about is triangles, and the Statistics overlay shows it.[^gltf-addon][^overlays]

## uv unwrap

a uv map lays the surface flat on the texture, so every point of the model knows where in the image to read its color. u is the image's x, v its y. you mark seams where the surface may be cut, then unwrap, and the pieces land in the uv editor as islands. more seams stretch the texture less, but each one is a visible join, so use as few as you can and hide them where nobody looks.[^seams]

> **interactive figure:** a cube with a checker texture beside its uv map, with a button for each of four seam layouts. with no seams the map is projected straight down from the top: the top and bottom cover the whole square, and the four sides squash into lines on its border, so their texture smears into stripes. with 7 seams the cube unfolds into a cross: one island, and 14 vertices on the gpu with smooth shading. 9 seams make a band of four sides and two lids: three islands, 18 vertices. 12 seams cut every edge: six islands, 24 vertices. the seams are amber, dashed where they run along the hidden back of the cube, and the front face is cyan on the cube and in the map, so you can find it.

| action                       | where                                 | keys          |
| ---------------------------- | ------------------------------------- | ------------- |
| see the model and its map    | UV Editing workspace                  |               |
| mark or clear a seam         | Edge > Mark Seam, Clear Seam          | `Ctrl-E`      |
| unwrap along the seams       | UV > Unwrap Angle Based               | `U`           |
| unwrap by face angle         | UV > Smart UV Project                 | `U`           |
| select an island             | UV Editor: Select > Select Linked     | `Ctrl-L`, `L` |
| pin a uv for the next unwrap | UV Editor: UV > Pin                   | `P`           |
| pack the islands in          | UV Editor: UV > Pack Islands          | none          |
| give islands one scale       | UV Editor: UV > Average Islands Scale | none          |

the `U` menu in the 3d viewport has every unwrap in it, and Mark Seam too.[^unwrap] Smart UV Project cuts wherever faces meet at a sharp angle, so it needs no seams. the manual suggests it for mechanical objects and architecture, and Unwrap for organic shapes.[^unwrap]

- every seam splits vertices. the gpu keeps one vertex for each position, normal and uv together, so a corner on a seam goes in once for each place it lands in the map. the figure's cube goes from 8 vertices to 14 with 7 seams, and to 24 with every edge cut. a hard, flat-shaded edge splits them the same way.[^gltf-addon]
- Pack Islands and Average Islands Scale have no key in the default keymap. `Ctrl-P` and `Ctrl-A` only work in the 2.7x keymap, so use the UV menu or `F3`.[^uvkeys]

## texturing

gltf materials are metal and rough pbr: a base color, metallic, roughness, a normal map, occlusion and emission.[^gltf-addon] the exporter reads them off a Principled BSDF node, so build the material in the Shading workspace, with an Image Texture node for each image, wired into that node.[^principled] color images are sRGB. images that hold data, like roughness or normals, are linear, which blender calls Non-Color.[^gltf-spec][^colorspaces]

| gltf texture        | how it's wired                                | color space |
| ------------------- | --------------------------------------------- | ----------- |
| base color          | Image Texture → Base Color                    | sRGB        |
| metallic, roughness | Separate Color: B → Metallic, G → Roughness   | Non-Color   |
| normal              | Normal Map node, Tangent Space → Normal       | Non-Color   |
| occlusion           | R → Occlusion on a glTF Material Output group | Non-Color   |
| emission            | Image Texture → Emission Color                | sRGB        |

wired this way, the exporter copies each image into the file as it is. wired another way, it may try to rebuild the image to fit, which is slower.[^gltf-addon] core gltf holds png and jpeg images, and the exporter converts anything else.[^gltf-addon][^gltf-spec]

baking moves detail from a high-poly model into the maps of a low-poly one:[^baking]

1. set the render engine to Cycles. the Bake panel is under Properties > Render.
2. give the low-poly model a uv map, and in its material add an Image Texture node with a new image. leave that node selected: the active image node is what gets baked into.
3. select the high-poly model, then the low-poly one last, so it's active.
4. in Render > Bake, set Bake Type to Normal, turn on Selected to Active, and press Bake. rays go from the low-poly surface inward to find the high-poly one.
5. the new image is generated inside blender and has no file yet. save it from the image editor with Image > Save As, `Shift-Alt-S`.

- a normal map left as sRGB shades wrong everywhere. set it to Non-Color on its Image Texture node.[^colorspaces]
- gltf normal maps put +Y up in the green channel. that's blender's default, the OpenGL convention. a map made for directx has green pointing down, so flip its green channel before it ships.[^normalmap][^gltf-addon]

## rigging + animation

an armature is an object made of bones. you parent the mesh to it, and every vertex follows the bones by its weights: how much each bone moves it. a vertex's weights add up to 1, and blender's armature modifier scales them to 1 for you if they don't.[^weights] gltf skins a vertex the same way: a weighted sum of what each bone does to it.[^gltf-spec]

> **interactive figure:** a tube of nine rings on two bones, and a slider that turns the second bone from 0 to 180 degrees, starting at 90. the first three rings belong to the first bone and stay put, the last three belong to the second bone and turn with it, and the three around the joint are split 75/25, 50/50 and 25/75. each ring is drawn in its mix of cyan, the first bone, and amber, the second, with a strip of its weights below and the rest pose dashed behind. the ring at the joint, half on each bone, lands halfway between where each bone alone would put it, so it keeps cos(angle / 2) of its width: 87% at 60 degrees, 71% at 90, and nothing at 180.

| action                     | where                                    | keys       |
| -------------------------- | ---------------------------------------- | ---------- |
| add an armature            | Add > Armature                           | `Shift-A`  |
| grow a bone from its tip   | edit mode: Armature > Extrude            | `E`        |
| add a loose bone           | edit mode: Add > Single Bone             | `Shift-A`  |
| skin the mesh to the bones | Object > Parent > With Automatic Weights | `Ctrl-P`   |
| pose the bones             | pose mode, armature selected             | `Ctrl-Tab` |
| paint weights              | weight paint mode, mesh selected         | `Ctrl-Tab` |
| make weights add up to 1   | Weights > Normalize All                  |            |
| keep a few bones a vertex  | Weights > Limit Total                    |            |
| set a keyframe             | Pose > Animation > Insert Keyframe       | `I`        |
| keep an action for export  | Action Editor: Action > Stash Action     |            |

to skin, select the mesh, then the armature last. automatic weights work out each bone's pull from how far the vertices are from it, the manual's "bone heat", so pose the rig to check, and repaint where it bends wrong.[^skinning] with a mesh selected, `Ctrl-Tab` opens a pie of modes, Weight Paint among them. with an armature, it toggles pose mode.[^keymap]

- linear skinning pinches a bent joint, as the figure shows. the armature modifier's Preserve Volume fixes it inside blender,[^armature-mod] but gltf skinning is linear, so a viewer that follows the spec draws the pinch again.[^gltf-spec]
- the exporter writes 4 bone influences a vertex unless you change Bone Influences. the manual warns that viewers may show the model wrong with any count but 4 or 8, and the spec lets them read only the first 4.[^gltf-addon][^gltf-spec] Weights > Limit Total trims each vertex to its strongest few, so blender shows what the engine will.[^weights]
- an action exports only when it's the active one on its object or sits on an nla track. with several, like idle, walk and run, Stash or Push Down each one in the Action Editor, a mode of the Dope Sheet, or it stays behind.[^actions]

## gltf / fbx export

gltf 2.0 is the khronos group's format for sending 3d scenes to whatever draws them: a json scene description, with nodes, meshes, materials, skins and animations, plus binary buffers and png or jpeg images. a `.gltf` keeps those as separate files. a `.glb` packs all of it into one binary file.[^gltf-spec] its axes differ from blender's: +Y is up and a model's front faces +Z, where blender has +Z up and a model facing the front view looks down -Y. the exporter turns the model as it writes it.[^gltf-spec][^swizzle]

> **interactive figure:** a drawing of the same three directions in blender and in gltf, named from the model's point of view. blender, in cyan: up is +z, the front is -y, and the model's left is +x. gltf, in amber: up is +y, the front is +z, and the left is still +x. an arrow between them reads export.

the exporter is File > Export > glTF 2.0 (.glb/.gltf). its dialog groups most settings into Include, Transform, Data and Animation panels. the ones that matter, with their defaults in 5.2:[^gltf-export]

| setting          | default            | what it does                                  |
| ---------------- | ------------------ | --------------------------------------------- |
| Format           | glTF Binary (.glb) | one file. glTF Separate: .gltf, .bin, images  |
| Selected Objects | off                | on: only the selection                        |
| +Y Up            | on                 | blender's z up becomes gltf's y up            |
| Apply Modifiers  | off                | on: bakes modifiers in, but drops shape keys  |
| UVs, Normals     | on                 |                                               |
| Tangents         | off                | the viewer works them out                     |
| Materials        | Export             | Placeholder keeps the slots, not the textures |
| Bone Influences  | 4                  | the most bones that move one vertex           |
| Animation Mode   | Actions            | active actions and the ones on nla tracks     |

the same export as a script, for a build step that runs without the window. `-b` runs blender in the background, the arguments run in order, and `--python-exit-code 1` makes a python error fail the command.[^cli]

```python
# export.py. run it:
#   blender -b crate.blend --python-exit-code 1 --python export.py
import bpy

bpy.ops.export_scene.gltf(
    # "//" is the .blend's folder. the exporter won't expand it, so do it here
    filepath=bpy.path.abspath("//crate.glb"),
    export_format="GLB",
    export_yup=True,
    export_apply=True,  # bake the modifiers in. shape keys don't survive it
    export_animations=True,
)
```

to find the python behind a button that runs a command, hover it and press `Ctrl-C`.[^keymap] to re-export the same asset again and again, give its collection an exporter: Properties > Collection > Exporters, Add Exporter, then Export All.[^collections]

fbx is autodesk's format, read by unity and unreal.[^fbx] its sdk is c++, and a file is binary or ascii. the sdk creates objects right-handed and y up, with the centimeter as its default unit.[^fbx-sdk] blender writes it from File > Export > FBX (.fbx), with these defaults:[^fbx-export]

- Forward -Z and Up Y, the pair the manual gives for programs where y is up.
- Apply Modifiers on, and Smoothing at Normals Only.
- Add Leaf Bones on: an extra bone at the end of every chain. its tooltip says it's for editing the armature from the exported file, so turn it off for a game.
- Scale 1.0, with Apply Unit on. the manual's export page says 10, but the 5.2.3 source and the api docs say 1.0.

## optimization (lods, draw calls)

a draw call is the cpu asking the gpu to draw one batch of triangles with one material. each has a cost of its own, so drawing two things costs more than drawing one, even when they look the same.[^three-merge] in gltf a mesh is a list of primitives, each one draw call, and blender's exporter makes one primitive per material slot.[^gltf-spec][^gltf-addon] so a crate with three materials costs three draws, and a hundred loose rocks cost a hundred. join objects that share a material, `Ctrl-J`, and give them one texture between them. the three.js manual merges about 19,000 boxes into one mesh and goes from under 20 frames a second to 60.[^three-merge]

level of detail cuts the triangles instead: the same model at a few sizes, with a lighter one drawn the smaller it gets on screen. make the lighter ones with a Decimate modifier, whose Ratio is the share of triangles to keep.[^decimate] three.js picks a level by its distance from the camera.[^three-lod] unreal picks by screen size, how much of the screen the model covers, and can work those sizes out for you.[^unreal-lod]

> **interactive figure:** a slider moves a 1 meter sphere from 1.5 to 80 meters from a camera with a 60 degree view, starting near 5 meters. on the left, the sphere as the camera sees it, shrinking with distance. on the right, the mesh drawn at that distance, at a fixed size so its triangles show. four levels: an icosphere of 1,280 triangles while the sphere covers at least half the view's height, out to 3.6 m; 320 triangles to 7 m; 80 to 17.3 m; and the bare 20-triangle icosahedron beyond. past 86.6 m, where it would cover under 2%, it would draw nothing. a bar under the drawings shows each level's range, with the one in use in cyan.

| action                 | where                              | keys      |
| ---------------------- | ---------------------------------- | --------- |
| count triangles        | Overlays > Statistics              |           |
| copy the model         | Object > Duplicate Objects         | `Shift-D` |
| make the copy lighter  | Add Modifier > Generate > Decimate |           |
| set the share it keeps | Decimate > Ratio                   |           |
| join objects into one  | Object > Join                      | `Ctrl-J`  |
| copy, sharing the mesh | Object > Duplicate Linked          | `Alt-D`   |
| see a mesh's materials | Properties > Material              |           |

name the levels so code can find them, like `rock_lod0` to `rock_lod3`: the exporter keeps object names. then, in three.js, with the figure's switch distances:[^three-lod][^gltf-names]

```js
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

const gltf = await new GLTFLoader().loadAsync('rock.glb');
const lod = new THREE.LOD();
// each level shows from its distance, in meters, out to the next one
[0, 3.6, 7, 17.3].forEach((distance, i) => {
  lod.addLevel(gltf.scene.getObjectByName(`rock_lod${i}`), distance);
});
lod.addLevel(new THREE.Object3D(), 86.6); // empty: past 86.6 m, draw nothing
scene.add(lod); // the renderer picks the level every frame
```

- a level that pops in at the boundary flickers when the camera sits on it. `addLevel` takes a third number, the hysteresis: a share of the distance to wait before switching back.[^three-lod]
- three.js drops dots from node names, so blender's `rock.001` loads as `rock001`. names with no spaces, dots, colons, brackets or slashes come through as they are.[^gltf-names]
- a hundred copies of one rock don't need joining. make them with `Alt-D`, so they share one mesh, and turn on GPU Instances in the exporter's Data > Scene Graph panel. they're written with EXT_mesh_gpu_instancing, and three.js loads them as one InstancedMesh, drawn in fewer calls. the option is off by default, the copies must all be children of one empty, and a second material may be dropped.[^gltf-addon][^gltf-export][^instancing]

[^version]: blender's [download page](https://www.blender.org/download/) on 28 october 2026: 5.2.3 lts, released 22 october 2026. the paths and keys come from the [blender 5.2 lts manual](https://docs.blender.org/manual/en/5.2/), and the defaults from the source at the [v5.2.3 tag](https://github.com/blender/blender/tree/v5.2.3), on blender's official github mirror.

[^workspaces]: [workspaces](https://docs.blender.org/manual/en/5.2/interface/window_system/workspaces.html) in the 5.2 manual: areas holding editors, the default Layout workspace, and the others added by default.

[^keymap]: the [default keymap](https://docs.blender.org/manual/en/5.2/interface/keymap/blender_default.html) in the 5.2 manual: `MMB` to orbit, `Shift-MMB` to pan, `Ctrl-MMB` to zoom, `Tab` for edit mode, `Ctrl-Tab` for pose mode or the mode pie, `F3`, `F9`, `H` and `Alt-H`, `T` and `N`, `I`, undo and redo, `Ctrl-C` over a button to copy its python, and `Cmd` for `Ctrl` on macos. [Edit > Menu Search](https://docs.blender.org/manual/en/5.2/interface/window_system/topbar.html) and the rest of the Edit menu are on the topbar page, and [Viewport Shading](https://docs.blender.org/manual/en/5.2/editors/3dview/display/shading.html), with its `Z` pie, has its own.

[^viewpoint]: [viewpoint](https://docs.blender.org/manual/en/5.2/editors/3dview/navigate/viewpoint.html), [perspective and orthographic](https://docs.blender.org/manual/en/5.2/editors/3dview/navigate/projections.html), and [navigation](https://docs.blender.org/manual/en/5.2/editors/3dview/navigate/navigation.html), for Frame Selected and the wheel, in the 5.2 manual.

[^transform]: [numeric input](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/transform/control/numeric_input.html), with its `S 2 Return` example, and [axis locking](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/transform/control/axis_locking.html) in the 5.2 manual.

[^input]: [input preferences](https://docs.blender.org/manual/en/5.2/editors/preferences/input.html) in the 5.2 manual: Emulate Numpad, and Emulate 3 Button Mouse with `Alt` and the left button.

[^units]: [scene.cc](https://github.com/blender/blender/blob/v5.2.3/source/blender/blenkernel/intern/scene.cc#L209-L210) at v5.2.3: a new scene is metric with a unit scale of 1. [units](https://docs.blender.org/manual/en/5.2/scene_layout/scene/properties.html#units) in the 5.2 manual explains the unit scale.

[^gltf-spec]: the [gltf 2.0 specification](https://github.com/KhronosGroup/glTF/blob/1c84b58ba3338be4731ea546fa4138dcbb93d42d/specification/2.0/Specification.adoc), at the khronos repo's commit 1c84b58: what a `.gltf`, its `.bin` files and a `.glb` hold (lines 416 to 426); right-handed, +y up, the front facing +z and the left +x, and meters (lines 754 to 764); a mesh as primitives, each with its material, matching draw calls (lines 1589 to 1606); tangents worked out with mikktspace when they're missing (line 1822); linear blend skinning, up to four joints to a set of weights that add up to 1, and clients free to read only one set (lines 2020 to 2091), with the weighted sum of joint matrices at line 2259; base color and emission in srgb, metallic and roughness in blue and green, and normals and occlusion linear (lines 2676, 2701, 2752, 2830 and 2848).

[^mesh-tools]: the 5.2 manual's pages on [selection modes](https://docs.blender.org/manual/en/5.2/modeling/meshes/selecting/introduction.html), [loops](https://docs.blender.org/manual/en/5.2/modeling/meshes/selecting/loops.html), [linked](https://docs.blender.org/manual/en/5.2/modeling/meshes/selecting/linked.html), [extrude region](https://docs.blender.org/manual/en/5.2/modeling/meshes/tools/extrude_region.html), [extrude](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/mesh/extrude.html), [inset](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/face/inset_faces.html), [loop cut and slide](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/edge/loopcut_slide.html), [bevel](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/edge/bevel.html), [knife](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/mesh/knife_topology_tool.html), [merge](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/mesh/merge.html), [new edge/face](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/vertex/make_face_edge.html), [separate](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/mesh/separate.html), [join](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/join.html), [shade auto smooth](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/shading.html), and the subdivision surface modifier's [`Ctrl-1` to `Ctrl-5`](https://docs.blender.org/manual/en/5.2/modeling/modifiers/generate/subdivision_surface.html#keyboard-shortcuts), which the [v5.2.3 keymap](https://github.com/blender/blender/blob/v5.2.3/scripts/presets/keyconfig/keymap_data/blender_default.py#L485-L491) sets for levels 0 to 5.

[^modifiers]: [modifiers](https://docs.blender.org/manual/en/5.2/modeling/modifiers/introduction.html) in the 5.2 manual: they change the shape without touching the editable mesh, until applied, and Add Modifier in the Modifiers tab lists them by category.

[^apply]: [apply](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/apply.html) in the 5.2 manual: `Ctrl-A`, how transforms affect modifiers, constraints and parenting, and applying them before rigging and animation.

[^overlays]: [viewport overlays](https://docs.blender.org/manual/en/5.2/editors/3dview/display/overlays.html) in the 5.2 manual: Face Orientation shows the back of a face in red, and Statistics counts vertices, faces and triangles.

[^normals]: [editing normals](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/mesh/normals.html#recalculate) in the 5.2 manual: Recalculate Outside, `Shift-N`.

[^gltf-addon]: the [gltf 2.0 add-on](https://docs.blender.org/manual/en/5.2/addons/scene_gltf2.html) in the 5.2 manual: faces become triangles, split uvs and flat-shaded edges add vertices, and gpu instances have limits (meshes); the metal and rough channels, metallic in B and roughness in G of one Non-Color image, the occlusion group, the tangent-space normal map with +Y up, emission, and png or jpeg only (materials); each material slot as one primitive (variants); which actions export (animations); and Bone Influences with its warning about counts other than 4 or 8 (export properties). the page still calls the channel splitter Separate RGB; in 5.2 it's the [Separate Color](https://docs.blender.org/manual/en/5.2/render/shader_nodes/color/separate_color.html) node.

[^seams]: [seams](https://docs.blender.org/manual/en/5.2/modeling/meshes/uv/unwrapping/seams.html) in the 5.2 manual: `Ctrl-E` for Mark Seam, fewer seams against less stretching, and hiding them.

[^unwrap]: [uv operators](https://docs.blender.org/manual/en/5.2/modeling/meshes/editing/uv.html) and [editing uvs](https://docs.blender.org/manual/en/5.2/modeling/meshes/uv/editing.html) in the 5.2 manual: Unwrap, which suits organic shapes, Smart UV Project, which cuts at sharp edges and suits mechanical objects, Pin, Pack Islands, and Select Linked in the uv editor. `L` picks the island under the mouse in the [v5.2.3 keymap](https://github.com/blender/blender/blob/v5.2.3/scripts/presets/keyconfig/keymap_data/blender_default.py#L1489-L1491), and the `U` menu's contents are in [space_view3d.py](https://github.com/blender/blender/blob/v5.2.3/scripts/startup/bl_ui/space_view3d.py#L1424-L1447) at v5.2.3.

[^uvkeys]: the [v5.2.3 keymap](https://github.com/blender/blender/blob/v5.2.3/scripts/presets/keyconfig/keymap_data/blender_default.py#L1576-L1581) gives Pack Islands `Ctrl-P` and Average Islands Scale `Ctrl-A` only when `params.legacy` is set, which the [2.7x keymap](https://github.com/blender/blender/blob/v5.2.3/scripts/presets/keyconfig/Blender_27x.py#L7-L9) does. the menu's name for the second is in [uvedit_unwrap_ops.cc](https://github.com/blender/blender/blob/v5.2.3/source/blender/editors/uvedit/uvedit_unwrap_ops.cc#L2109).

[^principled]: the [principled bsdf](https://docs.blender.org/manual/en/5.2/render/shader_nodes/shader/principled.html) in the 5.2 manual. its inputs are declared in [node_shader_bsdf_principled.cc](https://github.com/blender/blender/blob/v5.2.3/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.cc#L293-L298) at v5.2.3, where Emission Color shows as Color, in an Emission panel that starts closed.

[^colorspaces]: [color spaces](https://docs.blender.org/manual/en/5.2/render/color_management/color_spaces.html) in the 5.2 manual: normal and displacement maps hold data, not colors, and should be Non-Color. the [image texture node](https://docs.blender.org/manual/en/5.2/render/shader_nodes/textures/image.html) sets it.

[^normalmap]: the [normal map node](https://docs.blender.org/manual/en/5.2/render/shader_nodes/displacement/normal_map.html) in the 5.2 manual: Tangent Space, Non-Color, and blender's default OpenGL convention, green pointing up, against directx's, green pointing down.

[^baking]: [render baking](https://docs.blender.org/manual/en/5.2/render/cycles/baking.html) in the 5.2 manual: a uv map and an active Image Texture node as the target, Render > Bake, the Normal bake type, and Selected to Active casting from the low-poly model inward. [image editing](https://docs.blender.org/manual/en/5.2/editors/image/editing.html) has Image > Save As, `Shift-Alt-S`.

[^weights]: [weight painting](https://docs.blender.org/manual/en/5.2/sculpt_paint/weight_paint/introduction.html) in the 5.2 manual: `Ctrl-Tab` to the mode, and deforming weights adding up to 1, which the armature modifier does on its own. [editing weights](https://docs.blender.org/manual/en/5.2/sculpt_paint/weight_paint/editing.html): Normalize All, and Limit Total, which drops the lowest weights first.

[^skinning]: [armature deform parent](https://docs.blender.org/manual/en/5.2/animation/armatures/skinning/parenting.html) in the 5.2 manual: select the mesh, then the armature, `Ctrl-P`, With Automatic Weights and its bone heat, and fixing weights by hand. bones come from [the armature introduction](https://docs.blender.org/manual/en/5.2/animation/armatures/introduction.html), [adding bones](https://docs.blender.org/manual/en/5.2/animation/armatures/bones/add_bones.html) and [extrude](https://docs.blender.org/manual/en/5.2/animation/armatures/bones/editing/extrude.html).

[^armature-mod]: the [armature modifier](https://docs.blender.org/manual/en/5.2/modeling/modifiers/deform/armature.html) in the 5.2 manual: without Preserve Volume, joints shrink as they turn, to nearly nothing at 180 degrees.

[^actions]: [animations](https://docs.blender.org/manual/en/5.2/addons/scene_gltf2.html#animations) on the gltf add-on's page: in Actions mode, an action exports if it's active or stashed on an nla track. the [action editor](https://docs.blender.org/manual/en/5.2/editors/dope_sheet/modes/action.html) has Push Down Action and Stash Action, and [keyframes](https://docs.blender.org/manual/en/5.2/animation/keyframes/editing.html) have `I`.

[^swizzle]: [gltf2_blender_math.py](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/blender/com/gltf2_blender_math.py#L82-L84) at v5.2.3: with +Y Up, a location (x, y, z) is written as (x, z, -y).

[^gltf-export]: the exporter's [`__init__.py`](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py) at v5.2.3: the formats, glb first ([lines 139 to 157](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L139-L157)), uvs and normals on, tangents off, materials Export ([lines 424 to 536](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L424-L536)), selected objects off, +Y Up on, Apply Modifiers off and its warning about shape keys ([lines 618 to 684](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L618-L684)), animation mode Actions ([lines 734 to 751](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L734-L751)), 4 bone influences ([lines 926 to 931](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L926-L931)), GPU Instances off, for children of one empty ([lines 991 to 996](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L991-L996)), and the menu's label ([line 1899](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L1899)). the [gltf add-on's page](https://docs.blender.org/manual/en/5.2/addons/scene_gltf2.html#export) names the panels.

[^cli]: [command line arguments](https://docs.blender.org/manual/en/5.2/advanced/command_line/arguments.html) in the 5.2 manual: `-b`, `--python`, `--python-exit-code`, and arguments running in order. [`bpy.path.abspath`](https://docs.blender.org/api/5.2/bpy.path.html#bpy.path.abspath) turns `//` into the .blend's folder, and [`export_scene.gltf`](https://docs.blender.org/api/5.2/bpy.ops.export_scene.html#bpy.ops.export_scene.gltf) lists every option. the exporter writes to the path it's given as it is, at [line 1152](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/__init__.py#L1152) of its `__init__.py`.

[^collections]: [collections](https://docs.blender.org/manual/en/5.2/scene_layout/collections/collections.html#exporters) in the 5.2 manual: an exporter per collection, Export All, and File > Export All Collections.

[^fbx]: [fbx](https://docs.blender.org/manual/en/5.2/files/import_export/fbx.html) in the 5.2 manual: the format, and the programs and engines that read it.

[^fbx-sdk]: autodesk's fbx sdk 2020 help: [the fbx sdk](https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_welcome_to_the_fbx_sdk_html), a c++ sdk; [what fbx is](https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_welcome_to_the_fbx_sdk_what_is_autodesk_fbx_technology_html), binary or ascii files; and [axis and unit conversion](https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_nodes_and_scene_graph_fbx_scenes_scene_axis_and_unit_conversion_html): objects are made in a right-handed, y-up system, and the implicit unit is the centimeter.

[^fbx-export]: the fbx exporter's [`__init__.py`](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_fbx/__init__.py) at v5.2.3: -Z forward and Y up ([line 311](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_fbx/__init__.py#L311)), a scale of 1.0 with Apply Unit on ([lines 344 to 358](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_fbx/__init__.py#L344-L358)), Apply Modifiers on and Smoothing at Normals Only ([lines 403 to 423](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_fbx/__init__.py#L403-L423)), and Add Leaf Bones on, with its tooltip ([lines 467 to 471](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_fbx/__init__.py#L467-L471)). the [api docs](https://docs.blender.org/api/5.2/bpy.ops.export_scene.html#bpy.ops.export_scene.fbx) also give `global_scale = 1.0`. the manual's [export page](https://docs.blender.org/manual/en/5.2/files/import_export/fbx_legacy.html#export) says the scale defaults to 10, and gives -Z forward and Y up for programs where y is up.

[^three-merge]: [optimizing lots of objects](https://threejs.org/manual/#en/optimize-lots-of-objects) in the three.js manual: every mesh is at least one request to draw, around 19,000 boxes run under 20 frames a second on the author's machine, and merged into one geometry they run at 60.

[^decimate]: the [decimate modifier](https://docs.blender.org/manual/en/5.2/modeling/modifiers/generate/decimate.html) in the 5.2 manual: Ratio is the share of faces kept, counted in triangles.

[^three-lod]: [LOD.js](https://github.com/mrdoob/three.js/blob/r186/src/objects/LOD.js#L106-L136) at r186: `addLevel(object, distance, hysteresis)`, where a level shows from its distance out, and the hysteresis is a share of the distance. [`update()`](https://github.com/mrdoob/three.js/blob/r186/src/objects/LOD.js#L240-L292) picks the level by the camera's distance, and the renderer calls it every frame while [`autoUpdate`](https://github.com/mrdoob/three.js/blob/r186/src/objects/LOD.js#L74-L83) is on, as it starts.

[^instancing]: [duplicate linked](https://docs.blender.org/manual/en/5.2/scene_layout/object/editing/duplicate_linked.html) in the 5.2 manual: the copy's data stays linked to the original's. three's [GLTFLoader.js](https://github.com/mrdoob/three.js/blob/r186/examples/jsm/loaders/GLTFLoader.js#L1683-L1763) at r186 turns EXT_mesh_gpu_instancing into an [InstancedMesh](https://github.com/mrdoob/three.js/blob/r186/src/objects/InstancedMesh.js#L19-L27): many objects with one geometry and material, in fewer draw calls.

[^unreal-lod]: [static mesh automatic lod generation](https://dev.epicgames.com/documentation/unreal-engine/static-mesh-automatic-lod-generation-in-unreal-engine) in the unreal engine 5.8 docs: levels switch by screen size, and Auto Compute LOD Distances works the screen sizes out.

[^gltf-names]: blender's exporter names each gltf node after its object, in [nodes.py](https://github.com/blender/blender/blob/v5.2.3/scripts/addons_core/io_scene_gltf2/blender/exp/nodes.py#L436-L438) at v5.2.3. three's [GLTFLoader.js](https://github.com/mrdoob/three.js/blob/r186/examples/jsm/loaders/GLTFLoader.js#L3757-L3759) at r186 runs every node name through [`sanitizeNodeName`](https://github.com/mrdoob/three.js/blob/r186/src/animation/PropertyBinding.js#L185-L189), which turns spaces into underscores and drops `[`, `]`, `.`, `:` and `/`.

## related

- https://learning.anthnydas.com/graphics/three-js.md
- https://learning.anthnydas.com/graphics/cg-fundamentals.md
- https://learning.anthnydas.com/games/unreal.md
- game dev (soon)
