Raise Landscape to match static meshes

I just took a look at the C++ API for landscapes and I don’t see any functions that would obviously affect the elevation of a particular vertex. That being said, I doubt you could do this in blueprints, maybe in C++ if you dug deep into their ALandscape class’ functionality.

I know that you can load in height maps, but you would ahve to generate them by your own…
But another thing you should search for is the distance field that is available in the Material editor to blend the landscape features on the asset Distance Field material blend - Unreal Engine - YouTube

Hi,

I am looking to make a sandswept environment and i really need a tool to set the landscape height match the height of all static objects in the world so i can then apply erosion to the landscape and gain the effect of sand pooling up against buildings/rocks ect as seen in the attached.

It will be a colossal time saver if i could just hit ‘generate’ and the apply a quick erosion brush. I figure someone has made this already but im not sure what title i would be searching for.

Any feedback would be appreciated. Cheers

This is an interesting idea. I personally haven’t heard about this being done before, but I imagine you could write a function that loops through each vertex in the landscape, performs a raytrace upwards, and if it hits an object, elevates that part of the landscape by the distance the raytrace traveled. Are the static meshes in your level all at the same elevation, or wildly different elevations?

Hey janimationd, thanks for the reply. The static meshes would be at different elevations both at different altitudes and differing levels of ‘submersion’. Im hoping landscape control per vertex is open to blueprint as im sorry to say i still havent got around to proper scripting in ue4

I was thinking i want a clear defined line between the 2 objects not a normal blend but yeah i think the distance field could be perfect for detecting where to raise terrain but that would make it a shader based effect on the landscape so it wouldnt effect landscape collision right?

yes, as far as I am aware of, shaders can not affect standard collision. Another thing you can do a search for is ‘blutility’. It allows to create scripts for automation in editor, but I haven’t look much in it.