solid rock
Rock the game has shown beside corridors and rooms. The terminal leaves it blank.
Builtneeds review1 change builtSeen all the timeLast touched November 21, 2026: a change of its own was written or changed. Commit 711d0b688.
In the terminal
A blank space, no color. Unexplored squares look the same, so the tty does not distinguish rock from the unknown. A wall the hero has never seen from its face (seenv 0) is drawn as stone. On arboreal levels (the Ranger quest home, flag "arboreal") stone and secret corridors are drawn as trees instead. Farlook says "stone" for seen rock, "unexplored" for rock never seen.
Quotes from NetHack
It's solid stone.
2 more quotes
The rock glows then fades.
E.g. a wall sometimes looks like stone on one side, but is seen as wall from the other.
Decisions
Unexplored space is mist, not rock.
Codex draws itIn Codex
Rock the game has shown beside a corridor is drawn as cave wall, like a room's walls.
Builtneeds review3D form
Based on the real thing: A corridor is a tunnel through rock, its walls the same rough stone as a room's, closer and lower.
Details
Hallways have walls (N-67, Danny: in a corridor "you can't see any walls"): solid rock the game has shown next to a square you can stand in or see across (3.7 sends S_stone apart from unexplored space, and maps the rock beside a corridor as the hero passes) is drawn as cave wall like a room's walls, in the walls' gray (the terminal draws rock blank); shown rock further from the open map is drawn as nothing, and mist hangs only over space never seen. Rock with a monster or object the map shows in it (a xorn, a monster sensed there) is not raised, so its letter stays in sight, and nothing standing in rock opens the rock around it (N-96). The behind camera treats shown rock as wall. With the player's !dark_room (off by default) the terminal blanks out-of-sight room floor the same way, and it would rise as wall. Off (hallway_walls = false), corridors stand in the mist as before.
- Id
codex.hallway_walls- Exact state
- Built, not reviewed
- Settings
dungeon.hallway_walls- Code
crates/nh-site/src/lib.rs,crates/nh-scene/src/build/terrain.rs
| N-67 | Done | Hallways have walls |
Unexplored space near the known map is dark drifting mist that the hero's light burns away.
In progressCamera or view
Details
Fog of war (D-11): every unexplored square (and solid rock shown as blank stone) within fog_of_war.depth squares of a known open square is a block of dark drifting mist a little taller than the walls, its faces only toward open squares, textured with wispy alpha that drifts slowly; the hero's light burns it off continuously (a shader: gone within fog_of_war.cleared_around_you, thickening over fog_of_war.clearing_edge_softness beyond), instead of each square opening on arrival (D-21). The unknown is dark paper (N-284): behind everything (the clear color), what far things fade into (the haze) and the mist's own color are one warm ink, light.darkness_color (0.045, 0.037, 0.030), at L* about 3 so the HUD keeps its contrast. It is the unknown, so no light reaches it (N-275: the light over the known map and the ambient used to reach it through the standard lighting, and it drew as a slate slab with stepped edges round every room seen from above): its own near-black color, tinted warm by the torch only close to the hero (torch_tints_it, fading out over torch_tint_reach squares and lower down more than up), and it casts and takes no shadow. Walking a dark corridor the unknown ahead deepens into darkness with distance instead of standing as a lit face that jumps a square at every step (N-276). From the high views it keeps from_above of its thickness, so the rooms beside it show. No line runs along its edge (D-75). On the known side the light dies away before the unknown (N-276): every wall and floor is drawn in the stone material (stone.wesl), which reads a texture of the map, one texel a square (stone.rs squares: known, which includes rock shown beside a corridor since its walls are built from it; how the map shows it; and how many squares it is from the unknown, a breadth-first search counting diagonals), blends the distance between squares' centers and, over the last light_dies_over_squares before the edge on an S-curve (0.7: the outer part of the last squares, so every square the map shows keeps its light at its middle and a dark room's floor around the hero stays in sight, N-708), takes the lit stone light_dies_before_the_unknown of the way into the unknown's own color (all the way by default, so the known ground meets the dark with no seam), evenly in stops rather than in linear light, so the lantern-bright floor a square ahead dims as the eye expects instead of staying a bright patch with an edge (N-276, after the orchestrator's first-person look: the corridor ended in a dark doorway a square ahead). Only the map decides where: nothing is lit or implied beyond a square it shows. Each square's distance from the unknown, as the shader reads it, eases toward the map's over fog_of_war.comes_out_of_the_dark_seconds a square (N-708, Danny: "I see a wall in front of me and then it disappears or a floor tile is missing in first person"): ground the map has just shown rises out of the dark and the dusk ahead moves on with the hero, instead of the whole front jumping a square at every step and darkening the wall just shown; a new level sets it at once. A passing symbol the core draws for a moment (a shield's sparkle, a dig beam, a boomerang, sent as terrain) stands over the ground and is never taken for it (N-708): the stairs or doorway under it are there again after it. Walking the stairs, all mist is cleared so the walk stays visible. Unknown space further out is plain darkness. A square where the map shows a monster or an object over ground it has never shown (a monster seen down a dark corridor or sensed by telepathy, a warning, gold detected in the rock) has no mist of its own: its letter stands on black as the terminal draws it, in a well whose sides are the mist around it, so it reads from the high views too; nothing is drawn under it and it opens no mist around it (N-96). It settles onto the floor only once the ground at or beside it has been shown (X-632, D-127: Codex never draws floor the game has not shown), or when it lies among things that what the map shows closes in on every side, one of them beside shown ground (a shop full of wares, seen for the first time). It does not stop the camera unless camera_avoids_fog. Light that isn't the hero's burns it off too, where the map shows lit squares (S-10, D-129): beside every square the map shows as lit floor in sight (a lit room seen through its door from a dark corridor, floor a lamp lights), the mist thins, fully at the lit square and less with each step away, gone fog_of_war.lit_floor_clears_it squares out (0 now: the mist is the unknown's own dark over the unknown, so its thinning cannot be seen until N-2530 gives it a look; 1.5 is the designed reach); it eases in and out over about a third of a second as squares come into and leave sight, so nothing pops. The map never says whose light lit a square, so this is the light field's room term (draw/sources/mist.rs, a reader of nh_plays::sources): Codex's own lights (the torch, a play's light, lava's glow past its own square) clear nothing, and the hero's own ring is left to the hero's light, so a dark room opens no wider round the hero. At 0 the mist is as before.
- Id
codex.mist- Exact state
- In progress
- Playtests
gallery-dark-corridor,journey-game,gallery-sensed- Settings
fog_of_war.show,fog_of_war.depth,fog_of_war.thickness,fog_of_war.drift_speed,fog_of_war.cleared_around_you,fog_of_war.clearing_edge_softness,fog_of_war.torch_tints_it,fog_of_war.torch_tint_reach,fog_of_war.from_above,fog_of_war.light_dies_before_the_unknown,fog_of_war.light_dies_over_squares,fog_of_war.comes_out_of_the_dark_seconds,fog_of_war.lit_floor_clears_it,light.darkness_color,camera.camera_avoids_fog,dungeon.wall_height- Code
crates/nh-scene/src/build/terrain.rs,crates/nh-site/src/lib.rs,crates/codex-client/src/draw/mist.rs,crates/nh-plays/src/picture/view/materials.rs,crates/codex-client/src/draw/materials.rs,assets/shaders/mist.wesl,crates/nh-site/src/sight.rs,crates/codex-client/src/draw/stone.rs,assets/shaders/stone.wesl,crates/codex-client/src/draw/sources/mist.rs,crates/nh-knobs/src/fog_of_war/mist.rs,crates/nh-plays/src/underway/squares.rs
| V-5 | Built, not reviewed | Mist is burned off around the hero (D-21), thick further out. |
Applies to everything on the map (3)
- 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.
- 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.
gallery-unknown, unknown. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.gallery-branches, mines. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.Playtests: gallery-dark-corridor, journey-game, gallery-sensed
Details for builders
Id: rock. Lexicon subjects: terrain.stone.
Design notes from NetHack
Objects can be embedded in it. Undiggable rock "glows then fades" under a digging beam; dug rock becomes corridor. Tile 0 (other.txt): a speckled blue-gray stone.
Backlog rows
| N-67 | Done | Hallways have walls |
| V-5 | Built, not reviewed | Mist is burned off around the hero (D-21), thick further out. |








