Files

22 KiB
Raw Permalink Blame History

How virtual tabletops model wall kinds

Date: 2026-11-15. Ticket: #40 (map #38). Research only: no decision taken, nothing here is a proposal to copy a product's design. The owner decides the model on #42.

Question: how do existing VTTs and map formats model wall kinds — independent restriction flags for sight/movement vs fixed kinds; windows, one-way, secret, locked, terrain — and what does each model imply for a server that alone decides what each player sees (DESIGN §1 goal, §3.1 view rule: players never receive wall data)?

Sources are first-party docs and published data models, read on 2026-11-15. Versions and pins are in Sources.

TL;DR

  1. Two model families exist. Independent restriction axes (Foundry: light/sight/sound/move, each an enum; Fantasy Grounds: per-occluder Allow Vision/Allow Movement/Shadows toggles) and kind taxonomies (MapTool VBL types; UVTT portals with a single closed flag). Every product that ships a taxonomy also ships presets on top of axes (Foundry "Solid/Terrain/Invisible/Ethereal/Door/Secret/Window/Blank", FG Wall/Terrain/Door/Secret/Window/Illusionary/Pit/Shadow), so the presets are UI shortcuts, not the storage model. [S1][S2][S9][S12][S13]
  2. Door is orthogonal to the barrier: a door type (none/door/secret) plus a door state (closed/open/locked). Foundry stores exactly that (door, ds); FG stores toggleable + hidden + open + locked; Roll20 makes doors/windows separate portal objects placed beside barrier lines. Secret and locked are never separate geometry kinds. [S1][S2][S6][S7][S9][S10][S11]
  3. One-way is a direction axis on the barrier, not a kind: Foundry dir ∈ {both,left,right} "direction of effect"; FG Single-Sided plus point winding order to reverse the blocked side; Roll20 "One Way" barrier with a direction toggle. MapTool has no one-way vision blocking at all (stated limitation). [S1][S5][S9][S10][S12]
  4. "Window" is modelled two incompatible ways: a distance-limited sight barrier (Foundry: blocks movement; sight/sound only beyond a distance) or a see-through movable portal (FG, Roll20: see through, cannot pass unless opened, can be locked). Neither is a plain "transparent wall". [S1][S9][S10][S11]
  5. "Terrain" is a naming trap. Foundry Terrain Wall blocks movement and sound and lets sight pass only past the second such wall; FG Terrain lets you see into the area but not beyond; MapTool hill/pit/cover are area visibility types. "Blocks movement, not sight" is Foundry Invisible Wall and Roll20 Transparent barrier, not Foundry "Terrain Wall". [S1][S9][S10][S12]
  6. Low-wall / see-over behaviour is expressed as: a limited sight rule where the first barrier is transparent and the second blocks (Foundry), area semantics where the far edge blocks (FG terrain, MapTool hill/pit), or distance thresholds (Foundry threshold/proximity). None of these is a boolean "low" flag. [S1][S2][S8][S9][S12]
  7. The interop format is the weakest: UVTT 0.3 has sight-blocking line strings, sight-blocking object rings and portals that only carry closed; there is no movement blocking, no door/secret/locked field, no window, no direction in the schema. (A real .dd2vtt sample confirms the portal shape.) Importers must therefore default or use out-of-spec fields. [S13][S14][S10]
  8. None of these products' docs promise data-level withholding from players; they promise UI-level hiding ("Players do not have the ability to create, view, edit, or delete Walls" — Foundry KB). Our rule is stronger: the wall row never leaves the server (DESIGN §3.1). So the only player-observable effects of a new kind in our system are the vision polygon, explored grid, tiles and token frames. [S1][S15]

Findings with sources

1. Foundry Virtual Tabletop (v13 API, v14 KB)

Data model ([S2], API v13.350). A wall is one segment c: [x0,y0,x1,y1] plus independent restriction numbers and door metadata:

field meaning (verbatim summary of the API description)
light "illumination restriction type"
sight "visual restriction type"
sound "auditory restriction type"
move "movement restriction type"
dir "direction of effect imposed by this wall"
door "type of door which this wall contains, if any"
ds "state of the door this wall contains"
doorSound door sound asset
threshold per-sense minimum distance for blocking + attenuation

