React components for 3D character viewing with animations and morph targets
npm install mbt-3dbash
npm install mbt-3d
`
$3
`bash
npm install react react-dom three @react-three/fiber @react-three/drei
`
Requirements
- React >= 18.0.0
- Three.js >= 0.150.0
- @react-three/fiber >= 8.0.0
- @react-three/drei >= 9.0.0
Local Development
For local development and testing with another project:
1. Link the library:
`bash
In mbt-3d directory
npm link
Start watch mode for auto-rebuild on changes
npm run build:lib:watch
`
2. Use in your project:
`bash
In your project directory
npm link mbt-3d
`
3. When done, unlink:
`bash
In your project directory
npm unlink mbt-3d
In mbt-3d directory
npm unlink
`
Alternative: Use file: protocol
`json
{
"dependencies": {
"mbt-3d": "file:../path/to/mbt-3d"
}
}
``