Model Replacer
Replace any model of the disc with your own, or remaster the original - smoother curves, larger cleaned-up textures, shine - per model; replace its texture; export the original model and texture to work from.
The Model Replacer (Characters & Animation section) changes how a model of the disc looks, everywhere the game draws it. For each model you can:
- remaster the original: smooth its curves, enlarge and clean up its texture, give it shine,
- replace its mesh with your own glTF,
- replace its texture with your own image,
- export the original model and texture, to work from.
Every model has its own settings, kept in the mod's replacers.toml. Equipment (worn armour and held weapons) can be
replaced too: this is the only way to change it.
Opening a model
Double-click a model in the Content Browser's Game > Models, or an equipment model in Equipment, or use the Asset Viewer's Model Replacer button. Then press Replace / remaster this model.
Models this mod replaces lists every model the mod already changes; Remove this replacer takes one out.
The viewport shows the Original, the Result, or both Side by side, built exactly as the cook will build it.
Mesh
- Original keeps the disc's mesh (to remaster it).
- Import glTF... copies a model of yours into
assets/sources/and uses it instead. - Keep the original texture uses the disc's texture on your mesh.
Note A rigged replacement must be rigged to the original's skeleton (export it first, below) or carry every clip the game plays on that model. One rigged to the original skeleton can carry none: the disc's clips play on it.
Remaster
| Setting | Does |
|---|---|
| Smoothing | Curved-surface subdivision: each triangle becomes 4, 9 or 16, following the curves. Bone weights are kept. |
| Crease angle | Edges sharper than this stay straight |
| Texture size | Enlarge the texture 2× or 4× |
| Texture cleanup | Smooths the PS2's colour dithering before enlarging |
| Texture detail | Adaptive sharpening after enlarging |
Each has an R to put the default back.
Material
How shiny it is:
- None: as the disc draws it.
- Guess (by name and colour): metal looks like metal, cloth like cloth, guessed from the texture's name and colours.
- Custom: set the shine and gloss yourself.
Texture
Import PNG... (or JPEG, TGA, BMP) copies an image into assets/sources/ and makes it the model's texture, over the
glTF's and the disc's. Use the model's own goes back.
- Any size: UVs are 0 to 1, so a texture twice as large is twice as sharp.
- It is cooked like the disc's (compressed, with mipmaps), with the remaster's texture settings.
- Its alpha is kept as given, in the disc's meaning: the lit darkening mask, or transparency on the few models that have it. So a texture you exported and painted over comes back right.
- Models that share one disc texture share the replacement.
Export the original
- Export model (.glb)... writes the mesh as glTF 2.0 (+Y up, metres, the texture inside) with its skeleton: one joint per bone in the game's order, the bind pose as the rest pose, and every clip of its archive that fits, as glTF animations. Re-imported with Import glTF... its bone numbers are kept, so the disc's clips still play on your version. Equipment has no clips and exports unskinned.
- Export texture (.png)... writes the disc texture as decoded, to paint over.
Tip The quickest remodel: export the model, change it in Blender keeping its armature, and import it back. It plays every disc clip with no rigging.
Warning What you export comes from the disc. Change it before you share it: a mod may not contain the disc's own models or textures.
Saving and cooking
Save replacers.toml (or Save All) writes the settings. Then Cook the mod: the cook builds every replaced model, which is what the game reads. Remastering a disc model needs the disc image (the original is read from it).
# replacers.toml
[model."BG/DATA/KOBOLD.LMP/kobold"] # the model; equipment is "gear/weapon/<group>/<id>" or "gear/armour/..."
source = "assets/sources/kobold.glb" # optional: your mesh (with its texture and clips)
keep_original_texture = false
texture = "assets/sources/kobold.png" # optional: your image
tessellation = 2 # 0 off; 1, 2, 3: 4, 9 or 16 triangles from each
crease = 40
texture_scale = 2 # 1, 2, 4
texture_cleanup = true
texture_detail = 0.35
material = "custom" # none, auto, custom
specular = 0.5 # custom: shine 0..1
gloss = 32
Replace a disc model's clips with the Animation Replacer, and give it a node-graph look with the Material Editor.