Enum values ([S3]–[S8]):

  • senses: NONE 0, LIMITED 10, NORMAL 20, PROXIMITY 30, DISTANCE 40.
  • movement: NONE 0, NORMAL 20 — movement is the only all-or-nothing axis.
  • directions: BOTH 0, LEFT 1, RIGHT 2.
  • door types: NONE 0, DOOR 1, SECRET 2.
  • door states: CLOSED 0, OPEN 1, LOCKED 2.

Semantics ([S1], KB "Walls", updated 2026-10-24, v14.369):

  • "A Wall can 'restrict' any combination of light, sound, movement, and sensory perception… Each of these restrictions can be configured independently."
  • Sense levels: None, Normal, Limited ("the first Wall with a Limited restriction… does not interfere at all, but the second… is fully blocking"), Proximity, Reverse Proximity. Limited is the mechanism behind the Terrain Wall preset.
  • Presets: Solid (sight, sound, movement); Terrain Wall ("block movement and sound, and only block sight beyond the second wall… see an object but not see beyond it"); Invisible Wall ("block movement but allows sight and sounds"); Ethereal Wall ("allow movement but block sight and sounds"); Door (closed blocks movement/sight/sounds, open sets all restrictions to None, can be locked); Secret Door ("players are unable to interact with them, only GMs can"; icon never shown to players); Window ("block movement, and only block sight and sound beyond a certain distance… the closer a token moves, the more it can see and hear"); Blank (restricts nothing).
  • Door rules: closed = behaves like any wall with its types/levels; open = "all temporarily set to None"; locked = closed, visible to players, cannot be opened, gives a rattle sound instead.
  • Players: "do not have the ability to create, view, edit, or delete Walls" (a UI statement).
  • Proximity levels are per-token distance checks with an optional attenuation; threshold in the data model is the same idea per light/sight/sound ([S8]).

Relevance to us: this is the flags model in its purest form plus a separate door type/state and a direction axis. Every named "kind" the owner listed (window, one-way, secret, locked, terrain) is expressible as a combination except secret/locked, which live on the door fields.

2. Fantasy Grounds Unity

Occluders are drawn per image in "Line of Sight Mode"; each occluder has a mode and a set of advanced toggles ([S9], FG wiki, updated 2026-10-14):

  • Modes: Wall ("block line of sight and movement for players"); Terrain ("Players can see into the first terrain in their vision. The back edge of the terrain blocks line of sight much like a wall. Players inside of terrain can see out of it in all directions"); Door ("see the contents of a door, but not beyond it", open/close by hover, GM shift-click to lock); Secret ("act just like a wall to players. The GM, however, will have the option to open the secret door"); Window ("see through the window but not move through it unless it is opened first. Windows can be locked"); Illusionary Wall ("block line of sight just like a wall, but which do not restrict player movement"); Pits (block movement and vision when a token is inside; the GM can open/close); Shadow Caster (blocks light only).
  • Advanced toggles apply to any occluder: Is Toggleable, Hidden (hide the toggle UI from players), Open, Locked ("Players will not be able to open or close this occluder. The hover UI will still be visible… unless the hidden option is also set"), Single-Sided ("only block vision in one direction. The dashed/dotted lines indicates the invisible side"), Terrain, Pit, Allow Movement, Allow Vision, Closed Shape, Counter-Clockwise ("switch the direction of single-sided occluders"), Shadows.
  • Editing aids: Split, Union, Trim Interior, Razor (edit-only), Peek ("amount users can see past where the occluder is drawn").

Relevance: FG is also a flags model, but the flags are per-instance booleans layered over presets, and secret/hidden/locked are properties of "toggleable" occluders. Terrain and pit are area semantics, not line segments. "Illusionary Wall" is the inverse of our terrain: blocks sight, allows movement.

3. Roll20

Barrier layer ([S10], help article, updated 2026-07-16):

  • Default barrier = "Walls": blocks vision/light from both sides.
  • Transparent barrier: "allow light and vision to pass through while blocking movement"; drawn dashed; the article's example is bushes/stumps you can see over but not walk through.
  • One-Way barrier: "allows light and vision to pass through from one side of the barrier but not the other"; triangles show the pass-through side, a button toggles direction.
  • "Anything drawn or placed on this layer will block lighting or vision for Tokens on that page."
  • The page setting Restrict Movement is separate from the barrier line; transparent/one-way and portals prompt to enable it.

