fountains

A bright blue {. You can drink from it and dip things in it.

Terminal
fountains in Codex, first person
Codex: first person

Builtneeds review3 changes builtSeen on some levelsLast touched December 2, 2026: a change of its own was written or changed. Commit 4c77e6c98.

In the terminal

Bright blue '{'.

Quotes from NetHack

Rest! This little Fountain runs Thus for aye: -- It never stays For the look of summer suns, Nor the cold of winter days.
dat/data.base:1933, Bryan Waller Procter, For a Fountain
4 more quotes
Water gushes forth from the overflowing fountain!
src/fountain.c:148
The flow reduces to a trickle.
src/fountain.c:213
The fountain dries up!
src/fountain.c:227
Far below you, you see coins glistening in the %s.
src/fountain.c:542

In Codex

Fountains, altars and boulders drawn as carved stone made ahead of time, finer than the game builds.

Built3D form

Based on the real thing: An altar is a hewn stone slab overhanging a narrower block on a low step worn hollow by feet, its arrises chipped and rubbed round, and a boulder is a rounded rock with broad broken faces, chips and cracks, flattened where it rests, both matte and darker in their hollows.

Details

The authored kit (N-765): forms made offline by the tool codex-kit and read by nh-scene beside the procedural ones (nh_scene::kit). A piece is a sculpt written as a distance field, meshed (surface nets, its vertices pulled onto the surface), brought to a budget of triangles where the form allows it (quadric error, each step folding a vertex into a neighbor so every vertex stays on the surface), and baked: how open each vertex is to the light (a crevice, the foot on the floor, the underside of the slab's overhang darker) and how sharp its edge is (an arris lighter, a hollow darker) in its vertex color, which the material's color is multiplied by, so the stone stays the game's stone. The tool also takes a sculptor's glTF through the same bake. The files are compiled into the game (crates/nh-scene/kit/: altar.kit 119 KB, 7000 triangles, fresh and worn on one topology; four boulders of 46 KB, 4000 triangles each). With dungeon.authored_altar on (as by default): an altar is the DevTeam's tiles 33 to 37 (other.txt) made stone, an overhanging slab with its top where the procedural slab's is, a narrower block and a low step as wide as the slab, in its alignment's stone with the red marks on its top as before; its height knob stretches the block and keeps the slab's thickness, and the wear knob blends the fresh bake toward the worn one (edges two and a half centimeters round, chips softened, the step's hollows deeper at 2). A boulder is tile 477 (objects.txt) made stone, in the edge's boulder's frame (its flats at BOULDER_FLATS, its round side within the edge's lump), so it stands, rolls, lands and leaves the squeeze as the edge's stone does, one of four by its lump; the tile's nod: its fresh-broken faces a little paler and warmer (the tile's C flecks) and its cracks darker and browner (its J). The fountain (the director, 2026-12-02: "really stretch ourselves on something complex to set a gold standard for authoring"), from tile 41 (other.txt: a round basin of blue-gray stone with pale molded bands, a white column with water arcing from its top): a basin turned and carved as a mason would, a molded foot sunk a little in the floor, a rounded band, a body of sixteen gadroons, a thick rolled lip with a few soft knocks, hollowed to a bowl under the water; and a column, a baluster with rings carrying a shallow tazza with a lobed underside and a knob in its middle where the jet rises. Both are made to the usual fountain (dungeon.basin_height 0.25, the column 0.5 over the water): the water's disc ends in the basin's stone all the way round (its bulge with the caves' field set to nothing, since the carved stone is round), the bowl's water ends in the bowl's stone, the jet rises from the knob and the overflow falls clear of the baluster into the basin; a fountain set to other heights keeps the game's forms. The bake weathers them: wet and dark just over the water, a pale line of lime at the water line, green-dark under it, the bowl dark inside and streaked pale with lime under its rim, the moldings a little paler and the lobed body a little darker, as the tile's bands. Each piece has its switch (N-5720): dungeon.authored_fountain and dungeon.authored_altar on, dungeon.authored_boulders off until the boulder's material lets its weathered skin show (N-5725); since its third round the boulder is low and broad with big broken faces on its flanks, a few on its crown, round-bottomed cracks and grime low. Off: that piece as the game builds it, bit for bit.

Id
codex.authored_forms
Exact state
Built
Playtests
gallery-authored-kit
Settings
dungeon.authored_fountain, dungeon.authored_altar, dungeon.authored_boulders
Code
crates/codex-kit/src/lib.rs, crates/codex-kit/src/pieces.rs, crates/nh-scene/src/kit.rs, crates/nh-scene/src/model.rs, crates/nh-scene/src/things/altar.rs, crates/nh-knobs/src/dungeon/authored_forms.rs, crates/nh-scene/src/kit_tests.rs

A fountain is a low round basin of stone with a tiered column and dark blue water welling in it.

Builtneeds review3D form

Based on the real thing: A fountain is a knee-high round stone basin under a meter across with a few centimeters of water in it, a slender column carrying a brimming bowl, a jet rising from the bowl and its overflow falling in threads.

Details

A bright blue { is only ever a fountain, so it is drawn as one (D-18, rec.features_as_things), as the boulder is a stone: a low round basin, its rim knee-high to the @ (0.25), turned from a profile (a flared foot, a full belly, a thick rounded lip) and hewn from its level's walls' procedural stone (N-103: the Dungeons' gray, and in Minetown the Mines' brown rock, since the core draws Minetown's walls in the Mines' set, display.h In_mines; the Oracle's four in Delphi the Dungeons' gray), bulging and dipping with the caves' noise field (nh_scene::noise, at the world position, so it belongs to the stone around it) with finer chisel marks. Its lip is plain stone: the gold-mended cracks of the first take are gone (the director, 2026-10-31: kintsugi was "the ornament of it per se as an underlying texture", never "the physical reality of things with cracks in it with gold - that's not faithful to Nethack"). The basin holds dark water of NetHack's bright blue, which the warm torch turns a dusky violet-blue up close (the shader darkens the middle a little, but the torch's glint lightens it, so in the frames the rim reads darker); its sheen is soft, so the torch is a broad warm glint on it, never a blinding spot. A spring wells up in it all the time (nothing in the game starts it; D-17: the director's go-ahead covers it): a broad edgeless swell that brightens the water, spreads outward and settles, made by moving the surface's normal (never rings), each basin in its own time. When the hero is Blind the water's own faint color dims with the torch. In its middle stands a tiered fountain of the same stone (the DevTeam's fountain tile, win/share/other.txt tile 41; N-227, the director: a short column "feels like a little nubbin inside the pool rather than a proper fountain"): a slender column rising to the @'s shoulder (0.5 above the water) carrying a shallow bowl a quarter the basin's width, brimming with the same water; a jet rises from the bowl's middle (0.2) and falls back into it, and the bowl's overflow falls from its rim in thin threads into the basin inside the rim, each basin's a little different in spread and direction, the water running down them in soft bands and breaking into drops from half way (assets/shaders/basin_jet.wesl), a little translucent, lit by the torch, flowing all the time (nothing in the game starts it; the director asked for it, 2026-10-31). In first person, with the eye standing in it, the column and its water are not drawn (the hero has no body there either). Seen from close by (first person and close third), the column, its bowl and its jet also make way while they stand between the eye and a monster's letter, as walls do, so the letter the terminal shows reads whole (N-5271: Delphi's Oracle behind her basins); the basin stays. It gives off no light. Made real by the Pareto principle (N-227, director 2026-10-31): the water is glossy, so the torch is one glint on it, which small ripples running out from where the spill lands keep moving; looked straight down into it is clear, its own blue where it is deep and the wet stone showing through it in a band at the rim; seen at a slant it darkens, a mirror of the dark cave; the basin's stone is darker where it is wet, a hand's width around the water on the inner wall and the inner half of the lip (a vertex color, nothing new to bind); the spill falls in threads a third as thick as before, breaking into drops from half way down. The brace itself is not drawn: the form stands for the glyph; the minimap and the terminal view still show it. Whatever stands or lies on the fountain (the hero, a monster, an object) stands at the water line, so no part of its letter is hidden. In first person, standing in it, the view tilts down into the water after a second without a key, never while a monster the map shows is near (as near as the director comes in for), and comes back up at once on any key: walking or running across never dips the view. It never reads as a pool: a pool is a flat royal-blue tile at floor level, the basin a raised stone rim with water in it. Keyed on the feature's color, not its character (the player's own symbols may change that); the sink, a white {, and every other feature keep their letters. After the game warns that a fountain runs low ("The flow reduces to a trickle.", Minetown's warning), its jet rises only basin_jet_when_trickling of its height (0.35: a dribble over the bowl's lip), filed per level in what Codex remembers (N-222, D-127), until the fountain dries up; Codex keeps nothing in the save file, so after a save and a load it runs full again until the game warns again. Nothing tells magic or looted fountains apart, and nothing else follows from a message: when the game says the fountain is gone (codex.terrain_under) or the map shows floor, it is gone, with nothing played. Kept (N-83; director, 2026-10-31: "The carved basin is absolutely the way to go with the fountain.").

Id
codex.fountain_basin
Exact state
Built, not reviewed
Playtests
gallery-water, gallery-minetown
Settings
dungeon.fountains_as_basins, dungeon.basin_height, dungeon.spring_welling, dungeon.basin_column_height, dungeon.basin_jet_height, dungeon.basin_jet_when_trickling, camera.first_person_looks_into_fountains, camera.first_person_looks_down_after_seconds
Code
crates/nh-scene/src/build/terrain.rs, crates/nh-scene/src/surface.rs, crates/nh-plays/src/underway/view/letters.rs, crates/nh-state/src/lib.rs, crates/nh-scene/src/mesh/basin.rs, crates/codex-client/src/draw/fountain.rs, assets/shaders/basin_water.wesl, assets/shaders/basin_jet.wesl, crates/codex-client/src/draw/letters.rs, crates/codex-client/src/draw/world.rs, crates/codex-client/src/draw/things.rs, crates/nh-scene/src/ground.rs, crates/nh-plays/src/hero/motion.rs, crates/nh-plays/src/shot/pose.rs, crates/codex-client/src/input.rs, crates/nh-state/src/remembered.rs, crates/nh-moments/src/remember.rs, crates/nh-scene/src/memory.rs, crates/nh-scene/src/affected.rs, crates/nh-plays/src/underway/squares.rs
N-25To do"Things look like they feel" (D-18) for the rest:
N-52DoneCaves less square
N-83DoneThe basin: a fountain drawn as a carved stone basin
N-222DoneA trickle the fountain remembers
N-103Built, not reviewedThe fountain in Minetown and Delphi

A basin, a door or a boulder darkens where it meets the floor, with the floor at its foot.

Builtneeds reviewCamera or view

Details

N-319, the rest of the director's 'contact shadow everywhere' (N-317, 2026-11-03). A fountain's basin, a door's leaf and its handle, a boulder and a tool's form are the world's surfaces on the standard material, and Bevy's contact shadow closes in only their faint light, so their own sides stood bright beside the floor that darkened at their foot. They are drawn in the grounded material (draw/grounded.rs, assets/shaders/grounded.wesl): the same standard material, its lamplight closed in by the contact shadow as the walls' and floors' stone has it (stone.wesl): the stone's share, contact_shadow_in_lamplight, times contact_shadow_on_forms (1), above the stone's contact_shadow_threshold, so their open faces keep their light and only the joins darken. A form's side meets the floor at a shallower occlusion than the stone's corners (0.5 to 0.7 at a basin's foot, measured on the GTX 1660), so on a form the shadow is full where the occlusion reaches contact_shadow_on_forms_depth (0.6) of where it begins, on an S-curve that starts flat: at the stone's own curve the foot moved by two or three levels in eight bits and could not be seen. Only at the foot of a tall form (N-694, the director, 2026-11-28: "Only the bottom of tall things"): the shadow fades out going up the form's side, full to half of contact_shadow_on_forms_reaches_up (0.35 squares over the floor, about a sixth of a door) and none past it, and the faint light Bevy closes in by itself is lifted on the same curve, so an open door's leaf, one of the things the eye should find first, is lit above its foot as with no contact shadow at all (gallery-shop's first person, measured against the shadow off: all the brightness it had lost comes back from chest height up, half of it just over the foot); a basin or a boulder is short enough to be all foot and is grounded as before. Their own glow is never closed in. An altar and a thing with lore are already the stone's (N-2310) and take it there; with light.room_light_on_things 0 they are drawn on the standard material and take it here. A statue stays a letter of stone on the standard material (its letter is played on by a throw and a melt). With the contact shadow off (low quality) or the knob at 0 every form keeps the standard material, as before. Nothing new is inferred: it reads only the depth and normals of what is drawn.

Id
codex.grounded_forms
Exact state
Built, not reviewed
Playtests
gallery-furniture-shadow
Settings
light.contact_shadow_on_forms, light.contact_shadow_on_forms_depth, light.contact_shadow_on_forms_reaches_up
Code
crates/codex-client/src/draw/grounded.rs, assets/shaders/grounded.wesl, crates/codex-client/src/draw/things.rs
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.

  • fountains in Codex, first personfirst person
  • fountains in Codex, close third personclose third person
  • fountains in Codex, director's viewdirector's view
  • fountains in Codex, map viewmap view
Gallery scene gallery-furniture-shadow, basin. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.
  • fountains in Codex, first personfirst person
  • fountains in Codex, close third personclose third person
  • fountains in Codex, director's viewdirector's view
  • fountains in Codex, map viewmap view
Gallery scene gallery-water, water. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: gallery-authored-kit, gallery-water, gallery-minetown, gallery-furniture-shadow

Planned and proposed

In progress Minetown's and Delphi's fountains are the carved basin in their real places.

Left to do: A lit room's light on the basin's sides.

Planned A player's own forms for the hero, objects and features, not only monsters.

Details for builders

Id: fountain. Lexicon subjects: feature.fountain.

Design notes from NetHack

Messages: furious bubbling, gushing over, a trickle, drying up, a wisp of vapor, coins glistening far below. Tile 41 (other.txt): blue spray over a white basin.

Backlog rows

N-25To do"Things look like they feel" (D-18) for the rest:
N-52DoneCaves less square
N-83DoneThe basin: a fountain drawn as a carved stone basin
N-222DoneA trickle the fountain remembers
N-103Built, not reviewedThe fountain in Minetown and Delphi
N-353To doOwn forms for the hero, objects and features