Export heuristics
Exported values whose true value depends on runtime game state or on what a record means to a player. The export gives the static value or an approximation.
Book export
Shape in Book export JSON format.
| Field | Code | Why |
|---|---|---|
value | The static base price | The sale price depends on Speech, perks and factions at runtime |
content when DESC is blank and menuArtFormId is set | A generated placeholder, contentIsPlaceholder: true | The book’s content is the art |
BookLocation.source container, npc, vendor | Reachability, not a guarantee | Leveled lists are rolled at runtime |
isPersistent | The record’s Persistent flag, read as “possibly quest-related” | The flag is also set on other always-loaded references |
hasScript | Set when a VMAD is present | A heuristic: a script doesn’t say what it does to the book |
level, count on a leveled list entry | Only for a direct LVLO entry, else null | A nested chain has no single level or count |
How hasScript merges across overrides is in Rule of One merge.
Tests: BookReachabilityTests, LocationMergerLeveledListTests.
Worldspace maps
What the map layers draw, see Worldspace maps.
Map shading
With --hillshade, every lit pixel of a map, ground, terrain LOD tile, object face or grass
tuft, is multiplied by one factor (MapShading.Factor), in one pass, the
lighting layer:
factor = clamp(1 + k (N·L - Lz) + cartographic, 0.55, 1.35)
N is the unit normal of what the pixel shows, L the direction toward the light and Lz its
height, so flat ground keeps its color under every light. cartographic holds the terms that
don’t come from the normal: on the raster-records ground and on what stands on it, the broad
relief and curvature of the surface (see Hillshade);
everywhere, the contact occlusion. The bounds apply to the sum.
| Value | Code | Why | Basis |
|---|---|---|---|
k = 0.8, the same for every surface | MapShading.Contrast | A slope reads the same on the ground, on a LOD tile and on an object: a road piece laid on a slope blends into it | Design |
| Factor between 0.55 and 1.35 | MapShading.MinShade, MapShading.MaxShade | A slope facing away keeps its color readable; under a low sun a whole mountain side reaches the upper bound instead of turning white | Design |
Without --hillshade, nothing is shaded | MapOptions.Lighting null | The option is the map’s light: without it, the map shows the colors alone | Design |
| An object’s normal map keeps half its tilt: red and green times 0.5, blue as it is | MapShading.NormalMapStrength | Under this formula, a vertical view shows the whole tilt on pieces that repeat across the map: at full strength Road01_n and Dirt02_N (mean tilt 25 to 30 degrees) turn cobbles and dirt lumpy and hide the stones their diffuses already paint. A slope cap doesn’t help: under 3% of their texels pass 60 degrees | Design, checked on Riverwood’s street and on the road zones |
An object’s N facing down, a face’s or a vertex normal blended over it, is turned up | FaceLighting.ShadeOf, FaceLighting.UpNormal, FaceShader | Seen from above, a ceiling or a face wound the other way shows its upper side; lit from below it would sit at the lower bound | Design |
A grass tuft takes the ground’s N and cartographic, its color times 0.8, and leaves the surface at the ground’s height | GrassTufts.SelfShadow, ObjectDrawOptions.GroundCover | A tuft is a cover of the ground: lit by its blades’ own normals, a meadow would read as noise over the relief; standing on the surface, each tuft would darken the ground around it by contact | Design |
| An effect face and a wireframe edge aren’t lit | FaceShader, ObjectTarget.Paint | An effect shader isn’t lit in the game; an edge is a drawn line, not a surface | Design |
A blended face is lit as it is drawn, without cartographic | FaceShader | It mixes over what lies under it and can’t leave a normal for the pass | Design |
On an object, N is the vertex normals blended over the face, as the game lights a model; a shape
without normals takes its face’s.
The game lights a surface by N·L plus its ambient and does not keep flat ground at its diffuse
color: the formula is a map convention, not the engine’s.
Tests: ObjectRasterizerTests.TiltedFace_IsShadedLikeALodTileOfTheSameSlope,
ObjectRasterizerTests.VertexNormalFacingDown_IsLitAsItsUpperSide,
ObjectsLayerTests.WithoutHillshade_FacesAreUnshaded, ObjectsLayerTests.OpaqueEffectFace_IsNotLit,
ObjectRasterizerTests.NormalMapTexel_TiltsTheSurface,
LandscapeBackgroundTests.OpenAsync_TuftsWithoutHillshade_AreUnshaded,
GrassTuftsTests.Draw_KeepsTheGroundsSurfaceAndNormals,
MapRegionRendererTests.ObjectLyingOnASlope_IsLitLikeTheSlope.
Contact occlusion
Seen from above, a wall or a cliff has almost no pixels: without a shade at its foot, only its top’s
color tells it from the ground. The game gets that shade from ambient occlusion. The lighting layer
measures, for each lit pixel, the sky its surface doesn’t see within a small radius
(ContactOcclusion), on the region’s surface:
- In 8 directions, at 4 distances up to the radius, rounded to the nearest pixel, it reads how high the surface rises above the pixel’s tangent plane, the plane through the pixel with its normal.
- The highest angle of each direction gives its sine; the term is the weight times their mean,
negative, added to
cartographic.
Above the tangent plane, a plane, a slope or a ridge hides no sky and keeps its light; a hollow, a wall’s foot or the gap between two rocks darkens. A sample past the map’s edge or without a surface hides nothing.
| Value | Code | Why | Basis |
|---|---|---|---|
| Radius 64 units, 4 distances, 8 directions | ContactOcclusion.RadiusUnits, Steps, Directions | A shade at a wall’s foot, not across the street: a few pixels from 256 pixels per cell up. Below 64 pixels per cell the radius is under a pixel and the term vanishes | Design |
| Weight 0.35 | ContactOcclusion.Weight | A pixel at the foot of a tall wall, three directions of eight hidden, darkens by about 0.13: a shade that reads without hiding the ground | Design |
| Measured above the tangent plane | ContactOcclusion.Term | Measured above the horizontal, every slope would darken by the ground uphill | Design |
| A sample without a surface or past the map’s edge hides nothing | ContactOcclusion.Term | Counted at the pixel’s height, a slope at the map’s edge would darken or lighten by a band of the radius | Design |
The radius is in world units, so the map is the same however it is cut: a region is drawn that many
pixels wider (ContactOcclusion.MarginPixels). The faces of a decal, a layer laid over a rock or a
mountain, raise the surface like any face, unless they lie on what the pixel shows, see Decals.
Tests: ContactOcclusionTests.Term_DarkensOnlyWhereTheSurfaceRisesAboveTheTangentPlane,
MapRegionRendererTests.WallFoot_IsDarkenedByContact, MapRegionRendererTests.LitMap_IsTheSameHoweverItIsCut.
Surface relief
Mountains, cliffs and large rocks are meshes over the LAND: measured on the LAND alone, the broad
relief and the curvature (see Hillshade)
ignore them, and an object takes the relief of the ground hidden under it. With --objects on the
raster-records background, the objects layer measures both terms on the surface instead
(SurfaceRelief) and writes them over the background’s, interpolated as the ground’s are.
| Value | Code | Why | Basis |
|---|---|---|---|
At each VHGT vertex, every 128 units, aligned on the cells | SurfaceRelief, WorldSampleGrid with phase 0 | The terms keep the vertex grid they are tuned on; where no object stands, the relief is the ground’s, to the bit | Design |
The LAND raised to the highest face that faces up over the vertex | ObjectHeightSampler.SampleTopFront | The underside of an overhang or a ceiling faces down: it is no ground, see Face winding | Design |
What the faces add over the LAND is averaged over the 5 by 5 vertices around each vertex (640 units) | SurfaceRelief.SmoothRadius | Unsmoothed, a plant, a rock or a roof covering one or two vertices is a bump that the curvature lights up and rings with dark ground: a mottle at 128 units. Averaged, a small object barely raises the surface and a mountain keeps its shape | Design |
| No fade above the ground | SurfaceRelief | A mesh mountain stands far above its LAND; a fade by height would leave it out | Design |
The LAND alone in the cells the levels cut | SurfaceRelief.For | Each level shows other faces there, and every level shares one relief | Design |
| Not over the terrain LOD | ObjectsRun | The lod background has no relief of its own to join | Design |
Not in wireframe | ObjectsRun.ReliefOf | Edges are no surface: they would raise the relief where the map shows only lines | Design |
The terms are measured once per map, so the map is the same however it is cut. The grid reads the objects past the map’s edge as far as the broad relief reads. The average spreads a mesh’s edge over 256 units on each side: the ground at a cliff’s foot takes some of its height, and a building still brightens its block a little.
Tests: MapRegionRendererTests.MeshMountain_EntersTheBroadRelief,
MapRegionRendererTests.MeshPlateau_GivesTheGroundTheReliefOfTheSameLand,
MapRegionRendererTests.DownFacingFace_AddsNoRelief, MapRegionRendererTests.ReliefWithoutObjectsAbove_IsTheGroundRelief,
MapRegionRendererTests.CutLevel_LightsTheGroundUnderTheRoof,
ObjectHeightSamplerTests.SampleTopFront_OnVertices_SamplesAtTheMultiplesOfTheUnits.
Cast shadows
The shadows of --hillshade are no reading of the game’s shadow maps: the map has one light and no camera, and rays
from every pixel would need a margin as long as a mountain’s shadow around every region. The shadow
is measured once per map on the heights at the VHGT vertices (CastShadows), which depend on nothing
but the map, then interpolated with the relief.
| Value | Code | Why | Basis |
|---|---|---|---|
| Vertices swept line by line from the light’s side, along the axis nearest it | CastShadows.Sweep | Each vertex costs one step, whatever the height of the mountains, and the map needs no margin | Design |
| A vertex’s top is its height or the top of the vertex toward the light, less the ray’s fall | CastShadows.Sweep | A step between two vertices of the line reads both, so a light off the axes softens with distance, a penumbra | Design |
| Fully in shadow 256 units under the ray, from 0 at the ray | CastShadows.Softness | Two vertices: a smooth edge at the lattice’s scale | Design |
| Weight 0.3, a term added to the cartographic ones | CastShadows.Weight | Clearly read on flat ground at any hour, 0.7 of its light, without reaching the map’s lower bound on a slope away from the light | Design |
| Not scaled by the pixel’s normal | LandscapeHillshade.ReadVertex | The term joins the broad relief’s channel: no new plane or channel. A slope already turned from the light darkens twice, up to the bound | Design |
| No shadow from outside the map’s cells | CastShadows.Over | The map reads no height past them | Design |
Tests: CastShadowsTests, MapRegionRendererTests.Relief_CastsAShadowAwayFromTheLight,
MapRegionRendererTests.LitMap_IsTheSameHoweverItIsCut.
Decals
The game draws a decal shape with a depth bias over what it lies on. The map keeps the highest face at each pixel, with no such bias: drawn as any face, a layer a little over a rock would raise the surface, and a layer a hair under it or level with it wouldn’t show.
| Value | Code | Why | Basis |
|---|---|---|---|
| Drawn after the opaque faces of the band | DecalPass | What it lies on must be there, whichever object comes first | Design |
| It lies on what the pixel shows up to 16 units over it | ObjectTarget.DecalLift | Half the ground tolerance, a layer’s thickness on a rock. Farther over, it is any face | Design |
| It shows up to 1 unit under what the pixel shows | ObjectTarget.DecalBias | The game’s bias is a hair. At 16 units, as over it, the layers buried under a fort’s paving come through it | Vanilla |
| Lying, it paints its color and its own normal, and raises no surface | ObjectTarget.PaintOver | The game’s shader lights a decal by its own normal map: a paved floor is a decal, and keeps its relief. It leaves no step for the contact occlusion | Lighting.hlsl, vanilla |
| The surface relief still counts its faces | SurfaceRelief | 16 units over 640 of averaging changes nothing that shows | Design |
| A blended decal stays with the blended shapes | ShapeMaterials | It already neither raises the surface nor writes a normal | Design |
Tests: ObjectRasterizerTests.FlatDecal_ShowsOverWhatItLiesOnWhicheverIsFirst,
MapRegionRendererTests.FlatDecal_RaisesNoSurfaceAndKeepsItsOwnLight.
Map objects
The roads pick their pieces by record type and model folder (MapObjectClassifier). Paths are
compared without case, with either slash and with or without a leading meshes\. The objects layer
draws every placed model but what the rules below leave out (ObjectInstances.Exclusion,
ObjectModel.From).
| Rule | Code | Why | Basis |
|---|---|---|---|
Road piece: a STAT whose model is under landscape\roads\ | MapObjectClassifier.IsRoad | The navmesh “Preferred” bit covers only part of a mod’s roads | Vanilla data: 5,498 such references on Tamriel; on Vominheim 468 references to vanilla road pieces fill the gaps of its 3,776 preferred triangles |
| A reference whose base has the Is Marker header flag isn’t drawn | ObjectExclusion.Marker | Editor markers aren’t seen in game | Vanilla data: 14,527 references on Tamriel |
A reference with XPRM isn’t drawn | ObjectExclusion.Primitive | A primitive is a trigger, a room bound or a collision plane, never seen | Vanilla data: 1,495 references on Tamriel |
| A reference hidden from the local map isn’t drawn | ObjectExclusion.HiddenFromLocalMap | The game leaves it out of its own map seen from above: cave ceilings, ship decks | Vanilla data, see reference header flags |
| A shape without a shader property isn’t drawn | ObjectModel.From | Every one placed is a helper the game doesn’t render: water current planes, collision copies, particle emitter meshes, animation bones | Vanilla data: 4,876 placed shapes on vanilla worldspaces besides the hidden ones, see below |
| An effect shape whose Soft Falloff Depth is 1,024 or more isn’t drawn | ObjectModel.SoftFalloffDepthLimit | It fades over a quarter of a cell or more: built to be seen from afar, it hides the ground from above | Vanilla data: placed, only the clouds (sky\*cloud*, 2,048) and an effect of the Ideal Masters’ crystal; every other effect is at 512 or less |
A shape whose shader is a BSWaterShaderProperty isn’t painted: the water layer tints what lies under it | WaterWriter, WaterLayer | It is a water surface, and the shader holds no color: tinted as a cell’s water, it reads as the water around it | Vanilla data: 302 placed shapes, water planes, troughs, streams and puddles |
| An object shows only above the terrain, less 32 units | ObjectRasterizer.GroundTolerance | Road pieces and floors follow the LAND only roughly; a buried rock shows only what rises above the ground | Vanilla data: 5.3 % of the vertices of Tamriel’s 5,500 road pieces lie more than 32 units under the bilinear terrain, see Surface |
In texture mode, a face reads the mip level of its least stretched pixel axis, or of its most stretched one over 16 | MipSelection.MaxAnisotropy | A GPU with 16x anisotropic filtering, the most Direct3D 11 allows, does so; picked from the most stretched axis alone, a steep alpha-tested card reads a level where its alpha has averaged out and vanishes | Design: on WhiterunWorld at 256 pixels per cell, the Gildergreen keeps more of its leaves |
In texture mode, a texture is read at the side its shapes’ average repeats per unit ask | TextureSides.SideFor | The densest triangle of an atlas would read most textures whole | Design: a part mapped finer than the average is drawn blurred |
| A blended shape is mixed over the image after the water layer, and doesn’t raise the surface | BlendedObjectsLayer, BlendedWriter | Mixed before, a waterfall body over a deep pool would take the deep water’s tint; the water still tints the ground seen through it | Design: Markarth’s waterfalls, MapLayersTests.From_BlendedObjectsMixOverTheWater |
| A shape’s vertex colors multiply its toned color, before the map’s light shades it | FaceShader | The tone matches the objects to the terrain’s colors; the vertex colors then darken them as the game’s diffuse | Design: White River falls, Tamriel |
A road piece without OBND is not drawn: nothing says how large it is.
Tests: RoadsLayerTests, ObjectSceneTests, ObjectsLayerTests, ObjectRasterizerTests, MapLayersTests.
Road pieces
A road piece’s OBND box holds the road and its shoulders, and a curve fills only part of its box.
Painted whole, the boxes draw a wide road with steps where two pieces meet at an angle.
RoadPieceStroke draws each piece as a stroke instead:
| Part | Rule | Why | Basis |
|---|---|---|---|
| Axis | The box’s local Y axis, through the middle of its X extent | The road runs along Y in the road meshes | Vanilla data: the strokes follow the preferred navmesh triangles of Tamriel |
| Width | Half the box’s X extent | The shoulders blend into the terrain | Design: chosen by eye on Tamriel |
| Ends | A half disc on each Y edge of the box, of the stroke’s half width | The next piece starts at that edge: two turned pieces meet without a notch | Design |
A curve is drawn as the straight stroke through its box, so a sharp curve cuts its corner. The road mesh would give the exact shape; the exporter does not read NIF road meshes.
Tests: RoadsLayerTests.
Disabled references
The maps show the world as the game starts.
| Reference | Code | Why | Basis |
|---|---|---|---|
“Initially Disabled” flag (0x800) set on the last version | Left off | It appears only through a script or a quest; a mod also “removes” a vanilla reference by disabling it | Design |
“Initially Disabled” on a map marker’s last version, with --markers | Listed, disabled set | A quest enables it later, such as the Dark Brotherhood Sanctuary: a viewer can still show it, and the flag says so | Design |
“Initially Disabled” on a book’s last version, with --markers=books | Listed, disabled set | Like a map marker: a script can enable it, and a viewer shows it fainter | Design |
XESP enable parent | Not read: the reference’s own flag decides | Following the parent would need its record and the “opposite” flag | Unverified: a reference whose state at the start comes from its parent would be missing or extra |
| Deleted last version | Left off | The record is removed | Design |
A persistent reference sits in its worldspace’s persistent cell, not in the cell under it: the maps
place it by its DATA position, like any other.
Tests: WorldspacePlacementsTests, WorldspaceMapQueryPathsAndPlacementsTests, WorldspaceMarkersTests, WorldspaceBooksTests.
Grass
--grass tints the ground of raster-records with the grass its textures grow, see
Grass. From 512 pixels per cell, it scatters the
grass models’ tufts instead, see Grass tufts.
The engine’s placement of grass is not documented: the tufts follow the same data, placed the map’s own
way, not where the game puts them.
| Value | Code | Why | Basis |
|---|---|---|---|
| A grass’s color: the alpha-weighted mean of its model’s diffuse textures, the shapes weighted by triangle count | GrassPalette | The tufts’ look from above; the alpha leaves out the transparent part of a blade card | Vanilla data: 30 of the 31 GRAS get a color |
| Coverage: the sum of the densities of the grasses that grow at the slope, over 100, at most 1 | GrassCover.At | Several grasses on one texture cover more ground than one | Design: the engine’s placement is not documented |
| Grass color of a texture: its grasses’ colors weighted by density | GrassCover.At | A denser grass covers more of the ground | Design |
The texture’s color moves toward its grass color by coverage x 0.6 | GrassCover.Strength | Full grass still lets the ground through between the tufts | Design: a style choice, to tune from side-by-side maps |
| Slope at a vertex: from the vertex on each side, on both axes | LandscapeHeightField.SlopeDegrees | The same slope the hillshade’s fine term reads | Design |
A worldspace with WRLD DATA No Grass: no grass on its map, its parent’s cells under --parent-lod included | LandscapeBackground.OpenAsync | The map shows the child as it looks in game | Vanilla data: 4 of the 45 maps, among them WhiterunWorld |
| From 512 pixels per cell, tufts instead of the tint | LandscapeOptions.TuftPixelsPerCell | A tuft is about 8 pixels wide there; smaller, it reads as noise | Design: a style choice, from side-by-side maps |
| A tuft may grow every 32 units on both axes, moved within its square by a hash | GrassTufts.Spacing | Dense enough to cover a meadow, and no grid shows | Design: the engine’s spacing is an INI setting, not plugin data |
| A place holds a grass with the chance of the texture weights there times the grass’s density over 100, where its slope range holds the slope, bilinear between vertices | GrassTufts.In | The tint’s coverage, place by place; the bilinear chance softens the slope gate | Design |
Each tuft turns at random about its vertical axis and scales by 0.8 to 1.2; it stands upright on the bilinear VHGT height | GrassTufts.MinScale, MaxScale | Breaks the repetition of one model | Design: DATA height range and Fit to Slope aren’t read |
A tuft’s place, turn and scale come from a hash of its place and its GRAS FormId | GrassTufts.SeedOf | Every region and run draws the same tufts; a grass added by a mod leaves the others’ tufts where they were | Design |
| The ground under the tufts keeps its own color, without the tint | LandscapeBackground.OpenAsync | The tufts show the grass; tinting under them would count it twice | Design |
A tuft’s pixels take the ground’s normal and VHGT relief, and a factor of 0.8 | GrassTufts.SelfShadow | The relief stays readable under a meadow; the factor stands for the blades’ shade on one another | Design: a style choice |
Tests: GrassCoverTests, GrassPaletteTests, GrassTuftsTests, LandscapeRasterizerTests, LandscapeBackgroundTests,
ObjectRasterizerTests.
Lights
--lights draws a glow around each placed LIGH, see
Lights. The game lights the surfaces around a light;
the map paints the light’s reach seen from above.
| Value | Code | Why | Basis |
|---|---|---|---|
Strength: (1 - d)², d the distance over the radius, 1 at the light | LightsLayer.Paint | Most of a light’s effect is near it; Falloff Exponent isn’t read | Design: a style choice, to tune from side-by-side maps |
Blending: screen, 1 - (1 - map) x (1 - color x strength) | LightsLayer.Screen | It only lightens, so the same layer barely shows by day and stands out at night | Design |
| A light shows only where the surface stays within 32 units above it, at its pixel and at each pixel of its glow | LightCover | The map has one height per pixel: what rises above a light covers it, a roof or a ceiling hides it | Design: an overhang hides the light under it, see Lights |
A blended face above a light dims it by its destination factor, 1 - alpha when it blends over; the least of the light’s pixel and the glow’s pixel counts | LightCover, BlendedSurfaces.Through | A translucent shape lets through what it keeps of what lies under it, as it does for the colors | Design |
| Placed after the night tint | MapLayers.From | The night darkens the world, not its lights | Design |
Tests: LightsLayerTests, MapLayersTests, MapRegionRendererTests.
Map levels
The levels of a map show the floors one above another. The exporter reads the walkable floors from
the navmesh, see navmesh triangle flags, and lists them
per square of the ground (FloorField).
| Rule | Code | Why | Basis |
|---|---|---|---|
| A sample is a 32-unit square aligned on multiples of 32 in world units; it reads the navmesh at its center, edges included | FloorField.SampleUnits | A pixel’s floor comes from world coordinates, so every region and run reads the same floor | Design: one sample is one pixel at 128 pixels per cell |
| A sample’s heights, highest first, start a new floor where the next lies more than 128 units lower; a floor stands at its highest | FloorField.FloorGap | An actor is about 128 units tall: closer floors can’t both hold one, so they are a slope or a step of one floor | Design |
| A sample keeps at most 6 floors, the highest | FloorField.MaxFloors | Bounds the memory per sample | Vanilla data: the interiors and worldspaces measured hold at most 3 |
| A sample without navmesh takes the ground height at its center as its only floor | FloorField.Build | Outside the navmesh, a worldspace’s floor is its LAND | Design |
| A sample with neither navmesh nor ground takes the floors of its nearest sample that has some, breadth-first, neighbours west, east, north, south | FloorField.Build | Objects there still need a floor to be cut against; the fixed order gives the same floors on every run | Design: the nearest floor is a guess where nothing walks |
In a worldspace, the levels apply only to the cells whose floor lies under a vault (VaultMap): a
cave ceiling seen from inside is the back of its faces. The vault map reads the scene and the
navmesh on its own 128-unit grid, once per map.
| Rule | Code | Why | Basis |
|---|---|---|---|
| A navmesh sample is under a vault when a face rises more than 512 units over its top floor and no face up does, see face winding | VaultMap.Clearance | A bridge or a roof shows its top face from above; a cave shows only the back of its ceiling | Vanilla data: Blackreach’s floor lies 86 % under a vault, Tamriel’s 0.2 % |
| A cell is cut when 5 % of its navmesh samples are under a vault, and it has at least 32 such samples | VaultMap.CellShare, MinCellSamples | A stray overhang in an open cell doesn’t cut it | Vanilla data: Solitude and Markarth cut no cell; DLC1AncestorsGladeWorld keeps its open glade and cuts 4 of its 9 cells. Tamriel cuts 5 of its 5,644 cells, where navmesh runs under rock: their 5.7 % to 10.7 % overlap the cave cells cut at 7.1 % to 10.7 %, so no share leaves them out. DLC2SolstheimWorld cuts 8 of 918 cells, 9 % to 45 % under a dome over open ground, see Levels |
| Every cell is cut when 25 % of the worldspace’s navmesh samples are under a vault | VaultMap.WorldspaceShare | An underground worldspace has cells whose vault the per-cell rule misses | Vanilla data: at 50 %, one of BlindCliffCaveWorld’s three cells (38 % under a vault) stayed uncut |
| Vault samples are 128-unit squares aligned on multiples of 128 | VaultMap.SampleUnits | The decision is per cell: a coarser grid is enough, and a cell holds a whole number of samples | Design |
A level shows, per sample, one of its floors, and the cut follows that floor. Level 0 shows the top
floor. Each later level stands at an altitude, a stop of the slider: a sample shows its highest floor
less than 64 units above that altitude, its lowest when every floor is higher (LevelStops). The
exporter picks the stops where the slider reveals floor, walking down from the top.
| Rule | Code | Why | Basis |
|---|---|---|---|
A sample moves from floor j to the next one below floor j - 64 | LevelStops.Tolerance | A level standing just under a floor still shows it, as long as it lies within half an actor of it | Design |
| Candidate altitudes are grouped in 16-unit bins; a stop stands at its bin’s lower edge | LevelStops.AltitudeBin | A sloped floor moves sample by sample: one candidate per bin, not per sample. The lower edge shows every floor change of its bin | Design |
| A candidate becomes a stop when it shows 256 x 256 square units of floor that no higher level showed, counting only samples with navmesh of their own | LevelStops.MinRevealedArea | A landing or a step reveals too little to earn a level | Vanilla data: 4 to 30 levels on Bleak Falls Barrow, Wolfskull Cave, Frostflow Lighthouse, the Hall of Attainment and Blackreach, where a share of changed pixels gives 1 level for a cave and 14 for a spiral stair |
| A stop less than 128 units under the previous one replaces it | LevelStops.MergeWithin | Two stops closer than an actor’s height show nearly the same floors | Vanilla data: Blackreach keeps 9 levels of 30, Dragonsreach one for its balconies at z 400 and 384. Equal to FloorField.FloorGap |
| Only samples where the levels apply give stops | LevelStops.Pick | Outside the cut, every level shows the top floor | Design |
| Where the levels apply, a face more than 160 units above the floor a level shows at a pixel is left out there, with its edges and its water | LevelCut.CutHeight | Keeps what stands on the floor, drops the ceiling | Vanilla data: 128 to 192 keep the furniture and drop the ceilings of the interiors measured; 256 already fails on Breezehome |
A marker shows on the levels whose floor at its sample is the floor nearest its DATA height | MapLevelSet.LevelsAt | A marker stands on a floor; nothing in the record says which | Design: a map marker stands a few units over its floor |
A marker of a descendant worldspace that ONAM moves or scales shows on every level | MapMarkerCatalog | Its height is in its own worldspace’s frame; the ONAM Z offset is not read | Design |
Tests: FloorFieldTests, ObjectHeightSamplerTests, VaultMapTests, LevelStopsTests, ObjectRasterizerTests, ObjectsLayerTests, MapMarkerCatalogTests.