Verse Library verse

01 Fragment

Explains how UEFN converts pixel colors into terrain geometry during map editing.

verse-library/creating-and-using-custom-heightmaps/01-fragment.verse

// This is a conceptual example of how the engine reads the map.
// You do not type this code. You use the editor tools.

// The engine looks at the pixel color.
// White pixel = High ground.
// Black pixel = Low ground.

// Imagine a pixel at position (10, 10).
// Its color is white.
// So the ground at (10, 10) is high.

// Imagine a pixel at position (10, 11).
// Its color is black.
// So the ground at (10, 11) is low.

// The engine connects these points.
// It creates a slope.
// It creates a hill.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in