The Volto 3D Addon is a powerful extension for Volto, designed to integrate 3D objects (e.g., STL files) and 360° photos into pages. This addon makes 3D content accessible and interactive for users by providing a dedicated block and rendering capabilities.
-
STL File Upload:
- Users can upload STL files directly to Volto.
-
3D Object Block:
- A new Volto block specifically for inserting 3D objects into pages.
- Supports rendering of STL files.
-
Rendering Engine Integration:
- Includes a suitable rendering engine for displaying STL files.
- Ensures consistency with other file views available in Volto.
-
Customization Options:
- Allows customization of the 3D object display in terms of rotation and size.
- Default zoom level ensures objects are both fully visible and easily recognizable (e.g., min. 50%, max. 100%).
-
360° Image Support:
- Preliminary evaluation for supporting 360° images using H5P.
To install the addon, run the following command in your Volto project directory:
npm install volto-3d-addon
After installation, update your addons
configuration in config.js
:
const config = {
...,
addons: [
...,
'volto-3d-addon',
],
};
export default config;
-
Upload STL Files:
- Navigate to the content management interface.
- Upload STL files as you would any other file type.
-
Add 3D Object Block:
- Edit a page in Volto.
- Add the "3D Object" block from the block selector menu.
- Select an uploaded STL file to display.
-
Customize Display:
- Adjust rotation and size directly within the block editor.
- View the object with a default zoom level for optimal recognition.
- Node.js (LTS version recommended)
- Volto project setup
- Clone this repository:
git clone https://github.com/your-organization/volto-3d-addon.git
- Install dependencies:
npm install
- Start the development server:
npm start
- Link the addon to your Volto project:
cd ../your-volto-project npm link ../volto-3d-addon npm start
Run tests to ensure everything works as expected:
npm test
- Improve rendering performance for larger STL files.
- Expand support for additional 3D file formats.
- Finalize integration with H5P for 360° image support.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.