Skip to content

Allow users to view and add 3D models to their content with Babylon.js Viewer.

Notifications You must be signed in to change notification settings

JimJ92120/wordpress-plugin-babylonjs-viewer

Repository files navigation

wordpress-plugin-babylonjs-viewer

Allow users to view and add 3D models to their content with Babylon.js Viewer.


Requirements

For plugin installation

PHP >= 7.4
WordPress >= 5.9

For development

PHP >= 7.4
WordPress >= 5.9
npm >= 6.0
node >= 14.0

How to use

  1. Download the .zip file and install Babylon.js Viewer plugin in WordPress.

  2. Activate Babylon.js Viewer plugin.

  3. Add Babylon.js Viewer block to a page.

  4. 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

Development

  1. Install npm dependencies
npm install
  1. Run wp-env environment
npm run wp-env start
  1. Watch src/ directory and block files
npm run start
  1. Build src/ directory and block files for production
npm run build

Credits


Documentation