-
Ask box answering "which bedroom gets winter morning sun but stays shaded on summer afternoons?",
-
Main viewer at Dec 21, 9:00 am: floor plan with light patches, ranked room cards, compass, and 3D panel.
-
Validation page: "3 of 4", "13 of 19", "2.1x", and a real scan photo next to the simulated sun patch.
-
Scan outline fitted to the Vexcel building footprint (IoU 0.84), the true-north step.
-
Same alignment on 310 E 25th St (IoU 0.91).
Inspiration
Listings say "bright and open" or "sun-filled". Nobody can check that. A floor plan won't tell you which bedroom gets morning sun in December, or whether the oak next door kills your afternoon light in July.
We had three datasets that, put together, could answer it: Matterport scans (exact window positions and sizes), Vexcel aerial data (building footprints and a surface model of every tree and roof), and CoStar listings (price, beds, and the marketing text). So we asked: can we compute where the sun actually lands inside a home, and check the listing's claim?
What it does
For any scanned Houston home, Suncatcher shows where direct sun lands in every room at any time on any date, and ranks the rooms.
- Floor plan with moving light patches. Drag the time slider or pick a date (solstices, equinoxes, or the 21st of any month). Warm patches sweep across the floor; hatched areas show light blocked by trees and neighbors. A compass shows sun position and height.
- Ranked room cards. Switch between Most sun, Morning, and Afternoon. On 8826 Jackwood St on Dec 21 the Primary bedroom gets 5h 30m of direct sun (8:15 am to 1:45 pm), and trees and neighbors block 2h 30m of that window.
- Real 3D shadows on the same clock. A Vexcel 3D neighborhood (Cesium) casts real shadows at the moment you choose, so you can see which tree is doing the shading.
- Ask box. Type a question like "which bedroom gets winter morning sun but stays shaded on summer afternoons?" or "where should a plant needing 4+ hours of sun go in December?". An LLM answers in 1 to 2 seconds using only the computed per-room data, highlights the rooms, and jumps the clock to a moment that shows the answer. If the API is down, an offline keyword fallback still answers.
- Listing reality check. Each home shows the listing's own light claim (for example, Listing says "bright") next to the computed numbers.
19 Houston homes are processed; 10 of them have the Vexcel 3D neighborhood.
How we built it
A Python pipeline in sun/ runs per home, then a small web app serves the results.
- Windows from Matterport. We read the vector wall plan: wall segments plus window openings with width, height, sill height, and position along the wall. One gotcha we pinned down: opening sizes are in meters even when the model says imperial.
- True north. A scan has no compass. Matterport geolocation gives an approximate placement, but it was off by up to 5 m (and in one home by hundreds of meters). We refine it by fitting the scan's outline to the Vexcel building footprint, maximizing overlap. Median overlap (IoU) is 0.83 across 19 homes, and 13 of 19 reach 0.8 or better.
- Shade. We ray-march the Vexcel digital surface model (about 0.5 m resolution, 160 m box) from sample points on each window toward the sun, so trees and neighboring roofs block light.
- Sun and light patches. Sun position every 15 minutes with pvlib. Each window opening is projected along the sun direction to the floor, clipped to the room polygon with shapely, and scaled by the unblocked fraction. Per-room minutes of direct sun are totaled by season and by morning/afternoon.
- Viewer. Vanilla JavaScript with SVG for the floor plan and CesiumJS for the Vexcel 3D tiles with real shadows, bound to one clock. A small Python server proxies and caches Vexcel calls.
- Ask. The server sends the question plus the computed per-room data to Groq (gpt-oss-120b) and forces a single tool call,
show_answer, that returns the answer text, the room ids to highlight, and the date and time to jump to. The model is told to use only the numbers given. The page falls back to a local keyword answer if the call fails. - Listings. CoStar residential listings supply price, beds, baths, square footage, and the remarks text we scan for light claims.
Challenges we ran into
- Orientation was the risky step. Scan geolocation was close but not reliable, so we fit each scan to the Vexcel footprint. Rotation corrections were typically about 3 degrees (median), and the fit gets worse on irregular or non-rectangular outlines.
- Units and conventions. Opening widths in meters vs room dimensions in feet, relativeCenter as a 0 to 1 fraction, and the ground level in the surface model differing from the terrain model by about 1 m, so we take ground from pixels just outside the footprint.
- Not every scan has windows. Of 59 detached one-story Houston scans we looked at, only 20 had any windows in the wall plan.
- Vexcel footprint lookup. Listing points often miss the roof; adding a 25 m search buffer fixed it (59 of 59 returned a footprint).
- Keeping the LLM honest. We force a tool call and feed it only computed numbers, so it can't invent rooms or minutes. If the data can't answer, it says so.
Accomplishments that we're proud of
- A full chain from a scan to a sun answer with no manual steps: wall plan, true-north alignment, shading from real tree and roof heights, and room rankings.
- Checked against reality. We project the simulated sun patches into the actual 360-degree scan photos and compare them with the bright floor pixels. The true orientation beats the same fit with the house rotated 90, 180 and 270 degrees on 3 of 4 sunny scans (one clear visual match, two weak, one miss).
- Alignment accuracy. Footprint overlap median 0.83 over 19 homes.
- Listing claims vs physics. Homes whose listings claim light score 2.1x more simulated sunlit floor per 100 m2 (n=4 vs 15, p=0.03).
- A shared clock between a 2D plan and a 3D neighborhood with real shadows, so the slider feels physical.
- Natural-language questions answered in about 1 to 2 seconds, grounded in computed data.
What we learned
- Public scan geometry is enough to compute real sunlight, but only after you solve orientation; a footprint from aerial data is the cheapest compass.
- The hard part is not the sun math but the alignment and the units.
- For LLM features on numeric data, a forced tool call with a closed set of room ids and date keys keeps answers checkable and lets the answer drive the UI.
- Honest validation with controls (rotated copies of the house) is more convincing than a single pretty overlay.
What's next
- Beyond Houston: anything with Matterport scans and Vexcel coverage (Los Angeles is covered by the same data).
- Multi-story homes and the interior of each floor. Today the focus is the single ground floor.
- 3D mesh for all homes, not just the 10 that have it today.
- Matterport inside view: open the tour at the right room and show light patches on the scanned floor.
- A bigger validation set, with capture time from photos, and calibrating for window glazing and curtains.
- A buyer feature: sort and search listings by the light you want, such as "morning sun in the primary bedroom in winter".
Limitations (honest summary)
- Houston only for now; 19 homes processed, 10 with the Vexcel 3D mesh (the rest fall back to aerial imagery).
- The photo validation sample is small (4 sunny scans, 3 pass, only one strong), and the listing correlation is n=4 vs 15.
- Single-floor focus. Direct sun only: no sky light, reflections, curtains, or interior obstructions.
- Alignment IoU ranges from 0.63 to 0.91; 6 of 19 homes are below 0.8.
Built with
python, javascript, cesiumjs, matterport, vexcel, costar, groq, gpt-oss-120b, pvlib, noaa, shapely, rasterio, pyproj, numpy, scipy, pandas, pillow, svg, geotiff, 3d-tiles
Try it out
- GitHub: https://github.com/prayush21/suncatcher
- Run locally:
python3 twin/server.py, then open/sun.html?m=i9cF8j9z7bn&d=winter&t=09:00(needs API keys in.env; they are not included). - Validation page:
/validation.html
Side experiments
Along the way, we built two side demos on the same data: Storm Ready, a flood-risk map of Houston scanned properties from one Vexcel bare-earth elevation call, and a furniture placement experiment (a sofa-placement pipeline judged by an LLM on rendered views of the scan). They are not part of the Suncatcher submission, but they use the same Matterport and Vexcel joins.
Built With
- cesium
- costar
- gpt-oss-120b
- groq
- javascript
- noaa
- numpy
- pvlib
- pyproj
- python
- rasterio
- shapely
- vexcel