BetterMech ENPUBLIC · REV 0.1
Рецепта · сайт

3D зала с карта на местата

Тенденции: Жива 3D/WebGL сцена + Целенасочени микровзаимодействия + Тъмна тема по подразбиране. Концепция на Better Mechanics по рецептата — не е официалният сайт на марката.

Отвори сайта на живо →
Началото на сайта „3D зала с карта на местата“

Доказателството

WEB · MEHANIKA-3D-ZALAREV 0.1
axe serious
0
overflow 360
0 px
weight
732 KB
h1
1
lang
bg
date
2026-11-22
провереноaxe (WCAG 2.2 AA) в светла и тъмна тема · 360 px · автоматично; ръчният преглед предстои

(а) Многократният промпт (EN, неутрален към марката)

Build a single-page 3D view of a venue (sports hall, arena or theatre) for <venue name>, with a seat map
that reacts to data. One HTML file, Three.js (r160) as local ES modules, no external requests.

THE HALL IS PARAMETERS, NOT A MODEL
Describe the bowl with numbers: number of sectors, rows, inner ellipse radii, row step, rise per row (rake),
seat width, aisle share between sectors. Generate every seat from those numbers (sector, row, seat number,
x/y/z, facing angle). Never model seats one by one. If real seat data exists (block, row, number, x, y),
use it instead and derive height from the distance to the court: further away = higher.
A balcony is a separate tier: it starts at least 2 m above the top row of the floor and leans a few metres
toward the stage, so it visibly hangs over the back rows.

RENDERING
All seats are ONE InstancedMesh (one draw call). Colour per seat with setColorAt from its status:
free / held / sold / selected. Picking: raycast → instanceId → seat. Treat a pointer move of more than
6 px as a drag, not a click. Cap devicePixelRatio at 2. OrbitControls with damping and a slow autoRotate
that respects prefers-reduced-motion. Sector labels are HTML pinned to 3D points (CSS2DRenderer).
The court or stage is a flat plane with a thin outline.

DATA AND DASHBOARD
Bottom dashboard of four plain HTML panels: capacity, sold (number, %, bar), sold % per sector, the selected
seat (sector · row · seat · status). Sold/selected updates use aria-live="polite". A "simulate sales" button
fills seats in waves (front rows and long sides first) so the effect can be shown without a backend.

ACCESSIBILITY AND THEMES
lang set; one h1; the canvas has role="img" and an aria-label; every control is a real button
(aria-pressed for toggles); WCAG 2.2 AA contrast in light and dark (prefers-color-scheme); no overflow at 360 px;
a <noscript> line. Read colours from CSS custom properties so the 3D scene follows the theme.

DON'T
- 3D for the act of paying: real purchase stays on a 2D seat map (tap accuracy, zoom, accessibility).
- One mesh per seat, glow and bloom everywhere, a camera that never stops, invented sales numbers
  presented as real, CDN scripts on a site with a strict CSP.

(б) Брифът за Better Mechanics

  • Цел: да се покаже, че 3D изглед на зала с хиляди места върви гладко в браузъра и на телефон, като местата идват от данни, не от ръчно моделиране.
  • Зала: примерна (12 сектора × 22 реда ≈ 4 600 места) с игрище в средата. Числата за продажбите са симулация и така е казано на екрана.
  • Тема: тъмна и светла по системата; цветовете на сцената се четат от CSS променливите.
  • Шрифт: Manrope (локално, ../_obshto/fonts/). Three.js r160 е в js/ с лиценза MIT.
  • Доказателство: същият подход върви на живо в истинска билетна система: истински места по блок, ред и номер, височина по разстоянието от терена, балкон над партера.