Commit Graph
4 Commits
Author SHA1 Message Date
Dejvino 5310079870 tron-room-demo: free-running hardware benchmark build for the T-Deck
Split the sketch into a device-agnostic renderer core (RoomViewCore.h:
RGB565 rasterizer, camera, world sim — no emulator dependencies) plus a
thin emulator shell (keyboard pump + the 565-to-8888 presentation blit).

Add fw/ as a self-contained PlatformIO project (own platformio.ini
pointing at the shared boards/, lib/ and src/netdeck headers — per-env
src_dir is not supported by PlatformIO, so NetDeck's top-level config
stays untouched). fw/RoomViewHW.ino is the firmware twin: the core
rasterizes directly into a TFT_eSprite's frameBuffer() (16-bit, PSRAM)
and presents with the proven NetDeck startWrite/pushSprite/endWrite
pattern. The loop free-runs and reports true throughput over USB serial
every 2 s: fps + average render vs. push split.

Verified: emulator render unchanged (smoke frame identical), pio
RoomViewHW env builds clean for ESP32-S3 (346 KB flash), make netdeck
dual build green.
2026-11-16 22:41:20 +01:00
Dejvino 4ed0bc4a51 tron-room-demo: fix missing box top faces
The face table drew the 'top' quad from corners 0-3, which sit at z0
(the base), while the real top face (corners 4-7 at z1) was backface
culled against the overhead camera — every box rendered open-topped.
Swap the two entries so the top face uses the z1 corners; the top-rim
highlight and face-center backface cull both key off face 0 and now
refer to the true top.
2026-11-16 22:36:42 +01:00
Dejvino d69c387f29 tron-room-demo: render the whole pipeline in RGB565 (real-HW color space)
The sketch now draws into a 16-bit 320x240 fb565 — the ST7789 panel's
native format — using the RGB565 palette constants straight from
nd_layout.h (C_FLOOR, C_WALL, C_COVER, C_DOOR, C_AIRLOCK, C_LINK,
C_PACKET, node colors). Shading/fog are integer fixed-point on the
5/6/5 channels so the banding matches what the MCU would produce; the
desktop window sees a 565-to-8888 expansion blit that stands in for the
SPI push (which ships 565 as-is on hardware).
2026-11-16 21:49:31 +01:00
Dejvino 897361c881 Add tron-room-demo: orbiting top-down 3D view of the NetDeck demo map
Copy of the tron-demo emulator-only template with a new RoomView sketch
that renders the real demo floorplan (src/netdeck/nd_demomap.h, consumed
through MapSource) as an orbiting pseudo-3D flythrough: extruded shaded
boxes for walls/crates/door/terminal, network pylons with link packets,
patrolling entities, distance fog and checker floor. Makefile adds an
include path to ../src/netdeck instead of copying the map headers.
2026-11-16 21:45:56 +01:00