Landscape API – Landscape generation with Perlin noise

If you use ALandscape in your scene, you may want to program the heights on it using code instead of manually brushing it in. To access the ALandscape object and its functions inside of your code, you must compile and link in the Landscape and LandscapeEditor APIs.

Landscape API – Landscape generation with Perlin noise

Getting ready

Generating a landscape is not terribly challenging. You need to link in both the Landscape and LandscapeEditor APIs, and also have a programmatic way to set the height values across the map. In this recipe, we'll show how to use the Perlin noise for this.

Previously, you may have seen Perlin noise used for coloration, but ...

Get Unreal Engine 4 Scripting with C++ Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.