walls

The walls of rooms and mazes. The terminal draws them as | and - in gray, the same in every branch.

Terminal
walls in Codex, first person
Codex: first person

Builtneeds review10 changes builtSeen all the timeLast touched December 3, 2026: a change of its own was written or changed. Commit e389534dd.

In the terminal

Gray '|' for vertical walls (and the T-walls S_tlwall, S_trwall) and gray '-' for horizontal walls, corners, crosswalls and the other T-walls. The angle comes from wall_angle() and what the hero has seen of the wall (seenv): a wall seen only from behind shows as stone. In 3.7 the glyph also carries the branch (GLYPH_CMAP_MAIN/MINES/GEH/KNOX/SOKO), but with the default symbols every set draws the same gray letters (wallcolors[] are all CLR_GRAY); only symsets with glyph customizations (IBMgraphics*, DECgraphics, curses, Enhanced1/2) color them per branch, and only on 256-color terminals.

Identical to main walls in the default tty: gray '|' and '-'. cmap_walls_to_glyph() picks this set whenever the hero is In_mines; wallcolors[mines_walls] is CLR_GRAY. The IBMgraphics, IBMGraphics_1, IBMGraphics_2, curses and DECgraphics symsets give them brown (G_*_mines: /brown), Enhanced1/2 an RGB brown (190-126-0), drawn only where the terminal has 256 colors and customcolors is on.

Identical to main walls in the default tty: gray '|' and '-'. Symsets with glyph customizations make them red (G_*_gehennom: /red).

Identical to main walls in the default tty: gray '|' and '-'. Symsets with glyph customizations make them yellow (IBM, DEC, curses) or a pale cyan RGB 126-230-230 (Enhanced1/2). The Dlvl status field reads "Fort Ludios" there.

Identical to main walls in the default tty: gray '|' and '-'. Symsets with glyph customizations make them blue (G_*_sokoban: /blue). Sokoban walls cannot be passed even with Passes_walls.

Drawn as the wall it sits in ('|' or '-', gray) from inside the room, or as stone from outside, until found; then it becomes an ordinary closed (or locked) door. On the Rogue level found secret doors become doorless doorways. Magic mapping does not reveal them.

Quotes from NetHack

The horizontal or corner walls of a room, or an open east/west door.
doc/Guidebook.mn:481, the Guidebook's line for '-'
12 more quotes
The vertical walls of a room, or an open north/south door, or a grave.
doc/Guidebook.mn:483, the Guidebook's line for '|'
The wall glows then fades.
src/dig.c:1694, a digging beam meeting an undiggable maze wall
/* CLR_GRAY, CLR_BROWN, CLR_RED, CLR_GRAY, CLR_BRIGHT_BLUE, */
src/display.c:2680, the commented-out alternative to wallcolors[] (main, mines, gehennom, knox, sokoban): the DevTeam's own idea of branch wall colors, not used
G_vwall_mines: /brown
dat/symbols:315, IBMgraphics glyph customization (repeated in IBMGraphics_1, IBMGraphics_2, curses, DECgraphics)
G_vwall_mines: U+2502/190-126-0 # │ BOX DRAWINGS LIGHT VERTICAL
dat/symbols:908, Enhanced1: box-drawing line in a 24-bit brown
G_vwall_gehennom: /red
dat/symbols:293
G_vwall_knox: /yellow
dat/symbols:304
The Sokoban walls resist your ability.
src/hack.c:1055
G_vwall_sokoban: /blue
dat/symbols:282
Secret doors are hidden and appear to be ordinary wall (from inside a room) or solid rock (from outside).
doc/Guidebook.mn:2131
Mapping magic does not reveal secret doors.
doc/Guidebook.mn:2136
You find a hidden door.
src/detect.c:2051, You("find a hidden door.")

Decisions

No terminal letters painted on floors. Lines only on real edges.

Codex draws it
Full text

No terminal glyphs on floors. Outlines only on real edges and corners; surfaces procedural and natural.

Backlog decisions: D-12

