No worries at all! I’m glad it was some help.
I’m afraid the White Box Tool itself can only be edited at edit time and not runtime so is not exposed to Lua at this time (Lua is runtime only). The White Box Tool is however exposed to Python which can be used at edit time (but not runtime… sorry it’s all a bit confusing ).
If you checkout
dev/Gems/WhiteBox/Editor/Scripts/ you can see some Python scripts that generate meshes at edit time. You can run them in the Editor by using
pyRunFile from the console and the absolute path for one of those files (a relative one might work but I can’t quite remember off the top of my head).
Aside: One neat trick you can use is to
cd to that folder and then run
where Staircase.py | clip to copy the full path to you clipboard without faffing about in Windows Explorer.
For something like custom map generation (sounds cool btw!) you would most likely need to roll your own solution similar to what we did internally with White Box in
LegacyRenderMeshComponent, but being brutally honest I wouldn’t recommend this.
I take it you want to generate a grid and then use noise or some such to generate a terrain? Is that right? You might be able to repurpose the existing terrain system in Lumberyard to do this which might be easiest.
There’s also interesting things on the horizon we can’t really talk about at the moment but that might help with what you’re asking about a little down the line…
Let me know if you have any more questions!
Best of luck!