Low walls: sight and movement #44

Closed
opened 2026-11-15 15:48:54 +01:00 by SirStone · 4 comments
Owner

Part of #38

Question

What does a low wall do: when can a token see over it (eye vs wall height, distance), and does it block movement?

Fixed by #42 (DESIGN 5.8)

  • A low wall is not a kind: it is a wall with blocks_sight on and a height below full (5.7). Movement is a separate switch, so "does it block movement?" is answered per wall, not by height: blocks_movement on means a knee-high wall stops a walker, off means a fence you walk through and shoot over.
  • A wall with blocks_sight off never reaches the vision input, so however short it is, it is not a low wall (terrain, #48).
  • Thickness does not enter this card (#45): the low-wall rule lives in the sight predicate only.

Question (narrowed)

When can a token see over a low wall: how do the viewer's effective eye height (5.7), the wall's height and the distance combine? Does the target's height matter (a giant's head above a fence)? Where does the hidden band start and how far behind the wall does it reach, and what should it feel like in play (a knee-high wall you see over from two squares away, a 2 m wall you do not)?

Oracle to name here

The hidden band changes explored cells and tiles for the viewer, so this card must state what the oracle asserts (10.3, and the map fog).

Part of #38 ## Question What does a low wall do: when can a token see over it (eye vs wall height, distance), and does it block movement? ## Fixed by #42 (DESIGN 5.8) - A low wall is not a kind: it is a wall with `blocks_sight` on and a height below full (5.7). **Movement is a separate switch**, so "does it block movement?" is answered per wall, not by height: `blocks_movement` on means a knee-high wall stops a walker, off means a fence you walk through and shoot over. - A wall with `blocks_sight` off never reaches the vision input, so however short it is, it is not a low wall (`terrain`, #48). - Thickness does not enter this card (#45): the low-wall rule lives in the sight predicate only. ## Question (narrowed) When can a token see over a low wall: how do the viewer's effective eye height (5.7), the wall's height and the distance combine? Does the *target's* height matter (a giant's head above a fence)? Where does the hidden band start and how far behind the wall does it reach, and what should it feel like in play (a knee-high wall you see over from two squares away, a 2 m wall you do not)? ## Oracle to name here The hidden band changes explored cells and tiles for the viewer, so this card must state what the oracle asserts (10.3, and the map fog).
SirStone added the wayfinder:grilling label 2026-11-15 15:48:54 +01:00
SirStone added a new dependency 2026-11-15 15:48:58 +01:00
SirStone added a new dependency 2026-11-15 15:48:58 +01:00
SirStone added a new dependency 2026-11-15 15:48:58 +01:00
SirStone added a new dependency 2026-11-15 15:48:59 +01:00
Author
Owner

Open from #41: does a target's height matter for see-over (e.g. a giant's head visible over a fence)?

Open from #41: does a target's height matter for see-over (e.g. a giant's head visible over a fence)?
Author
Owner

Input from #43 (prototype, pictures + findings) — suggestions passed on, this card owns the decision.

  • Owner fixed: a token is visible iff its top clears the wall on the line from the viewer's eye — a per-target predicate, not a wall-only "see over" flag. The floor polygon stays strict (a low wall still blocks the fan), so a visible token can stand on a still-fogged tile; that artefact was accepted over a permissive polygon that fogs a band nobody sees.
  • Evidence behind it: a 1.67 m eye sees a 1.0 m token over a 1.0 m wall at 75 px but not a 0.3 m crate at 45 px; a 0.93 m eye (below the wall top) still sees 1.8 m heads. Hidden band reaches d = s·h_eye/(h_eye − h_wall) behind the wall. A wall-only flag gets both cases wrong.
  • Suggested shape: one comparison per wall crossing on the line to the target's top (eye + t·(h_top − eye) > wall_h); "low barrier hides everything" is the h_top = 0 special case.
  • Geometry cost is zero (the predicate is not part of the fan). Family D (permissive fog polygon + strict tokens) remains the fallback at +1 fan per token, but was rejected by the owner.
  • Out of scope: showing players the % of body visible (cover) — rules engine.
**Input from #43** (prototype, [pictures + findings](https://git.fossellini.top/SirStone/FFF_vtt/src/branch/prototype/wall-sight/prototype-wall-sight/index.html)) — suggestions passed on, this card owns the decision. - **Owner fixed:** a token is visible iff **its top clears the wall on the line from the viewer's eye** — a per-target predicate, not a wall-only "see over" flag. The floor polygon stays **strict** (a low wall still blocks the fan), so a visible token can stand on a still-fogged tile; that artefact was accepted over a permissive polygon that fogs a band nobody sees. - Evidence behind it: a 1.67 m eye sees a 1.0 m token over a 1.0 m wall at 75 px but not a 0.3 m crate at 45 px; a 0.93 m eye (below the wall top) still sees 1.8 m heads. Hidden band reaches `d = s·h_eye/(h_eye − h_wall)` behind the wall. A wall-only flag gets both cases wrong. - Suggested shape: one comparison per wall crossing on the line to the target's top (`eye + t·(h_top − eye) > wall_h`); "low barrier hides everything" is the `h_top = 0` special case. - Geometry cost is zero (the predicate is not part of the fan). Family D (permissive fog polygon + strict tokens) remains the fallback at +1 fan per token, but was rejected by the owner. - Out of scope: showing players the % of body visible (cover) — rules engine.
SirStone self-assigned this 2026-11-15 19:05:30 +01:00
Author
Owner

Decided and recorded. DESIGN.md v0.23 (new 5.9 "Low walls: see-over", plus 5.7, 5.8, 7.4, 14) and GLOSSARY.md (Low wall, See-over, Visible fraction; Wall amended). Commit 4c968b7 on main, pushed to origin/main.

What we decided

  • Movement never reads height. blocks_movement alone decides; the collider, step cap, stuck/squeezed and the door push are unchanged. A knee-high wall with the switch on stops a walker.
  • See-over is a per-target predicate, not a wall flag. For each sight wall the line from the viewer's eye to the target's top crosses, the line's height there (h_e + (h_t - h_e)·d_W/d_T) must be strictly above the wall's height; every crossed wall must clear; equality is hidden; a full-height wall is absolute. The target's height therefore matters: a giant's head shows over a fence, a crouched figure is hidden beside a wall it would clear from further away.
  • The fog polygon stays strict. The floor behind a low wall stays unexplored and black, no tile is sent, and a visible token may stand on black. No per-cell height test exists anywhere.
  • Players get a binary answer. Whole token when visible, no clipping, no cover percentage.
  • GM-only who-sees-it view, in v1. Per token: which player(s)/characters see it and the visible fraction = share of its height above the highest blocking sight line (100 % unobstructed). GM-only, derived from data the GM already receives, never on a player wire; the panel's shape is M4 editor/fog work.

Delegated knobs, as decided

  • Comparison strict, equality hidden, evaluated at the wall near face (zero-width in v1; #45 names the thick face). A body level with the top is not above it.
  • Every crossed sight wall must clear (AND); candidates from the existing radius-bbox cull, so the cost is per crossed wall and adds no fan. One rule, one pass, zero geometry.
  • Hook at visibleTo (server/vision.nim): visible iff insideAny(pos) or predicate; height never enters visibilityPolygon, cellsTouched or tiles.nim. One copy of the rule, fan untouched.
  • Visible fraction: per wall h_req(W) = h_e + (h_w - h_e)·(d_T/d_W), f_W = clamp((h_t - h_req)/h_t, 0, 1); token = min over crossed walls, 1 if none. f = 0 exactly when hidden. The same predicate read as a number cannot drift from the binary answer.
  • A player's fraction in the GM view = max over that player's seeing tokens. That one does see it.
  • Heights come from the gm props of 5.7.

Oracle bits

Assertions land with the build tickets, not here:

  • tools/leakcheck.nim's clear-line oracle gets its own height test, independent of vision.nim.
  • Hidden-band cells are maybe for the explored/tile oracle (allow or refuse both correct; never sure).
  • A band-hidden token gives no token frame, no name and no encountered entry, and no churn.

Downstream

  • #45 thick walls: a thick wall needs a named near face for the see-over comparison.
  • #47 one-way walls: a one-way low wall is decided by the viewer-filtered sight list (direction decides whether the wall is crossed at all); the explored/tile question on the blocked side stays #47's.
  • #49 wire/migration: nothing new for players; heights stay gm props.
  • #50 door geometry: height does not touch the push or the collider.

Player-facing % / cover rules stay out of scope (a rules-engine judgement); the GM-only % view is now in scope per this card.

Decided and recorded. DESIGN.md v0.23 (new 5.9 "Low walls: see-over", plus 5.7, 5.8, 7.4, 14) and GLOSSARY.md (`Low wall`, `See-over`, `Visible fraction`; `Wall` amended). Commit `4c968b7` on `main`, pushed to `origin/main`. ## What we decided - **Movement never reads height.** `blocks_movement` alone decides; the collider, step cap, `stuck`/`squeezed` and the door push are unchanged. A knee-high wall with the switch on stops a walker. - **See-over is a per-target predicate, not a wall flag.** For each sight wall the line from the viewer's eye to the target's top crosses, the line's height there (`h_e + (h_t - h_e)·d_W/d_T`) must be strictly above the wall's height; every crossed wall must clear; equality is hidden; a full-height wall is absolute. The *target's* height therefore matters: a giant's head shows over a fence, a crouched figure is hidden beside a wall it would clear from further away. - **The fog polygon stays strict.** The floor behind a low wall stays unexplored and black, no tile is sent, and a visible token may stand on black. No per-cell height test exists anywhere. - **Players get a binary answer.** Whole token when visible, no clipping, no cover percentage. - **GM-only who-sees-it view, in v1.** Per token: which player(s)/characters see it and the visible fraction = share of its height above the highest blocking sight line (100 % unobstructed). GM-only, derived from data the GM already receives, never on a player wire; the panel's shape is M4 editor/fog work. ## Delegated knobs, as decided - Comparison strict, equality hidden, evaluated at the wall **near face** (zero-width in v1; #45 names the thick face). *A body level with the top is not above it.* - Every crossed sight wall must clear (AND); candidates from the existing radius-bbox cull, so the cost is per crossed wall and adds no fan. *One rule, one pass, zero geometry.* - Hook at `visibleTo` (`server/vision.nim`): visible iff `insideAny(pos) or predicate`; height never enters `visibilityPolygon`, `cellsTouched` or `tiles.nim`. *One copy of the rule, fan untouched.* - Visible fraction: per wall `h_req(W) = h_e + (h_w - h_e)·(d_T/d_W)`, `f_W = clamp((h_t - h_req)/h_t, 0, 1)`; token = **min** over crossed walls, 1 if none. `f = 0` exactly when hidden. *The same predicate read as a number cannot drift from the binary answer.* - A player's fraction in the GM view = **max** over that player's seeing tokens. *That one does see it.* - Heights come from the `gm` props of 5.7. ## Oracle bits Assertions land with the build tickets, not here: - `tools/leakcheck.nim`'s clear-line oracle gets its **own height test**, independent of `vision.nim`. - Hidden-band cells are **maybe** for the explored/tile oracle (allow or refuse both correct; never *sure*). - A band-hidden token gives no `token` frame, no name and no encountered entry, and no churn. ## Downstream - #45 thick walls: a thick wall needs a named near face for the see-over comparison. - #47 one-way walls: a one-way low wall is decided by the viewer-filtered sight list (direction decides whether the wall is crossed at all); the explored/tile question on the blocked side stays #47's. - #49 wire/migration: nothing new for players; heights stay `gm` props. - #50 door geometry: height does not touch the push or the collider. Player-facing % / cover rules stay out of scope (a rules-engine judgement); the GM-only % view is now in scope per this card.
Author
Owner

Correction: design commit is 4c968b7 on main (8b71a87 was mis-committed to the prototype branch and discarded). Pushed to origin/main.

Correction: design commit is 4c968b7 on main (8b71a87 was mis-committed to the prototype branch and discarded). Pushed to origin/main.
Sign in to join this conversation.