Walls are tall. A letter is about a quarter of their height.

Codex draws it
Full text

Walls are tall (2.6; letters ≈ 0.75).

Backlog decisions: D-15

Caves are big and lumpy, not square.

Codex draws it
Full text

Caves less square: big and lumpy, sometimes a narrower hallway. Presentation only (the map stays NetHack's grid).

Backlog decisions: N-52, D-49

In Codex

Now and then a room's wall carries a cluster of hand stencils, fewer the deeper the level.

Builtneeds review3D form

Based on the real thing: A hand stencil is bare stone in the shape of a hand, left where red ochre was blown round a hand held against the rock of a wall, the ochre thickest at the hand's edge and thinning to nothing a hand's width away, grainy where the stone drank it, the hands about life size and some a child's, clustered low on the wall and lit only by the light that falls on it.

Details

The director's yes (2026-11-28, N-5470) to the first of the study's additions (docs/studies/loving-additions.md, N-733), in the cave paintings' spirit. Nothing in NetHack draws or describes a hand on a wall: the one thing of the game's behind it is the level's number on the status line (BL_LEVELDESC, "Dlvl:3"), which the terminal shows at every moment. A wall on Dlvl 1 has a dozen hands, each level down one fewer, and from Dlvl 12 on a single grown hand (nh-scene paintings/hands.rs, count); a cluster thins from its last hand, so the one hand far down is the first of the dozen. The count follows Dlvl and nothing else: a test holds the same room to the same hands with stairs, a monster and a role in it or not. Each hand is the stone as it is inside a halo of red ochre (the cave paintings' own pigment, nothing white, no gold, D-75; no outline, no cracks, D-68), a vertex color on the wall's own facets that only darkens the stone, so it is seen only where the torch or the room's light reaches the wall and stays below the hero, the monsters and the doors in brightness (D-76); the camera's cutaway lowers it with its wall. Where: as a cave painting goes (a room's wall on a straight run, the face that looks into the room, the main dungeon and the Gnomish Mines only, never into a shop or a temple), chosen by the hands' own draw of the level's hash under cave_hands_rooms and spaced four squares apart; a wall has hands or a figure, never both, and hands give way to a figure within four squares. Hands need no role: they are no one's in particular. By default about one room in six has a cluster (cave_hands_rooms 0.17, the director's answer, N-747: "The study's numbers"); cave_hands_rooms 0 gives the terminal's bare walls, and cave_paintings_strength fades them with the paintings and at 0 gives the bare wall back.

Id
codex.cave_hands_rooms
Exact state
Built, not reviewed
Playtests
gallery-cave-hands, cave-hands-deep
Settings
dungeon.cave_hands_rooms
Code
crates/nh-scene/src/paintings.rs, crates/nh-scene/src/paintings/hands.rs, crates/nh-scene/src/paintings/subject.rs, crates/nh-scene/src/paintings/marks.rs, crates/nh-scene/src/mesh/painting.rs, crates/nh-knobs/src/dungeon/cave_hands_rooms.rs

Now and then a room's wall carries a small painting of the hero's own role in earth pigments.

Builtneeds review3D form

Based on the real thing: A cave painting is pigment soaked into the rock of a room's wall, a small figure of the hero's own kind half a square tall, standing low on the wall in red ochre with what it carries in charcoal and a little yellow ochre, drawn with a few broad strokes as its own people drew people, the edges soft and the color patchy where the stone drank it, lit only by the light that falls on the wall.

Details

