Statamic 3D Field is a Statamic addon that allows uploading a 3d model and configuration options along with a tag for frontend usage. Uses google/model-viewer to display the 3d model.
This addon does:
- Upload a .glb 3d model
- Configure settings for the 3d model
- Tag for frontend usage
You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:
composer require darinlarimore/statamic-3d-field'additional_uploadable_extensions' => [
'usdz', 'glb',
],
Name the field handle three_d_model or whatever you like.
Use the 3d_model tag in your template to display the 3d model. The field parameter is required and should be the field handle you used in the blueprint.
{{ 3d_model field="three_d_model" class="w-full h-96" }}
