prev:
text: '@threepipe/plugin-network'
link: './plugin-network'
next:
text: '@threepipe/plugin-gaussian-splatting'
link: './plugin-gaussian-splatting'
Exports BlendImporterPlugin which adds support for loading .blend files.
js.blend for parsing blend file structure.Currently working: Mesh, BufferGeometry and basic PointLight.
To be added: PhysicalMaterial, UnlitMaterial (similar to blender-gltf-io plugin)
Example — Source Code — API Reference
npm install @threepipe/plugin-blend-importer
import {ThreeViewer} from 'threepipe'
import {BlendLoadPlugin} from '@threepipe/plugin-blend-importer'
const viewer = new ThreeViewer({...})
viewer.addPluginSync(BlendLoadPlugin)
// Now load any .blend file.
const model = await viewer.load<IObject3D>('path/to/file.blend')
// To load the file as a data url, use the correct mimetype
const model1 = await viewer.load<IObject3D>('data:application/x-blender;base64,...')