Equipment Meshes ​
The mesh library holds everything that is worn, held or painted onto a character: weapons, the body parts and attachments of armor, facial features, and the materials that colour them. Entity Assets > Equipment Meshes shows it as a tree with a search box and a filter, and edits the settings of the selected mesh.
Meshes are model files: .glb, .gltf, .fbx or .blend models, .obj files, or .tres and .res mesh resources. A model that Godot imports as a scene (.glb, .gltf, .fbx, .blend) must hold one mesh node: the library takes the mesh of that node. Which format to use, and how to prepare a piece, is on Supported files and best practice; a guided example is the walkthrough.
They live under res://src/data/meshes/, and the folder a mesh is in is what it is:
| Folder | What it holds |
|---|---|
equipment/weapons/<category>/ | Weapons, grouped by category (swords, bows, staves) |
equipment/body_parts/<tag>/<part>/ | The body-part meshes of modular characters: a chest plate, boots, gloves. <tag> is the equipment tag of the skeleton (humanoid); <part> is head, torso, upper arm, lower arm, hand, hips, upper leg, lower leg, foot |
equipment/attachments/<tag>/<slot>/ | Pieces that attach to a point: helmets, cloaks, shoulder guards, belts. <slot> is the attachment point |
facial/<skeleton tag>/<feature>/ | Eyes, eyebrows, ears, nose, teeth, hair, facial hair |
materials/<category>/ | Materials (metals, woods, fabrics) |
Skins ​
A skin binds a piece to the bones of a skeleton, so the piece bends with the character. You only need skins when the parts of a modular character have different bones. Some asset packs have parts with more bones than others (a hand with fingers, a boot with none): each part binds only the bones it uses, so each part needs its own skin to fit the skeleton properly. A weapon, a shield, a helmet on a point, or any mesh whose parts all use the same bones needs no skin, and a mesh with no skin always works.
The skin of a piece comes from the first of these:
- The skin in the mesh settings: the metadata
skinof the mesh. In a.tresor.resmesh it is inside the file; for a model it is in the mesh settings file. Settings > Find & Link All Skins sets it from the companion file below. - The skin of the mesh node of a model (a
.glbor.fbxmade on a skeleton carries the skin of its mesh with it). - A companion file: a second file with the same name where
_meshis replaced by_skin(plate_chest_mesh.tresandplate_chest_skin.tres), found by Find & Link All Skins.
When the piece is put on a character the skin is remapped to the bones of that skeleton: a skin that already uses the Godot humanoid bone names is used as it is; one that uses the bone names of the packs the toolkit knows (upperarm_l, thigh_r, spine_02) is renamed and its bind poses are recomputed from the skeleton; bones the skeleton does not have (the dynamic hair, cloth, cape, arm and leg bones of the packs) are attached to a main bone chosen from their name: hair to the head, cloth to the hips, capes to the upper chest. A piece with a skin shows a link mark in the tree, and the info panel says where the skin comes from.
The Skeletons page says which skeleton kinds use parts at all.
The items you make point at these meshes, and the equipment types say which body parts a piece replaces.
The editor ​
The tree lists the meshes by folder with their type. The Tree filter chooses what to show, and the line at the bottom counts equipment, facial meshes and materials.
| Control | What it does |
|---|---|
| Search, Refresh | Filter; read the folders again |
| Import | Copy mesh files into the library; you choose the category |
| Settings > Add Weapon Category | Makes a folder for a new kind of weapon (daggers, crossbows) |
| Settings > Add Skeleton Equipment Tag | Makes the folders for a new kind of skeleton (humanoid, beast, undead): a body_parts/<tag>/ folder with one folder for each body part, and an attachments/<tag>/ folder with one for each attachment point |
| Settings > Add Material Category | Makes a folder for a kind of material |
| Settings > Find & Link All Skins | Looks for the _skin partner of every mesh and links them |
| Settings > Validate Database | Checks the whole library and lists errors (red) and warnings (yellow): missing files, models with more or fewer than one mesh node, and settings kept for a file that is gone |
| Settings > Clean Up Metadata | On the selected mesh, removes the old whole-mesh material settings (allowed, preferred and category) and keeps the per-surface ones |
| Settings > Generate Thumbnails | Makes the preview pictures |
Pictures ​
Every mesh in the tree has a picture, made by the editor and kept in res://src/data/meshes/.thumbnails/ (Settings > Generate Thumbnails makes them all again). The picture of the mesh you select is shown big at the top of the panel on the right, with its name, its place in the library and its file.
Settings of a mesh ​
Select a mesh to see its category and the settings it can have. They are saved as you change them: in the mesh file itself for a .tres or .res mesh, and in the mesh settings file (res://src/data/meshes/mesh_settings.tres, under the UID of the model file) for every other format, because Godot cannot save into an imported file. A mesh looks the same either way: you never open the settings file.
Material constraints ​
Every surface (layer) of a mesh can be restricted to some materials, so a player or an item cannot paint a sword blade with fabric:
| Control | What it does |
|---|---|
| Layer | Which surface of the mesh you are editing ("Surface 0: blade") |
| Category filter | Shows the materials of one category |
| Available / Allowed materials | Move materials between the two lists with Add Selected and Remove Selected. A surface with no allowed list accepts any material |
| Preferred material | The one used when nothing else is chosen |
Weapons ​
A weapon mesh has three more settings, with fine steps (0.001):
| Setting | What it does |
|---|---|
| Position offset, Rotation offset (degrees) | Fine-tunes how the weapon sits in the hand. Use it when the model's grip is not at its origin |
| Enchant VFX position | Where the glow of an enchantment appears on the weapon |
| Projectile spawn point | Where arrows, bolts and shots leave the weapon |
These are set in the 3D view of the weapon too: it is held in the hand of the figure (a skeleton you choose), and the tools above the view (Grip, Enchant, Spawn) put handles on it. The handle you picked has the move gizmo: hold its red X, green Y or blue Z arrow and drag to move it along that axis only (Ctrl: steps of a centimetre; Local axes turns the arrows to the weapon's own).
The weapon is held by the grip of the skeleton (set once per skeleton in Skeletons), and a weapon's pivot should be its handle. The position and rotation offsets are only for a weapon whose model does not have its pivot at the handle.
See also ​
- Skeletons for the skeletons these go on, Items and Equipment Type.
- How the mesh library is built.