ue_landscape_import_heightmap
Overwrite an Unreal Engine landscape's heightmap by importing a local image (PNG, EXR, TGA). Supports 8-bit and 16-bit float formats to preserve high-precision terrain data.
Instructions
Sovrascrive l'heightmap di un landscape con un'immagine dal disco.
L'immagine viene importata come texture e disegnata in un render target temporaneo, che è l'unica forma in cui Unreal accetta un heightmap da script. Sovrascrive il terreno esistente: non è annullabile oltre l'undo dell'editor.
Args: image_path: file locale (PNG, EXR, TGA…). Va portato alla risoluzione del landscape prima: il render target non lo riscala. label: quale landscape, se il livello ne ha più di uno. rt_format: "RGBA8" (8 bit, 256 livelli di altezza) | "RGBA16f" | "RGBA32f". Per un heightmap a 16 bit serve un formato float. from_rg_channel: solo per i formati float — legge l'altezza dai canali R e G invece che dal solo R, che è come Unreal codifica i 16 bit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| rt_format | No | RGBA8 | |
| image_path | Yes | ||
| from_rg_channel | No |