Rd Bundler 3d Plugins

screenshot of Rd Bundler 3d Plugins
vite

Bundler plugins for optimizing glTF 3D models

Overview

R&D Bundler 3D Plugins is an innovative toolkit designed to elevate the integration of glTF 3D models in modern web applications. Created by the R&D team at The New York Times, this monorepo encompasses plugins for popular bundlers like Vite and Rollup, allowing seamless processing and optimization of 3D models. Traditional web content often has robust support within these bundlers, but this project fills the void by providing the necessary tools for handling 3D assets, which are becoming ever more prevalent in web development.

What sets this toolkit apart is its use of the glTF-Transform library to facilitate model processing, paired with a configuration system that is both flexible and powerful. It empowers developers to customize their approach, choosing from existing optimization stages or crafting new methods tailored to their project’s unique needs.

Features

  • Vite and Rollup Support: Plugins are specifically designed for integration with Vite and Rollup, widely used bundlers that now cater to 3D content.
  • Flexible Configuration: Users can easily select optimization options and define custom processing methods, making the plugins adaptable to various project requirements.
  • Draco Compression: The toolkit supports Draco compression for assets, which significantly reduces the size of 3D models without compromising quality.
  • Advanced Optimization Pipelines: Developers can leverage multiple optimizations from the @gltf-transform/functions library, allowing the creation of tailored optimization processes.
  • Build-time Asset Optimization: Assets are optimized during the build phase, specifically in production and preview modes, ensuring efficient performance.
  • Easy Asset Management: It provides straightforward instructions for asset placement within your project structure, making integration user-friendly for developers.
  • Open Source Future: This project aims to evolve based on community feedback and support for additional bundlers, fostering a collaborative environment for further development.
vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.