The default heightmap importer from the built-in terrain editor creates decent enough looking terrain. But if you are importing your terrain in chunks it is tedious to do the following for every chunk:
- Select the heightmap.
- Select the colormap.
- Set the position of the chunk.
- Click generate.
My current plan is to use 20 chunks so there’s no way I can do this manually every time I want to see how my terrain looks ingame while I iterate on it.
I am wondering if there is any way I can automate the above process.
I see that there is a service called HeightmapImporterService. Maybe this is what the terrain importer uses on the backend but all the methods are only available to core scripts. Is it possible to run a script with core permissions?
I’ve also tried to look at the source code for the built-in plugin so I could take out what I need. But trying to insert the TerrainEditor.rbxm
model located in Roblox\Versions\version-latest\BuiltInPlugins\
gives me a “The file is corrupted” error. I read somewhere that this is possibly an attempt by Roblox to hide the source code of their plugins.
Any ideas?