texture_mesh
Textures existing 3D meshes from a text prompt, creating PBR maps, UV layouts, and GLB/FBX outputs so untextured models become render-ready.
Instructions
Texture an existing mesh (GLB, glTF, OBJ, STL, PLY or FBX; untextured is fine) from a text prompt.
Builds everything a PBR material needs: a fresh UV layout (keep_uvs=True keeps the mesh's own),
a base color painted by FLUX.2 Klein on views clay renders around the mesh and projected into
the UVs (style_image: an optional picture whose colours and style the front view follows),
ambient occlusion, a normal map from a bump derived from the painted detail (bump 0 to 1, 0 for
none), and roughness (base value, rougher where the paint is darker) and metallic values.
denoise (0.6 to 1.0) is how freely views are painted: lower keeps more of the clay shading.
Best on clean meshes of a few thousand to 50k faces, for example from retopologize_mesh.
Outputs a GLB and an FBX with embedded textures, plus the painted views as PNGs. About 1 to 2
minutes on the GPU, then a few seconds in Blender on the CPU.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_mesh": "<input_mesh>",
"prompt": "<prompt>"
},
"name": "texture_mesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bump | No | ||
| seed | No | ||
| views | No | ||
| prompt | Yes | ||
| denoise | No | ||
| keep_uvs | No | ||
| metallic | No | ||
| roughness | No | ||
| input_mesh | Yes | ||
| output_dir | No | ||
| style_image | No | ||
| texture_size | No | ||
| idle_timeout_seconds | No |