run_cubemap2hdr
Converts an LDR cubemap .vtf into the HDR version Source loads in HDR mode, producing the missing half of a map's reflection set offline without recompiling. Input must be DXT1.
Instructions
Converts an LDR cubemap .vtf into the HDR one Source loads in HDR mode, writing .hdr.vtf beside it. A map compiled without -both, or one whose cubemaps were built in LDR, renders its reflections from the LDR set in both modes; this is the offline way to produce the missing half without going back into the game. Input must be DXT1 -- the tool refuses anything else, and this says so before running. Extract one from a map with run_pakfile_extract. Drives ficool2's cubemap2hdr, a separate download; health says whether it is installed.
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": {
"vtf": "<vtf>"
},
"name": "run_cubemap2hdr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vtf | Yes | Path to the LDR cubemap .vtf, absolute or repo-relative. | |
| confirm | No | Required (true) to run this tool: it writes or executes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| vtf | Yes | ||
| note | Yes | ||
| tool | Yes | ||
| bytes | Yes | ||
| hdrVtf | Yes | ||
| header | Yes | ||
| source | Yes | ||
| written | Yes | ||
| exitCode | Yes | ||
| stdoutTail | Yes |