The 2D to 3D system takes a flat plan, like an architect's floor plan or a site layout, and turns it into two things: a walkthrough film, and a web page where you can walk around the place yourself. Everything is made with code in three.js and free CC0 textures, and it renders on an ordinary 8 GB laptop. The work is shown at creatives.reliableailabs.org.
From plan to model
- Trace the plan into data. Walls are straight centre-lines with doors, windows and sliders on them. Rooms and furniture sit alongside. For a site plan, the scale comes from one known edge, and the traced area is checked against the area stated on the drawing.
- Check the camera path before rendering. A script walks the path and flags any point closer than 0.25 m to a wall, a door leaf, furniture or a curtain.
- Low-poly first. A version with flat colours but the same layout and camera goes to the client first. Changing a wall at this stage costs minutes. After a full-quality render it costs hours.
- Then full quality, with 2K textures and a sky map from Poly Haven, rendered frame by frame at 24 fps and joined into an MP4 with ffmpeg.
The look
The film starts on a plain background. The plan draws itself as fine lines, the walls rise as a white model, and then finishes, furniture and lamps arrive. After that, one slow, unbroken camera move tours every room. Passages 0.9 m wide feel cramped at eye level, so the camera glides through from about 7.5 m up instead. Every project gets its own style preset, so no two houses look alike.
The web version uses the same drawing as its loading screen. The real 3D scene loads in the background while the plan draws, so there is no spinner. Then the camera drops to eye level, 1.65 m, and the world builds up in layers: ground, paths, walls, trees and sky. On a computer you walk with the keys and mouse. On a phone you use a joystick, and the page lowers its quality on its own to stay smooth.
Bugs worth writing down
- A black block in the middle of a frame. One pixel came out as NaN, and the bloom pass smeared it into a black square. Turning off the passes one at a time found it. A small pass before bloom now replaces bad pixels, and every final MP4 is scanned frame by frame with ffmpeg.
- A blank page only on the live host. Cloudflare Pages turned module preloads into Early Hints. That made Chrome load the modules before the import map, so the walk page was blank, but only on the live host. One line in
_headersturns those hints off. - Video files too big for the host. Pages allows 25 MB per file, so the film is served as HLS in 2-second segments at 1080p and 720p, not as one large MP4.
- Render workers stalling. With 8 GB of memory, three render workers time out and two stall partway. Full-quality renders run with one worker and take about two hours, unattended.
What it costs
The models, textures and hosting cost nothing to run. Rendering happens on the laptop, the textures are CC0, and the sites are on Cloudflare Pages. A rented GPU is used only when a client asks for it, with a spending cap and a shutdown the minute the job ends.