Overview

The Level Step system is the key aspect of terrain generation in World Creator and the main reason behind its fast terrain generation speed (aside from utilizing heavily GPU-optimized filters). This article briefly explains what the system is and how to make the most out of it.


TABLE OF CONTENTS


What exactly is the Level Step system?

When selecting a 1k terrain with 1/4th precision, World Creator does not only compute the terrain on a 4k map and display it to you. Instead, it iteratively works with an upsampling algorithm: starting on a 2x2px grid and increasing to 4x4px, 8x8px, and so on; doubling the resolution at each step.


This is the basis of the level-step interface that is present in each filter and various other UI elements throughout World Creator. As such, adjusting the strength of a filter at level 8 modifies the influence of that filter on the 8th texture in the upsampling chain, which equates to the 8th or 256x256px texture.


Upsampling allows World Creator to work with different resolution versions of a terrain, which significantly reduces rendering time. For example, with particle-based erosion, the sediment must move from where it is being eroded to where it settles. Sediment may have to travel considerable distances depending on the surrounding terrain. If this process is calculated on a high-resolution image, the sediment may have to travel several hundred pixels, all of which will need to be processed. Working at lower resolutions means that the algorithm requires fewer steps to cover the same distance on the map, resulting in a significant reduction in computation time.


An additional advantage of the upsampling workflow is the impact the lower terrain levels have on the shape of the entire terrain. This effect can be observed in the following pictures where the low and medium terrain levels mainly impact the overall shape of the generated terrain, whereas higher levels contribute minor details to the final terrain.


base terrainlow levelsmedium levelshigh levels


This can again be observed clearly in the two merged images below. Although the combination of low and medium levels makes the most significant contribution to the final terrain form, the extra high levels are primarily useful for producing a more defined effect on the ultimate resolution.

It's worth noting that this depends significantly on the filter and its settings. For instance, in this erosion process, the rain strengths used for each level are lower for the higher ones, which has a considerable impact on the outcome.


low & medium levels combinedfinal erosion


Proper usage of the Level Step system

Filters

In general, filters operate more quickly on lower levels. That is because just about all filters/layers operate on a per-pixel basis. On level 8, it would represent 256x256px, i.e., 65,536 pixels. On the other hand, a texture at level 11 measures 2,048 x 2,048 px, i.e., a total of 4,194,304 pixels.

Even though modern GPUs are very efficient at executing such parallelized processes and World Creator employs highly optimized and sturdy algorithms, you can observe how the higher levels may become more expensive.
To achieve maximum performance, try decreasing the higher levels to maintain a visually pleasing result and avoid unnecessary computational overhead. This is particularly true for the erosion and simulation filters because they frequently run multiple iterations per level per pixel, making higher levels even more costly.


Shape Layers

Shape layers generally have a lower performance hit with the level system. When working with shape layers, the main consideration is how much detail you want to include in your terrain and how strong the filter effects should be.


By looking at the images below, it's clear that the shape layer becomes sharper as the level step increases because it's blended with the terrain at a higher resolution.

On the other hand, if you look at the same terrain with filters, you'll see that the effect the filter stack has on it diminishes at a higher level step. This occurs because the filters have fewer levels to carry out their work, and they tend to overlook the lower levels, which frequently have more significant effects on the general terrain shape. This was already explained above.


low level basemedium level basehigh level base
ow level filtersmedium level filtershigh level filters

 Next: Shape Layers in World Creator