Sada

Sada means “now”. Where to sit in the sun, or out of it, in the centre of Zagreb.

Role
Zagreb Hackathon, March 2026, with Marko Livaic. I built the 3D shadow map and the shadow-based picking.
Stack
Next.js, Mapbox GL, Web Workers
Live
sada-hackathon.vercel.app

How it works

One question, one answer, and until when.

  1. Tap Sun or Shade

    Café or bench, then the light you want. That is the whole interface.

  2. It picks one place

    The nearest that has that light now and keeps it for at least 20 minutes, with the time it ends: “Sun until 13:32”.

  3. It draws the walk

    The route there, over the city in 3D, lit from where the sun stands, so the shadows on the map fall where the answer says.

From the buildings

My part at the hackathon: the shadows, and picking by them.

Sun and shade come from the city’s own 3D model of 8,732 buildings and the position of the sun.

At the hackathon I built that part: the 3D shadow map of the centre and the picking that chooses a place by whether it is actually in the light. It covers a box of about 2.3 by 1.3 km around the main square.

Each building is a flat-roofed block. For a seat, the app follows a line from it toward the sun and looks for the first block the line enters. If that roof is higher than the line, the seat is in shade. “Until when” is the same question asked again for every minute ahead.

The map draws those same blocks with one light where the sun is, so what you see on screen is cast by the buildings the answer came from. All of it runs in a web worker in the browser. There is no server.

Where the tables are

An assumption

OpenStreetMap puts most cafés as a point inside their building, where it is always shade. So for a café mapped under a roof, the app judges a point two metres outside its nearest wall that faces open ground, skipping walls shared with the next building.

Where the tables really stand is not mapped anywhere, and the app says so under every pick that relies on the guess.

Built with
Next.js, Mapbox GL, Web Workers
My part
The 3D shadow map and the shadow-based picking
Knows
8,732 buildings, 147 cafés, 342 benches
Live at
sada-hackathon.vercel.app
Next project, 1 of 4Vectra XR 3D configurators for things that are built to order.