Tutelia: from a 2D floor plan to a 3D house you can walk through, in the browser

Hi everyone,

We’ve been building Tutelia, a browser app where you draw a floor plan in 2D and walk through it in 3D. The 3D side is three.js (r185, WebGLRenderer) all the way through.

You can try it without an account: https://tutelia.io/en/esempio
It’s our example house, a 17 × 12 m villa on two floors plus a basement. Open the plan, orbit the model or walk inside, on a computer or on a phone.

A few things that might interest this forum:

  • Geometry from 2D. Walls are lines with a thickness. Every time the plan changes, the house is rebuilt from them: wall joins, door and window openings, curved walls, floor slabs, and stairs you can walk up and down.
  • Real-time light only, nothing baked. The sun is placed for the chosen hour and season, with PCF shadows, GTAO and a LUT colour curve at the end of the chain. Exposure doesn’t adapt as you move: only the time of day changes it.
  • Lamps without shader recompiles. Every lamp is a real light. They live in a fixed pool, and dimming one to zero just sets its intensity to 0: changing the number of active lights recompiles every material, and that once froze the walk for about two seconds halfway up a staircase.
  • The pool reflects the house through a small cube camera (256 px per face) that renders one face per frame. Desktop only.
  • A quality governor. Phones start on a light profile; computers start from the GPU name. One slow frame in ten (over 22 ms in a 2 s window) lowers the pixel ratio, which can recover; two heavy windows in a row (median over 22 ms) or one over 45 ms drop a quality level, and levels never go back up, so the image doesn’t flicker between them.

What we’d most like feedback on: the first-person controls (mouse, touch and keyboard), and anything in the lighting that still looks fake to you.

Thanks for looking!
The Tutelia team

3 Likes

The fixed lamp pool is a really nice detail. Keeping the light count constant and only zeroing intensity is such a simple fix for the recompile stall, and a two second freeze halfway up a staircase is exactly the kind of bug you only find by walking the house yourself.

The quality governor that only ever steps down is a good call too. Flickering between levels would be far more noticeable than a slightly softer image.

One question on the 2D side: when a single wall changes, do you rebuild the whole house from the wall lines, or only the walls and openings around the edited segment? We think about the same full rebuild vs incremental tradeoff for 2D editing in Novastart (https://novastart.com/), an infinite canvas workspace, so I’m curious how it holds up on a two floor plan with curved walls.