Saving a game mesh as a model
Open Game library, pick Meshes, pick the mesh and press Open it to replace it. On the mesh’s page, the Model card has:
Start from this file. It carries the names Studio needs to put your model back in the right places.
Replacing a game mesh
1
Open the mesh
In Game library, Meshes, pick it and press Open it to replace it.
2
Check its sections
The Materials card lists the mesh’s sections by material name, with their triangles. A model you bring is matched to these sections by the names of its materials.
3
Bring your model
In the Model card, press Replace with a model file… and choose an FBX, GLB or glTF.
4
Read what was done
The card says what went in, for example
Your model is in place of the game's mesh: 3 detail levels, 54 bones., and anything Studio had to fill in. Changes to this file shows the mesh is yours.What stays the game’s
Your model takes the place of the geometry only. The mesh’s materials, its number of detail levels and its skeleton stay the game’s.What the model must carry
- Material names. Each part goes to the section whose material has its name. A file saved by Studio names its parts
RS_LOD<level>_SECTION<section>_<material>; keep those names and the part goes to that level and section exactly. A part whose name matches no section is refused. - UVs. Keep the UV sets the game’s mesh has. A model with no UVs is refused where the shader needs them.
- Normals. Each part needs triangles with normals.
- Per-vertex data the shader reads. Some game meshes keep a colour or mask on each vertex. A model without it takes the value of the game’s nearest vertex. A file saved by Studio carries a colour attribute that lets Studio match vertices exactly; keep it.
- The game’s rig. Every bone must be a bone of the game’s skeleton, by name, in the same rest pose. A bone of your own, or one renamed, is refused.
- Weights. Every vertex must be weighted, and each vertex’s weights must add up to one. A vertex may have at most as many bone influences as the game’s section keeps.
Options for a skinned mesh
Under When a model is brought in, on the Model card of a skinned mesh:
A changed rest pose is refused for character meshes and for rigs with extra procedural bones.
Detail levels
The game draws simpler copies of a mesh from far away. A model with one detail level fills the game’s other levels from it: each one is simplified to the share of triangles the game’s level has, keeping the weights. A model with all the levels (as Save as FBX… writes them) gives each level its own geometry. You cannot change how many levels a game mesh has, or see the simpler ones in Studio: the preview draws the finest level only.A cosmetic’s model
A cosmetic of your own takes a model in its Model part: Import mesh… for an FBX or GLB, or Edit in Blender to send the item to Blender and back. Skinning options has Fill missing weights and Fallback bone. The model follows the same rules as a skinned mesh above, on the skeleton of the item it was made from. See cosmetics.- A cosmetic keeps the sections and materials of the item it was made from. A part with no matching material joins the nearest section; a cosmetic cannot gain a material section.
- Its lower detail levels are made from your model, as above.
- A model that is the game item’s own, saved and brought back unchanged, does not make the item yours: see an unchanged copy is refused.
What Studio refuses
Studio refuses a model, and says why, when:- a part matches no section of the game’s mesh, or the model has nothing for any of them;
- a bone is not in the game’s rig, or its rest pose differs (unless the rig allows a changed pose and Take its changed bone positions is on);
- a vertex has no weights in a skinned section, too many influences, or weights that do not add up to one;
- the model has no UVs where the shader needs them, or no valid triangles or normals;
- a position is not a number, or too large for the game’s vertex format;
- a detail level appears twice, or a level has no geometry.
What Studio does not do yet
- Edit a mesh. A model is made in another program and brought in again.
- Show a mesh’s lower detail levels, its bones, or the game’s own shaders on it.
- Composite meshes, made of parts that move apart (break-apart props, build kit pieces), can be saved and brought back.
- A rig of your own, or one more bone. Only the game’s rig comes back.
On the command line
import ... mesh takes --skeleton, --keep-rig, --no-weight-transfer and --weight-bone <bone>, the options above. See the command line.