EXPORT HEIGHTMAP

Spring EngineLua Scripts

15
1448 (3 today)
No votes yet

File Information

Title / Version EXPORT HEIGHTMAP
License Freeware / Free
Filename cmd_heightmapexporter.lua
Filesize 8.69 KB
Date 01/30/2015 - 14:22
Changed 01/30/2015 - 14:24
Publisher / Author zoggop (Uploaded by zoggop)
Keywords

Description

the only reason to use this i know of is to export a dynamically generated heightmap. static heightmaps can be extracted with mapconvng.

usage:

place in LuaUI/Widgets/
in game, press enter and execute these commands:

/luaui exportheightmapppm
/luaui exportheightmapraw
both export images of the heightmap to spring userdata directory, as .pgm or .raw
.raw is photoshop raw

/luaui exportheightmaptxt
exports a text file of the heightmap. have not tested, merely kept the function from earlier script version

/luaui exportslopemapppm
/luaui exportslopemapraw
/luaui exportslopemaptxt
export images of the slopemap, both normalized and absolute