Skip to content

nytimes/rd-bundler-3d-plugins

Repository files navigation

R&D Bundler 3D Plugins

Bundler plugins for optimizing glTF 3D models (.gltf and .glb files).

Created by R&D @ The New York Times.

Overview

Monorepo containing plugins for two popular bundlers (Vite and Rollup) allowing each to process and optimize 3D models used by a web application. While bundlers can process traditional web content — like CSS or images — out of the box or with existing plugins, bundlers lack any understanding of 3D content. This project orchestrates processing of models using the glTF-Transform library, and includes configuration flexible enough to select among existing processing stages or to define and add new methods.

Dependencies:

  • glTF Transform: general-purpose glTF processing library
  • Draco: compression for mesh geometry
  • Meshoptimizer: compression for mesh geometry, point geometry, animation, and morph targets