Standard web glTF/OBJ viewers usually run out of memory or stall for minutes when given multi-gigabyte industrial or BIM assemblies. I built and open-sourced 3dbrowser (GPL-3.0) to keep browser memory bounded and render the first frame quickly.

Why a Custom Streaming Format?

When a 2+ GB BIM or plant assembly is exported to plain glTF/JSON, parsing and expanding it in the browser easily multiplies memory usage several times over, crashing the tab. Even if it fits in memory, hundreds of thousands of separate meshes produce too many WebGL draw calls.

3dbrowser is designed around six-figure component counts from the ground up:

  1. NBIM v11 Single-File Container: Packs geometry, properties, and the structure tree into one binary container (with fixed-point coordinate quantization and columnar blocks).
  2. Octree Chunk Streaming: Instead of waiting for the entire file to download before rendering, chunks stream in by spatial octree so the first frame appears in ~3–4.5s.
  3. Three.js BatchedMesh: Merges heterogeneous components sharing materials into far fewer draw calls to maintain smooth frame rates.
  4. On-Demand Property Resolution: Component metadata is resolved when selected rather than kept resident in memory alongside geometry.

Benchmark & Capabilities

  • Tested on a 2.9 GB NBIM file (231,353 components, 186 million rendered triangles) in a single browser tab while keeping JS heap under ~3 GB.
  • Supports IFC (web-ifc), STEP/STP & IGES/IGS (occt-import-js), GLB/GLTF, FBX, OBJ, STL, PLY, 3DS, DAE, and NBIM v11 (.nbim).
  • Includes distance/angle/point measurement, real-time sectioning planes, hierarchical scene tree search, and marquee box selection.

Current Limitations

  • Multi-GB models need to be converted to the NBIM v11 format first; loading raw multi-GB IFC or STEP files directly in-browser is still bound by client-side WASM memory.
  • Licensed under GPL-3.0.

If you are working on WebGL CAD/BIM viewers or Three.js BatchedMesh pipelines, I'd love your feedback on the repo!