Dad's idea (N-481, 2026-11-10: "There could be occasional cave paintings on the wall depending on which kind of character you are playing."), given its go-ahead to be filmed first on one role and decided with Dad from the film (D-126, question 55). Nothing in NetHack draws or describes a painting: the one thing of the game's behind it is the hero's role, which the game says outright in the welcome line (allmain.c:914-915) and on the status line's title, whose rank belongs to one role only (role.c's rank lists), read by nh-state (GameState::role, role.rs) while the hero is in their own form and kept once read. The figure is that role as its starting kit gives it (u_init.c:42-177), and all thirteen roles have one (N-5160), each standing as its own people drew people (N-5477), by the pantheon role.c gives the role: the Archeologist a squat Central American glyph figure in profile with fedora, pick-axe and bullwhip (role.c:41, u_init.c:44-48); the Barbarian the wide-shouldered hero of the Hyborian tales with the two-handed sword aloft (82, 55); the Caveman a thin running hunter as on a true cave wall with club and sling (the study's choice over the Babylonian of 123; 69-70); the Healer a Greek vase's figure side on in a long robe with a potion and the wand (164, 80-82); the Knight a stiff Celtic figure face on, helmeted, with lance, pennon and long sword (204, 91-94); the Monk a Chinese brush's figure in a low stance, one fist thrust out (244, 102-103); the Priest, whose gods are another role's (285), the plainest, face on with both arms raised and the mace (115-116); the Rogue a hunched thief of Nehwon's tales with a dagger and a sack (328, 135-139); the Ranger a hunter of Roman wall paintings with the bow drawn (382, 126-129); the Samurai a few strokes of a loaded brush with katana and short sword (423, 143-144); the Tourist a quick line drawing with a loud shirt and the expensive camera (463, 155-156); the Valkyrie a Norse picture stone's figure side on, her dress trailing, her tile's yellow hair (monsters.txt, # tile 698 (valkyrie)), spear and small shield (503, 161-163); the Wizard in the Egyptian stance with a pointed hat, quarterstaff and spellbook (543, 168-174). One pigment, one wall and one light across all thirteen (D-49): the same three earth pigments and the same few kinds of mark, only stance and proportion change, and two strokes of one pigment crossing are no darker than one. Beside the figure, at its knee, the first animal in charcoal (N-5473) for the roles whose first pet role.c fixes: a little dog for the Caveman, the Ranger and the Samurai (role.c:128, 387, 428), a pony for the Knight (209), a kitten for the Wizard (548); the other roles' pet is a kitten or a little dog by chance (dog.c:91-100), which the screen does not say, so their paintings have none (a pet's mark seen beside the hero would need nh-state to keep it: X-5470). It lies on the wall's own facets, cut finer and lifted three millimeters out of them, in the wall's own material (Mat::Wall, the stone shader), its pigment a vertex color that only darkens and tints the stone: nothing white, no gold (D-75), no outline, no cracks (D-68), nothing shaped like a letter (D-54), no light of its own, so it is seen only where the torch or the room's light reaches the wall and stays below the hero, the monsters and the doors in brightness (D-76); the camera's cutaway lowers it with its wall. Where: a room's wall on a straight run (walls on both sides along it, the room's floor in front and on both front diagonals: never a corner or beside a door), on the face that looks into the room, in the main dungeon and the Gnomish Mines only (the status line says Dlvl and the walls are the Dungeons' or the Mines' stone; never Sokoban, Gehennom, Fort Ludios, the Quest's home, the Planes, the Tutorial or the Rogue level), never into a shop or a temple, chosen by a hash of the level and the square under cave_paintings_rooms and spaced four squares apart (nh-scene paintings.rs). By default about one room in four has one (cave_paintings_rooms 0.25, the director's answer, N-747: "The study's numbers"); cave_paintings_rooms 0 gives the terminal's bare walls, and cave_paintings_strength 0 also gives the bare wall back.

Id
codex.cave_paintings
Exact state
Built, not reviewed
Playtests
gallery-cave-painting, cave-painting-first-animal
Settings
dungeon.cave_paintings_strength, dungeon.cave_paintings_rooms
Code
crates/nh-state/src/role.rs, crates/nh-scene/src/paintings.rs, crates/nh-scene/src/paintings/figures.rs, crates/nh-scene/src/paintings/animals.rs, crates/nh-scene/src/paintings/subject.rs, crates/nh-scene/src/paintings/marks.rs, crates/nh-scene/src/mesh/painting.rs, crates/nh-scene/src/model.rs, crates/nh-scene/src/build.rs, crates/nh-knobs/src/dungeon/cave_paintings.rs, assets/shaders/stone.wesl

Seen from high up, walls, doors and mist shrink toward the floor so you can see into rooms.

Builtneeds reviewCamera or view

Details

Seen from high up (the map view, the director's wide shot; N-57), walls, doorway lintels, doors, bars and mist shrink toward the floor together by how high the camera is, to walls_from_above of their height, so rooms can be seen into; a falling door is cut too; the fog thins to haze_from_above and the ambient light rises to faint_light_everywhere_from_above. Flights of stairs keep their full height (the hero stands on their steps; N-64). N-2790: a lumpy cave wall cut lower is not squashed about its foot (which moved its bumps and left a ledge up to a tenth of a square along the edge it shares with a whole neighbor): it is drawn with a shell built to the cut's height from the same field of bumps, in lumpy_walls_cut_in_steps steps of its height (32; 0 squashes it as before), stretched the little rest of the way (`draw/walls.rs` `Lumpy`). Its top's rise is lowered by the same share, so a wall cut low keeps no ridge standing over the letters beyond it (batch 12: a `(` in gallery-hallucination's map view was cut in half).

Id
codex.cutaway
Exact state
Built, not reviewed
Playtests
journey-game, gallery-forms
Settings
views.walls_from_above, light.haze_from_above, light.faint_light_everywhere_from_above, views.lumpy_walls_cut_in_steps
Code
crates/codex-client/src/draw/view/cutaway.rs, crates/codex-client/src/draw/things.rs, crates/nh-plays/src/shot/pose.rs, crates/codex-client/src/pov.rs
N-57DoneA high diagonal overview camera

Walls bulge and recede and their tops rise and fall, so rooms and corridors look like caves.

Builtneeds review3D form

Based on the real thing: Cave rock bulges and recedes by hand-widths and its tops rise and fall, nothing flat or square.

Details

Lumpy caves (N-52): every solid shell is subdivided and pushed by a world-space value-noise field (two octaves, periodic every 8 squares) so faces bulge and recede by up to wall_bumps and tops rise and fall by up to wall_top_bumps, faceted like rock; neighbors move together and stay joined, the foot stays on the floor, and a floor is laid under each wall so receding rock leaves ground, not a gap. Faithful to the grid: lumps decorate a square, never move it. 0 and 0 bring back the flat blocks.

Id
codex.lumpy_caves
Exact state
Built, not reviewed
Playtests
journey-game, gallery-dark-corridor
Settings
dungeon.wall_bumps, dungeon.wall_top_bumps
Code
crates/nh-scene/src/mesh/shell.rs, crates/nh-scene/src/noise.rs
N-52DoneCaves less square

The Mines' walls are one mass of pick-hewn rock that leans back from the floor's edge.

Builtneeds reviewCamera or view

Details

The Gnomish Mines' wall squares (the walls the core draws in the Mines' set, and the rock beside the open map, N-764) are shaped from one field of the world's place instead of a lumpy block each: a ridged noise bent by a second noise, and short dishes a third of a square across where a pick struck, so the faces break in short flat facets at varied angles and the tile's bands (other.txt 199) cross them. Every push is into the rock, never out of its square: at the floor each face stands on the square's edge less the inset, as the flat block's does, so no letter stands in rock and no open square looks closed; over its first half square of height the face leans back, a scree slope flaring to the edge; an outside corner is rounded, from none at the floor to a quarter of a square at the top; the top breaks and falls toward the open side, lowest at the passage. The field is a function of the place and of the open squares within half a square of it, so every square that holds a point moves it alike: two neighbors meet along their shared edge with no step, and the mass reads as one rock across its squares. Squeeze slits (V-4) stay as cut (the field fades near the cut, as the lumps do), the faces toward walled neighbors (seams, N-261) follow the same field, and a cave painting on a Mines wall lies on the same face. The top is a heap of blocks about two thirds of a square across, each its own height, a cleft where two meet. Each facet reads the Rock texture (texture.rs, rock: faces split off at their own slants meeting at creases, hollows, chips a hand across, the tile's bands offset by each hollow) on the upright plane its quad faces, to the nearest eighth of a turn, or on the world's x and z where it faces up, each chunk of rock half a square across at its own small turn and shift, so no band runs on past a chunk and nothing is stretched along a run. Faces and top are cut into 7 facets a square instead of 5. At dungeon.mines_rock_mass_strength 0 the Mines' walls are the lumpy blocks they were, point for point; between, the two are mixed. Every other stone keeps its blocks; a stone that is rock rather than laid blocks would ask for it in nh-scene's terrain.rs rock_mass.

Id
codex.mines_rock_mass
Exact state
Built, not reviewed
Playtests
gallery-branches
Settings
dungeon.mines_rock_mass_strength
Code
crates/nh-scene/src/mesh/shell.rs, crates/nh-scene/src/build/terrain.rs, crates/nh-scene/src/paintings.rs, crates/nh-scene/src/texture.rs, crates/nh-knobs/src/dungeon/mines_rock_mass.rs, crates/codex-client/src/config.rs
N-764Built, not reviewedThe Mines' rock as one mass (the director, 2026-12-02, the remaster wave:
N-757Built, not reviewedThe Mines look like a mine (Danny, 2026-12-02, on stone-relief's second round:
N-52DoneCaves less square

Stepping diagonally into a wall or door, the hero slides sideways to the open side instead.

BuiltCamera or view

Details

Sliding along walls (D-20): up pressed while facing diagonally into something the map shows you cannot enter diagonally (a wall, a door, or out of an open door) sends the sideways step toward whichever side is open instead, and keeps the diagonal facing. It reads the terminal's own rule that doors are not entered or left diagonally from the map, and only changes which key the arrow sends.

Id
codex.slide_along_walls
Exact state
Built
Playtests
journey-game
Settings
controls.slide_along_walls
Code
crates/nh-site/src/lib.rs, crates/codex-client/src/input.rs
V-12DoneSlide along walls.

Walls and floors show a fine grain of stone close by, so up close they read as rock, not clay.

Builtneeds review3D form

Based on the real thing: Stone seen at arm's length has grain: crystals a couple of centimeters across with a finer speckle on them.

Details

Stone up close (N-308): the stone shader (stone.wesl `grain`) adds two octaves of fine value noise (28 and 71 cells a square, in world space) to every wall and floor within fine_grain_within (3) squares of the eye, fading out over the far half of that: a speckle in the color (a nod to the DevTeam's dark floor tile, a speckle) and a small roughness in the normal from the grain's change across the pixel. It is 0.6 strong and fades out as the stone up close (codex.stone_up_close) rises to 1, so it shows only with dungeon.stone_up_close under 1; its own knob fine_grain was folded into that one (N-707). Beyond reach the broad texture alone, so nothing shimmers from the high views.

Id
codex.stone_grain
Exact state
Built, not reviewed
Playtests
gallery-ground, gallery-dark-corridor
Settings
dungeon.fine_grain_within
Code
assets/shaders/stone.wesl, crates/codex-client/src/draw/stone.rs
N-308DoneRock that reads as rock up close

Stone in sight looks painted in watercolor, warm where lit and cool where turned away.

Builtneeds review3D form

Based on the real thing: In a watercolor of stone the light changes the stone's hue as well as its value, warm where it falls and cool where the stone turns away, with the pigment settled in the stone's pits and the paper's tooth showing close up.

Details

Painted stone (N-750, N-771, D-49's ink-and-watercolor storybook), one wash for every stone: each stone's row in nh-scene (stone/*.rs) declares its `Wash`, the two hues it is painted in where the light falls and where it turns from the light, chosen for what the stone means (D-165: the DevTeam's tile is inspiration, never a measure). How pigment settles is a property of the texture a surface is cut as (`Settles::of`: into hollows, in clumps, pooled where a wall meets the floor, landed unevenly). The client gives each stone material its stone's wash and its texture's settling (draw/stone.rs `cut`; things of stone and named rooms' laid floors the Dungeons' hewn rock), and the stone shader (stone.wesl `painted`, after the light) reads them as numbers, naming no stone: how lit a face is (the lit color's luminance against the stone's own, in stops) leans its hue toward the lit or the shade hue at the same OKLab lightness, chroma capped. The Dungeons' worked stone in the storybook's raw sienna and violet-umber, the Mines' raw rock orange going umber, Gehennom's heat from below (brick ember-red where lit and oxblood in shade, and a glow of its own over the whole wall, as full at the foot as at the top, and on the floor there, least on faces turned up; a hot stone holds its fullness however dark it is), Sokoban's cool cut blocks (its own royal blue in the light, a deeper blue in shade) on a floor of packed earth with a wash of its own, warm in the lantern (a stone may declare its floor's wash, `Row::floor_wash`), Fort Ludios a hoard vault in the sea (gold where lit, a cold sea-green in shade) (goldens/washes.txt). Granulation from the close texture and clumps from a smooth noise fixed to the stone, read with the pixel's footprint; a soft darkening where the surface turns; a paper's tooth within two squares. Within a square and a quarter of a letter the paint may darken the ground and never lighten it, so every letter keeps at least its contrast. A picture on the stone (a cave painting's pigment, a sign's paint, a vertex color) is drawn over the wash: taken off, the stone painted, put back, and the wash recedes where pigment covers the stone (pigment known by its colorfulness, never its darkness: a gray shade is stone; and only on a wall or a thing: a floor's vertex color is its own weathering, a scorched or wet bank, and takes the wash); what is not stone (ice, a door's wood, a thing's part cut in earth or wood) takes no wash. The lantern's tinge (a moment's colored light, a trip's gel, exactly zero at rest) is carried in the trip's one buffer that every stone reads (no material rewritten) and given back over the wash. A pit's hollow takes its floor's wash by the same path (assets/shaders/wash.wesl). Remembered ground keeps its pencil gray (D-62). At 0 not one step runs, pixel for pixel; it ships at 1. NetHack gives stone no paint; the backing is D-49 and what each stone means (D-165).

Id
codex.stone_paint
Exact state
Built, not reviewed
Playtests
stone-up-close
Settings
dungeon.stone_paint
Code
assets/shaders/stone.wesl, assets/shaders/wash.wesl, crates/nh-scene/src/stone.rs, assets/shaders/stone_light.wesl, crates/codex-client/src/draw/stone.rs

Floors are old flags in trodden earth, walls rock broken into faces the torch catches.

Builtneeds review3D form

Based on the real thing: Old dungeon stone at arm's length: floor flags half a square across laid in trodden earth, joints chipped and gritty, some flags gone, and wall rock broken into faces a third of a square across, each at its own slant, so a torch lights one face and leaves the next in shade, and in the Mines the floor is the same broken rock as the walls.

Details

The stone you could touch (N-751). The generated textures (nh-scene texture.rs, 512 px a texture, 4 squares a repeat, 128 px a square) had detail at the room's scale and the grain's and none between. Now, at dungeon.stone_relief (1; 0 gives each texture back pixel for pixel, the textures made again on a change, draw/world.rs stone_relief): Flags, the Dungeons' floors, lays flags half a square across near a grid, each worn hollow and tilted its own way, joints chipped wider where a noise runs high and filled with grit, lips eased so none catches the torch as a thread, one in five gone to earth, their tone within a step of the earth's (the floor's . is low contrast). Stone (the walls' rock, a boulder's, an altar's, a tomb's) is broken into faces a third of a square across, planes at their own slants eased to one height at their edges, so they meet at creases, never steps. Rock, the Mines' walls (N-757, after tile 199), is rock dug with picks: broad hollows stretched along the tile's diagonal bands with smaller chips in them, each the lowest of its neighbors' dishes, so they meet at hard ridges and never at a step, the tile's orange and brown in soft bands along its diagonal, a face turned to the upper left painted a little paler as the tile paints its crest; no veins and no drawn lines. Broken, the Mines' floor (N-757), is trodden dirt darker in its hollows with gravel and a few larger angular stones clumped unevenly, a stone a step lighter than the dirt, and at dungeon.stone_relief 0 the plain ground the Mines had before. Ground stays as it was for the wood of doors, tools, a shop's planks and the drawbridge, and the branches' floors. Every normal map keeps its height in alpha (0 lowest, 255 highest) for a later parallax. Hallways still share the rooms' floor texture (N-5620). The page draws Flags in its ground and Broken in its stone.

Id
codex.stone_relief
Exact state
Built, not reviewed
Playtests
gallery-hallway, gallery-branches, gallery-lit-room
Settings
dungeon.stone_relief
Code
crates/nh-scene/src/texture.rs, crates/nh-scene/src/surface.rs, crates/nh-scene/src/stone/dungeons.rs, crates/nh-scene/src/stone/mines.rs, crates/codex-client/src/surface.rs, crates/codex-client/src/draw/world.rs, crates/codex-client/src/draw/standard.rs, crates/codex-page/src/surfaces.rs
N-751Built, not reviewedStone you could touch (the director, 2026-12-01, the step-change wave):
N-757Built, not reviewedThe Mines look like a mine (Danny, 2026-12-02, on stone-relief's second round:
N-52DoneCaves less square

Walls and floors close by show fine crystals, small pits and hairline veins.

Builtneeds review3D form

Based on the real thing: Stone at a hand's length has crystals a couple of millimeters across, small pits where grains fell out and hairline veins, matte, so a torch raking across it picks out each grain.

Details

The stone up close: one small texture made in code (nh-scene texture.rs `close`, 512 square: the slope of a height of crystals, sparse pits and veins, and its tone around the mean) laid twice on each wall's and floor's own uv in the stone shader (stone.wesl `close_at`), at 0.6 and 0.23 squares a repeat, turned 31 and -17 degrees so the two never line up, read with the pixel's true footprint (textureSampleGrad), so its mips (averaged plainly, going to flat and even) and 4x anisotropy fade whatever a pixel cannot show. It tilts the surface's facing by the chain rule from the texture's slope (no blocks of four pixels) and moves the stone's color a little either way around its own mean. Faded out by fine_grain_within, so from the high views it changes nothing; a thing hewn smooth (an altar, a headstone) keeps its own face. It ships on at 1 (N-707, Danny, 2026-11-28: "Yes"). Below 1 the older speckle (codex.stone_grain, whose world lattice shows as a regular pattern of dots half a square from a wall) comes back in its place, at 0.6 as its own knob fine_grain had it; that knob is folded into this one (an old codex.toml's fine_grain loads as stone_up_close). At 0 the stone is as it was before this treatment, pixel for pixel. NetHack gives stone no texture; the reference is real worn sandstone and granite seen at arm's length.

Id
codex.stone_up_close
Exact state
Built, not reviewed
Playtests
stone-up-close
Settings
dungeon.stone_up_close, dungeon.fine_grain_within
Code
assets/shaders/stone.wesl, crates/codex-client/src/surface.rs, crates/codex-client/src/draw/stone.rs, crates/nh-plays/src/picture/view/materials.rs, crates/nh-scene/src/texture.rs
Applies to everything on the map (5)
  • The window port passes what the game chose for each glyph as the tty would show it, and no more.
  • Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
  • What the game showed on a square stays drawn under a monster or object that now stands there.
  • Walls are tall blocks of rough stone, tinted a little toward the wall's color.
  • The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.

Accepted pictures and playtests

A change to how this looks is compared with these pictures before it is accepted.

  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-rogue-level, rogue level. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-lit-room, lit room. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-dark-room, dark room. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, strong first person 1strong first person 1
Gallery scene gallery-hunger, strong first person 1. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, coming on first person 1coming on first person 1
Gallery scene gallery-sick, coming on first person 1. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-ghosts, ghost. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-doors, doors. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-hallucination, trip. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-trip-moments, voice. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • walls in Codex, first personfirst person
  • walls in Codex, close third personclose third person
  • walls in Codex, director's viewdirector's view
  • walls in Codex, map viewmap view
Gallery scene gallery-branches, mines. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: gallery-cave-hands, cave-hands-deep, gallery-cave-painting, cave-painting-first-animal, journey-game, gallery-forms, gallery-dark-corridor, gallery-branches, gallery-ground, stone-up-close, gallery-hallway, gallery-lit-room

Planned and proposed

Planned Each branch's stone, round two, from the tiles' own bricks and colors.

Asked for in these words: “Danny, 2026-11-01 (N-252, beauty-round-2.md brief 2, his own note): "I don't think the mines' silver ore represent our beauty thread's intent fully - can we revamp this?"”

Idea Some paintings are of heroes who played here before, older ones more faded.

In progress The painted figure has its first pet beside it, in charcoal.

Left to do: An animal for the eight roles whose first pet is left to chance waits on keeping a marked pet once seen.

Idea Under the painted figure, one stroke for each rank the hero has reached.

In progress A greeted shop has a small painted sign of its trade beside its door.

Left to do: The other eleven emblems, and a sign that reads beyond first person.

Idea Some paintings show the hero with a beast it has killed this game.

In progress Doors of stone, or dark with old carvings.

Asked for in these words: “Dad, 2026-11-10 (N-480): "I'd like to see the doors look more like stone. Or very dark with ancient looking carvings."”

Left to do: A stone door that cracks and settles as it falls when a door is broken, behind a knob that is off.

In progress Now and then a cave painting on the wall, by the hero's role.

Asked for in these words: “Dad, 2026-11-10 (N-481): "There could be occasional cave paintings on the wall depending on which kind of character you are playing."”

Left to do: The other twelve roles wait for the director and Dad to judge the Valkyrie's film, and no room has one by default.

Details for builders

Id: wall. Lexicon subjects: terrain.wall, terrain.wall.mines, terrain.wall.gehennom, terrain.wall.knox, terrain.wall.sokoban, terrain.door.secret.

Design notes from NetHack

Tiles 1-11 (other.txt): gray stone blocks with blue-gray mortar. Undiggable walls "glow then fade" under a digging beam; dug walls become doorways (floor in mazes, corridor in caverns).

Tiles 199-209 (other.txt): rough, irregular brown and orange rock faces instead of masonry. Symsets that customize walls make them brown.

Tiles 210-220 (other.txt): red stone blocks with brown mortar. Customizing symsets make them red. Some 3.7 Gehennom levels use iron bars for walls.

Tiles 221-231 (other.txt): brown brick with orange-gold highlights. The IBM, DEC and curses symsets make them yellow; Enhanced1/2 a pale cyan (126-230-230).

Tiles 232-242 (other.txt): the main dungeon's block pattern in blue. Customizing symsets make them blue; the unused wallcolors comment gives Sokoban bright blue.

Found by secret door detection, the door flashes six times at its square (flash_glyph_at). The message is "You find a hidden door."

Backlog rows

N-57DoneA high diagonal overview camera
N-52DoneCaves less square
N-764Built, not reviewedThe Mines' rock as one mass (the director, 2026-12-02, the remaster wave:
N-757Built, not reviewedThe Mines look like a mine (Danny, 2026-12-02, on stone-relief's second round:
V-12DoneSlide along walls.
N-308DoneRock that reads as rock up close
N-751Built, not reviewedStone you could touch (the director, 2026-12-01, the step-change wave):
N-252Built, not reviewedThe branches' stone, round two
N-244DoneSokoban's blue lost under the torch
N-245To doFort Ludios not shot, and what the branch stone leaves gray
N-5472DroppedThe ones who came before
N-5473Built, not reviewedThe first animal beside the figure
N-5474DroppedThe painting keeps up with the hero
N-5476Built, not reviewedA shop's sign, once the shopkeeper has greeted you
N-5478DroppedThe hunt on the wall
N-480Built, not reviewedDoors of stone, or dark with old carvings
N-481DoneCave paintings by role