run_tga2skybox
Builds a cubemap .vtf from six TGA faces and writes both LDR and HDR sets, creating a skybox from images without running the map in-engine. Reads and writes only in the faces' directory.
Instructions
Builds a cubemap .vtf from six TGA faces -- rt.tga, lf, bk, ft, up, dn -- and writes both the LDR and the HDR set. This is the one part of cubemap work that does NOT need the engine: buildcubemaps captures a cubemap from inside a running map, this makes one from images. Drives ficool2's tga2skybox, a separate download; health says whether it is installed. Reads and writes only in the directory the faces are in.
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": {
"dir": "<dir>",
"base": "<base>"
},
"name": "run_tga2skybox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Directory holding the six TGA faces. The .vtf files are written here too. | |
| base | Yes | Name shared by the faces: `sky_x` for sky_xrt.tga ... sky_xdn.tga. | |
| confirm | No | Required (true) to run this tool: it writes or executes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| dir | Yes | ||
| vtf | Yes | ||
| base | Yes | ||
| note | Yes | ||
| tool | Yes | ||
| bytes | Yes | ||
| faces | Yes | ||
| hdrVtf | Yes | ||
| header | Yes | ||
| written | Yes | ||
| exitCode | Yes | ||
| hdrBytes | Yes | ||
| hdrHeader | Yes | ||
| stdoutTail | Yes |