Doors and windows are separate portal objects, not barrier segments ([S10][S11], updated 2025-10-27):

  • Placed "beside barrier lines, not on barrier lines"; require Restrict Movement to work.
  • One portal object with a Door/Window dropdown; toggles: Secret ("determines whether or not players can see your door"), Locked ("both GMs and players will be unable to open or close it"), Opened ("open doors cannot be locked").
  • Window-specific: Locked, Opened, Curtains — "curtains on open windows will allow movement but block vision; and curtains on closed windows will block vision and movement."
  • One-way barrier example: a balcony where those above can see below but not vice versa.

Relevance: barriers carry the axes; portals carry type + state. The same authoring surface exposes terrain ("transparent") and one-way without naming them kinds.

4. MapTool

Vision is blocked by a Vision Blocking Layer (VBL) of drawn topology, plus a Movement Blocking Layer (MBL) that never affects vision ([S12], RPTools wiki, rev 37400, edited 2026-07-08):

  • VBL types: wall (opaque; "blocks any vision on its border and inside its area and therefore overrides the more sophisticated options of pit and hill VBLs"), hill ("Tokens outside… have vision into the area but not beyond. Tokens within the area have vision in the area and beyond"), pit ("Tokens outside… have vision in the area and beyond, but tokens within… only have vision within its confines"), cover ("can be seen out of, and within, but tokens outside the area cannot see into it"). Hill/pit/cover require solid area drawing tools.
  • MBL: "does not affect vision, but the calculation for the path a token would take."
  • Doors have no type: the article suggests erasing VBL at the doorway, rotating a door token, or using token VBL.
  • Explicit limitations (as of 1.11.5): "Vision Blocking is Binary… no 'partially transparent' or 'one way' VBL"; blocks all forms of vision; "has no Elevation… it stretches to infinity"; no VBL explorer.

Relevance: the pure-kind model, with terrain-like semantics only in closed areas and no door/secret/locked/one-way support. It shows what a taxonomy without axes cannot express.

5. Universal VTT (map interchange format)

UVTT 0.3 schema ([S13], kwvanderlinde/uvtt master, JSON Schema 2020-12):

  • Required: format (const 0.3), resolution (map_origin, map_size, pixels_per_grid), environment (baked_lighting, optional ambient_light), image (base64 PNG/WebP).
  • line_of_sight: arrays of points, "a connected string of line segments. Each segment blocks line-of-sight."
  • objects_line_of_sight: closed rings, same meaning for objects.
  • portals: each has position, bounds (segment string), rotation, closed ("If true, the bounds of this portal blocks line-of-sight"), freestanding ("not associated with a wall"). No door type, no secret, no locked, no movement flag, no direction, no window, no distance threshold.
  • A real .dd2vtt sample (format: 0.3) has a portal with only {position, rotation, closed: true, freestanding: false} and environment: {baked_lighting, ambient_light} — no extra kind fields ([S14]).

Consequence: a format-only import (M6 CLI) can express "blocks sight" and "open/closed portal". Terrain, windows, one-way, secret and locked have to come from defaults or non-spec extensions. Roll20's UVTT article nevertheless says "UVTT map files place walls, doors, windows, and lights automatically" ([S10]) — exporters add fields the 0.3 schema does not define; treat those as vendor extensions, not format guarantees.

6. Comparison

Foundry Fantasy Grounds Roll20 MapTool UVTT 0.3
storage flags (light/sight/sound/move enums) + door type/state + dir presets + per-occluder booleans barrier kind (wall/transparent/one-way) + portal objects VBL type (wall/hill/pit/cover) + MBL sight line strings + portals with closed
sight enum incl. limited/proximity mode/area + allow-vision toggle barrier passes or not; portals see-through type-dependent, binary yes/no
movement move enum allow-movement toggle page "Restrict movement" + transparent barrier MBL separate not expressible
sound enum (not in LOS page) — — —
light enum shadow casters light blocked with vision — baked or ambient only
one-way dir single-sided + winding one-way barrier + direction none (stated) none
secret door type SECRET secret mode / hidden toggle portal Secret none none
locked door state LOCKED Locked toggle portal Locked none none
window distance-limited sight preset see-through lockable portal see-through portal w/ curtains none none
terrain meaning "Terrain Wall" = block move+sound, sight past 2nd; "Invisible Wall" = block move only see into area, not past transparent = block move, pass sight hill/pit/cover areas none

