Es Vedrà for real: building KeepLanding's final runway from the IGN terrain model

KeepLanding is a landing game, and its Challenge ends at Es Vedrà, the 382 m rock off the south-west coast of Ibiza. The first version of that last level used a made-up rock, with a cave inside it and a set of local legends. Then we asked for the real one: “a realistic Es Vedrà mode”, in the words of docs/ES_VEDRA.md. The rock and the sea around it are now the Instituto Geográfico Nacional’s terrain model, and the runway is a fictional strip cut into that real ground.

This article follows the heights from the IGN’s server to the runway: what the file contains, how the game reads it, how we picked the spot, and what we had to do to the rock to make 450 m of it landable. It ends with what is still unfinished. KeepLanding is not out yet; it is coming soon to Android, iOS and Steam, so there is nothing to play and nothing to buy here.

What the grid contains

The model is the MDT05, the IGN’s 5 m terrain model built from PNOA-LiDAR flights. We downloaded it on 2026-09-28 from the IGN’s WCS (https://servicios.idee.es/wcs-inspire/mdt, coverage Elevacion4258_5), for the box 38.855 to 38.898 N and 1.180 to 1.235 E. The original ASCII grid and a binary copy sit in game/assets/es_vedra/, together with a text file that carries the licence.

The binary copy is es_vedra_mdt05.f32, with a small JSON header beside it. The grid is 1,221 columns by 954 rows of little-endian float32, rows from north to south, in metres above sea level. The step is 4.5045 × 10⁻⁵ degrees on both axes. That is about 5.0 m north–south and about 3.9 m east–west at this latitude, so the grid covers roughly 4.8 km by 4.8 km: Es Vedrà, its neighbour Es Vedranell, and the coast at Cala d’Hort. We checked the file against the code: 1,221 × 954 is 1,164,834 values, which is exactly the length of the .f32, and the highest of them is 382.0 m.

Compare that with the 25 m model in Chronotopia’s ground under El Prat and Ibiza. It is the same institute and the same kind of service, but five times finer, and on a rock that is 382 m high and a few hundred metres across the finer grid matters.

From latitude and longitude to metres

The game works in metres, the grid in degrees. game/scripts/terreno_real.gd converts once, at load time, using the latitude of the middle of the grid:

var lat_media := _lat0 + filas * _paso * 0.5
_dx = _paso * 111320.0 * cos(deg_to_rad(lat_media))
_dy = _paso * 110574.0

After that, a_metros(lat, lon) gives metres east and north of the south-west corner, and altura(e, n) reads the height there. Between grid points it interpolates bilinearly: the two rows are interpolated along the columns, then the results are interpolated between the rows. Outside the grid the function returns 0, which is sea. The comment in the file says that over 5 km the error of this flat approximation is a matter of centimetres.

Finding 450 m that are almost flat

The runway cannot go just anywhere on a cliff. We did not place it by eye: a search over the model chose the site. The criteria are written in the constants’ comment in terreno_real.gd: 450 m long, a slope between 2° and 12° taken uphill, as close to a plane as possible, and a 4° approach path clear of rock coming in from the sea.

The result is at 38.8647 N, 1.1926 E, on the ridge of Es Vedrà’s west tail, heading 060 and climbing towards the summit at 6.3°. At the threshold the grid reads 124.1 m above sea level. That is the height of the ground where the runway starts, not the height of the rock.

The constants in the file are explicit about the catch: even at the best site found, the terrain is not flat. It departs from a plane by 15 m and drops 30 m from one side to the other. A 450 m strip with a 24 m deck on that ground would have one edge in the air and the other buried, so the strip needs to be built into the rock.

A terrace cut into the rock

The solution is con_bancal(), “terrace” in Spanish. It replaces the ground near the runway with a plane at the runway’s own slope, and blends back to the real ground at the sides. This is the function, with the comments translated and trimmed:

func con_bancal(x: float, z: float, semiancho: float, talud: float, largo: float) -> float:
    var h := altura_pista(x, z) - cota_umbral
    var plano := -z * tan(deg_to_rad(PISTA_PENDIENTE_DEG)) if z < 0.0 else 0.0
    # Along the strip: from the threshold (a bit of margin in front) to the end.
    var dz := 0.0
    if z > 40.0:
        dz = z - 40.0
    elif z < -largo - 30.0:
        dz = -largo - 30.0 - z
    var d := maxf(absf(x) - semiancho, 0.0) + dz
    if d <= 0.0:
        return plano
    var t := clampf(d / talud, 0.0, 1.0)
    t = t * t * (3.0 - 2.0 * t)
    return lerpf(plano, h, t)

Coordinates are in the runway’s frame: the threshold at the origin, the runway towards -Z, x to the right. Inside the terrace, the height is the plane. Outside it, a smoothstep takes the height back to the natural ground over talud metres. TerrainMat.height_at calls it with a half-width of 36 m (the 26 m half-width the game keeps flat under any runway, plus 10) and a 70 m blend. The deck itself is 24 m wide (RunwaySegment.WIDTH).

How much rock does that move? ES_VEDRA.md says up to 46 m of cut and 53 m of fill within 36 m of the centreline. We ran the same functions over the same grid, sampling the terrace footprint every metre across and every 2.5 m along. The deepest cut is 45.9 m, at the left edge near the start, and the deepest fill is 52.6 m, at the right edge of the threshold, so the document’s numbers hold. The diagram shows one cross-section, halfway down the runway, computed the same way.

A cross-section of the Es Vedrà runway terrace 225 m from the threshold: the real ground falls from 159 m at the left edge of the 72 m wide terrace to 112 m at the right edge, while the terrace is flat at 149 m, so it is cut into the rock on the left and built up on the right

At that point the ground is 10.5 m above the terrace at the left edge and 36.7 m below it at the right. Ahead of the threshold the drop is steep: about 80 m within the first 40 m, according to our recomputation from the grid, and the terrace itself ends 40 m in front of the threshold. Past the end of the runway the ground rises: 150 m beyond it, the grid is 164 m above the threshold. That is the summit wall the document mentions.

It is also the one runway in the Challenge where you have to stop. Every other deck collapses a few seconds after you touch down, so you take off again; the last platform has no countdown, and the run only counts as finished once the aircraft is down, settled and below a stopping speed (runway_manager.gd). The briefing before it says so: gear down, flaps, and brake until you stop.

A sea floor that stays under the waves

The MDT is 0 over all the sea, the same height as the sea plane, and that caused the first visual bug. The waves in the game move ±2 m, so the “terrain” at 0 showed through as beige patches across the water in the first capture, on 2026-09-29. The fix is a rule in altura_pista(): below 2 m, the coast drops 16 m for every metre it is below that line.

if h < ORILLA:
    h -= (ORILLA - h) * 16.0

With ORILLA at 2.0 m, a sea point at 0 ends up at -32 m, and the coastline stays continuous because the rule is zero at 2 m. The sea itself is a plane at the model’s zero, in the water group, and touching it counts as a splash-down.

In-game screenshot of KeepLanding: Es Vedrà seen from the sea, a dark rock with an orange column over it and a smaller islet beside it

The air and the birds

The level’s entry in game/scripts/biome.gd sets the wind to 0.85 and the turbulence to 0.95 on the game’s own scale, with a microburst as its weather event. A comment in DirectorRitmo records why that matters: counted by its nominal wind alone, Es Vedrà used to come out as the easiest runway of the whole run, so the air is now part of the score.

The rock is dressed with little. The dressing code scatters up to 70 stunted pines and fallen boulders, only on land and only where the ground under them is gentle, and the plan for this runway seeds no obstacles. The one hazard is two flocks of gulls over the approach path, one on each side of the centreline, which the pilot has to steer around, and hitting one is a bird strike. The comment gives the reason: Es Vedrà is a bird reserve.

How the wind reaches the aircraft is another story, and a bug, in the wind the aircraft never felt.

What it still gets wrong

The data attribution belongs next to the data, so here it is: MDT05 © Instituto Geográfico Nacional (IGN), PNOA-LiDAR, CC BY 4.0, modified by us (cropped, converted to binary, and cut with a terrace where the runway goes). The game’s page is keeplanding.com, and KeepLanding on Vedratic has what we can say about it today.