PS: Currently I’m just importing a heightmap and a texture. Later on I want to augment this process with a GLTF scene that will contain the building, streetlights, signs, etc.
This is a process I have created for importing map chunks into my level.
I am looking into creating an editor utility that would allow me to just press a button, which would then perform the import actions for me, in the following order:
- Open a window to select a heightmap
- Open a window to select an annotation texture
- Open a dialogue to assign an X and Y coordinate to the landscape tile. (The landscape tile would be 12400 x 12400 units in size after creation so the X and Y coordinate would work in multiples of 12400)
- Create a landscape tile
- Assign the height map to landscape tile
- Set overall resolution of landscape tile to 125x125
- Set scale of landscape tile to 100 x 100 x 1
- Set location (taken from step 3) of landscape tile (0,0 would be X=0,Y=0 in World) (0,1 would be X=0,Y=12400 in World), (0,2 would be X=0, Y=24800 in world) etc
- Import the Annotation Texture to Content/PCG/Annotations
- Create a material instance of a preset material
- Assign Annotation Texture to the two texture parameters of the Material Instance
- Assign Material Instance to landscape being created.
- Create landscape.
Any guidance regarding how to do this?