Skip to content

Field report: a real room rebuilt from a LiDAR survey, then rendered in Blender Cycles next to a bpy build #73

Done

Description

@murk00

Thanks for Forma. I tried it on a real job, and it's a different kind of model from the mechanical parts in your benchmarks, so I thought the results might be useful. Nothing here needs an answer. I filed the two bugs I found separately: #71 (sweep corners) and a comment on #58 (--scene previews).

The test

The room is 7.37 x 4.26 m with a 2.6 m ceiling that falls 4.5 cm across the room. It's in an old house. We have a Leica LiDAR survey of it and a JSON file of measurements taken from the scan. That file has the wall lines, a plane fit for the ceiling, the moulding profiles, three windows, two pairs of glazed doors, a classical mantel and two cast-iron radiators.

Our normal pipeline is Python and bpy. It builds the house from that JSON and renders in Cycles.

I wrote the same room in Forma-Pipe. Forma can't read JSON, so a Python generator (about 600 lines) writes the numbers into a 183-statement script. Forma builds it in 0.64 s with the WASM CLI on macOS arm64: 181 parts, 87,000 triangles, all watertight.

Then I hid our 70 room meshes in the Blender scene, imported Forma's GLB in their place and rendered again. Camera, sun, sky, lamps, exposure and Cycles settings (1600 px, 192 samples) were all the same. I made one change to Forma's output. The glass parts got our glass shader, because the GLB has no transmission.

Results

Whole room

Whole room: Blender bpy build on the left, Forma GLB in the same scene on the right

Full size: Blender, Forma

Reading corner

Reading corner: Blender bpy build on the left, Forma GLB in the same scene on the right

Full size: Blender, Forma

The geometry came through well. The walls, openings, mantel profile and every piece of furniture land where they should. The GLB imported at the right place and scale with nothing to fix, so the Y-up conversion is right.

Almost everything we lost is on the material side:

  • There are no image textures. The oak floor, the rug weave, the wood grain, the fabric patterns and the artwork are flat colours or blank frames.
  • bevel(all, w, segs=3) on a box falls back to one chamfer ("segs=3 is only supported on prism/rim edges"). For the upholstery I used bevel and then subsurf(levels=2) instead. That works, but the cushions read softer than the real ones.
  • mat() has no transmission or emission.
  • The base, chair rail and crown are 13 to 50 % shallower than the scan, because of the sweep corner bug in sweep shrinks and skews the profile at path corners (tangent is next - prev, no mitre stretch) #71. Once you know, you can see it on the crown.

Render time in Cycles was the same: 73.2 s against 73.1 s for the whole room, and 107.3 s against 105.7 s for the corner. That's expected, because the modeller doesn't change the path-tracing cost.

Forma's own preview

Forma scene preview, 4 views, walls left out

This is the scene PNG, made with the library call from my #58 comment. I left the walls out. It's good for checking a layout in a quarter of a second. It can't show the inside of a room, because there's no camera. With the walls in, you get a closed box.

LiDAR overlay

I cut the Forma GLB at fixed planes and drew the cuts over the scan points. Grey is the scan, red is Forma's walls, floor and ceiling, and blue is every other part.

Plan cut at Z 1.10 m

Section through the fireplace centre line

On all four walls the wall faces sit 2 to 5 mm (median) from the scan. The mantel profile, firebox, hearth and ceiling slope sit on the points. The overlay also suggests our own survey file has the chimney breast 2 to 3 cm too narrow on each side. Our bpy model has the same offset, so that one is on us, and I still need to re-check it.

What worked well

  • sweep(..., closed=true) with a measured profile takes one line per moulding for the whole room, mitred at the corners. With sweep shrinks and skews the profile at path corners (tangent is next - prev, no mitre stretch) #71 fixed this would be the nicest part.
  • extrude2d(outer, z0, z1, holes=[...]) made the 8-lite glazed doors with no booleans.
  • deform("lattice", corners=...) put the ceiling on the scan's plane fit in one step.
  • clearance(a, b) gave rug to hearth as 0.113 m, which is exactly the figure in our notes. I'd use this one every day.
  • The eval output reports watertight, bbox and volume for every part. That makes a generated scene easy to check.

What would make it work for interiors

In rough order of value to us:

  1. Image textures in mat() (base colour, roughness and normal maps) carried into the GLB. Feature request: world-scale box/triplanar UV projection for tiling PBR materials #67 (world-scale UVs) is the other half of this.
  2. Transmission and emission on mat(), exported as KHR_materials_transmission and emissiveFactor.
  3. A rounded bevel with segments on box edges, or an rbox(sx, sy, sz, r) primitive. Every piece of furniture wants one.
  4. A camera for the PNG preview (position, target, fov), so you can look inside a room.
  5. A way to pass data in, like a JSON or CSV file or -D name=value, so the measurements don't have to be baked into the script text.

For this job we're staying with bpy for now. Our build already takes 8.8 s for the whole floor, and it keeps every material. I'll keep watching the project, though. With textures and a fixed sweep, it could easily take over the geometry side.

Activity

  1. wrong-nebula commented on Dec 4, 2026

    @wrong-nebula
    Owner

    Thanks so much for this field report — testing Forma against a real Leica LiDAR survey and Cycles side-by-side is genuinely the most useful kind of feedback we can get (and glad clearance() and the LiDAR overlay caught a real survey offset too!).

    Quick update: both bugs you filed from this test have now landed on main:

    We've also noted your 5 interior-architecture priorities (image textures + #67 world-scale UVs, transmission/emission, rounded box bevel/rbox, custom preview camera, and external data/variables). Closing this field report now that the two tracked bugs are merged — thanks again for sharing the benchmarks and renders!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions