MODULE // geofx

Terrain for your game from plain words

Ask your AI agent for hills, valleys or riverbeds and get image files ready for Godot, Unity, Unreal or three.js. Preview a tile for $0.50.

Cut runoff channels into a sandstone pass

Branching gullies along the sandstone cliffs at Ochre Pass

At Ochre Pass, the gully filter draws branching channels along the sandstone slopes. The material map puts silt in the wet channels and caprock on the high bluffs.

Height, material weights and wetness maps of Ochre Pass
Height, material weights and wetness, from left to right.

See the terrain spec →

Ridges cast moving shadows as the sun crosses the sky

Ridges shade valleys as the sun moves, in your own engine material.

Compare Ochre Pass at sunrise with horizon shading off and the same sunrise with ridges casting shadows
Ochre Pass at sunrise with horizon shading offThe same sunrise with ridges casting shadows
Ochre Pass at sunrise
Sunrise
Ochre Pass at noon
Noon
Ochre Pass at sunset
Sunset

Use terrain shadows in a material →

Build and shade the hills terrain

geofx // hills.geo.toml
Shaded relief of the hills ground, compiled with Spatial Compiler
Compiled with Spatial Compiler. geofx runs on the hosted API: try it in the Playground. Spec · Report · Full contact sheet

The hills example covers 512 m, with a road, a flat site and a hollow. Choose a map or a perspective view.

Multi-tile worlds and custom elevation maps

Compile matching terrain tiles with world_2x2 or make surface maps from existing elevation data with district_fixed.

Load maps into Godot 4

geofx includes height and material sampling functions, a loader script and lossless import files so you can bind the maps to a terrain shader.

  • godot/hills_ground.gdshaderinc
  • godot/hills_ground.gd
  • godot/hills_ground_demo.gdshader
  • ../hills_demo.tscn
  • godot/hills_height.png.import
  • godot/hills_masks0.png.import
  • godot/hills_masks1.png.import
  • godot/hills_material_id.png.import
  • godot/hills_material_w0.png.import
  • godot/hills_material_w1.png.import
  • godot/hills_normal.png.import

geofx in Godot 4 →

Questions

What maps does a geofx compile produce for terrain?

geofx outputs height, normal, material ID, material weight, wetness, flow, slope and physical maps along with a layout JSON file.

Can geofx process existing elevation data or multiple terrain tiles?

Yes, geofx can generate surface maps from an existing heightmap and compile matching multi tile worlds from a terrain recipe.

What Godot files does a geofx job include?

A geofx job includes a terrain loader script, shader include, demo scene and lossless PNG import settings for Godot.