Allow users to view and add 3D models to their content with Babylon.js Viewer.
PHP |
>= 7.4 |
WordPress |
>= 5.9 |
PHP |
>= 7.4 |
WordPress |
>= 5.9 |
npm |
>= 6.0 |
node |
>= 14.0 |
-
Download the
.zip
file and install Babylon.js Viewer plugin in WordPress. -
Activate Babylon.js Viewer plugin.
-
Add Babylon.js Viewer block to a page.
-
Add the model URL to the block or select a model from the Media Library.
Model example: https://playground.babylonjs.com/scenes/BoomBox/BoomBox.gltf
Video Tutorial:
babylonjs-viewer.mov
- Install
npm
dependencies
npm install
- Run
wp-env
environment
npm run wp-env start
- Watch
src/
directory and block files
npm run start
- Build
src/
directory and block files for production
npm run build