7. Name collisions to keep straight

  • terrain: Foundry Terrain Wall is not "blocks movement only"; that is Foundry Invisible Wall, Roll20 Transparent, FG Allow Vision. FG Terrain and MapTool hill/pit are area visibility rules. Our map's "terrain (blocks movement, not sight)" matches the second group, not the first.
  • window: Foundry = distance-limited wall; FG/Roll20 = see-through, openable, lockable portal. "Window" does not imply "always transparent".
  • secret and locked are attributes of a door, never geometry. In FG and Roll20 the locked UI stays visible unless separately hidden; in Foundry a locked door is visible to players by design.
  • one-way is always a direction on the sight (or light) restriction, never a separate kind.

8. What our server must hide, per kind

Design constraints used here: the server alone decides what each player sees (§1); players never receive walls or doors, geometry or open/closed, over WS or HTTP, and vision polygons, explored grid, tiles and token frames are the only carrier of what they know (§3.1, §6.1). Every wall row (kind, flags, ids) is GM-only, and wall intent acks go to the GM only.

Because the data is withheld, the security question per kind is not "which field do we omit" but "is any player-visible output different in a way that reveals the kind, beyond what the kind is supposed to do?"

kind intended player-observable effect must not be observable
plain wall LOS polygon stops at it nothing extra
window sight passes within the window's rule (distance-limited, or see-through while closed) the wall row, the threshold value, the fact that a portal exists vs a gap; do not send a door/window flag for rendering
one-way one observer sees through, the other does not a shared "wall blocks/does not block" bit; direction must be evaluated per viewer, never broadcast as state
secret door (closed) byte-identical to a plain wall in vision, explored, tiles, tokens and refusal codes its existence, id, kind, icon, door sound. If players ever push doors, the refusal for a secret door must equal the refusal for a solid wall
locked door closed = like a wall; lock state is GM-only in v1 (GM-only door.set) the lock state; and later, refusals must not distinguish locked / secret / solid
terrain (block move, not sight) identical vision to no wall; movement stops or is refused any vision difference (a terrain wall must be absent from the sight predicate), and any refusal text/code that names the cause
door open/closed LOS changes, which is the point door frames/ids/count; open state must reach players only through recomputed vision/explored/token views

Additional consequences:

  • These five kinds need no new player-facing wire field. They change the server's sight and move predicates and, for doors, the GM-only state. That keeps the §3.1 rule intact.
  • A per-wall "visible/hidden" flag like Foundry's secret or FG's hidden is unnecessary here: nothing is sent, so a secret door is hidden for free. The only design work is rule equivalence and refusal indistinguishability.
  • Wall counts already leak through timing/id gaps today (wall.add ack is GM-only, but vision changes are visible); §3.1 already forbids hello carrying wall counts. New kinds do not add a channel, as long as acks and refusal reasons stay kind-neutral.
  • If a later kind is not fully hidden (e.g. a window that renders), that is a deliberate change to §3.1 and belongs to the owner, not to this research.

Fog this research makes specifiable (tickets, not decisions)

These are candidate tickets for the map; none is created here and none decides #42's answer.

  1. Secret-door equivalence oracle: for a closed secret door, every player-bound frame and every refusal must equal the same scene with a plain wall (vision polygon, explored diff, tiles, token frames, error codes), and no frame may carry a door/secret marker.
  2. Terrain oracle: vision polygon and explored grid identical with and without a terrain wall; move rules treat it as a blocker; refusal codes identical to a solid wall.
  3. One-way oracle: A sees B and B does not see A across the same wall, evaluated per observer; no shared wall state on the wire.
  4. Window semantics test: distance threshold value (owner-delegated number) and the oracle "sees through within N, blocked beyond", with no window metadata in any player frame.
  5. Door-state indistinguishability (depends on whether players ever interact with doors, already fog): locked vs secret vs solid must share one refusal.
  6. UVTT import gap (#49 input): the format cannot express movement blocking, secret, locked or one-way; the M6 importer needs a documented default plus a sidecar/extension mapping.
  7. Flags-vs-kinds storage (#42 input): the facts above give the axes (sight rule, move rule, direction, door type/state, distance threshold) that any storage choice must be able to hold; this is evidence for that ticket, not an answer.

Not covered

  • Sound blocking (out of scope for the map).
  • Foundry's Levels/Regions and FG's lighting model beyond wall interaction.
  • Any product's internal code; only published docs and data models were read (Foundry and FG are closed source).
  • Behaviour of modules/extensions that add kinds (e.g. Foundry wall modules); not first-party.

Sources