About this plugin
js library and its addons into your WordPress site using a custom bundle file. This setup allows you to create and manage custom 3D models, animations, and interactive graphics directly within your WordPress theme or custom JavaScript code.
Features
- Custom Bundle Integration: Enqueues the Three.js library and essential addons using a custom bundle file, avoiding reliance on a CDN.
- Easy Setup: Straightforward installation and activation process.
- Custom Integration: No built-in shortcodes or settings; users add their own Three.js code for full customization.
Source Code
com/rondevs/threejs-custom-bundler
Usage
js for specific pages. js and its addons will be available for use in your theme or custom JavaScript files. js code to create and manage 3D content.
Example Usage
Add Custom JavaScript:
js initialization and rendering code to your theme’s JavaScript file or use a custom script. Here’s a basic example:
'); } });
NOTE: Destructure THREE and the addons to access from ThreeWP bundle.
Tips
js container or renderer according to your design requirements. Handle window resizing events to keep the 3D content responsive.
js documentation for detailed information on creating more complex scenes, objects, and animations.
Available Tools in This Plugin
- THREE
- Addons:
- ArcballControls
- BufferGeometryUtils
- CameraUtils
- CCDIKSolver
- ConvexGeometry
- ConvexH
- CSS2DRenderer
- CSS3DRenderer
- DecalGeometry
- DRACOLoader
- DragControls
- EdgeSplitModifier
- EffectComposer
- FirstPersonControls
- FlyControls
- FontLoader
- GLTFLoader
- KTX2Loader
- LDrawLoader
- Lensflare
- LensflareElement
- LightProbeGenerator
- LightProbeHelper
- Lut
- LUT3dlLoader
- LUTCubeLoader
- MapControls
- MeshSurfaceSampler
- MMDAnimationHelper
- MMDLoader
- MMDPhysics
- MTLLoader
- OBB
- OBJLoader
- OrbitControls
- ParametricGeometry
- PCDLoader
- PDBLoader
- PointerLockControls
- PositionalAudioHelper
- RectAreaLightHelper
- Rhino3dmLoader
- SceneUtils
- SDFGeometryGenerator
- SkeletonUtils
- Sky
- SVGLoader
- SVGRenderer
- TeapotGeometry
- TextGeometry
- TGALoader
- Timer
- TrackballControls
- TransformControls
- VertexNormalsHelper
- VertexTangentsHelper
- XREstimatedLight
v2.0.2
- Updated custom bundle file.
- Removed external dependencies from the bundle.
- Introduced shortcode [use_threewp] to load the Three.js bundle script only on pages that contain the shortcode.
2.0.1
- Added defer attribute to the Three.js script for improved performance and load times.
- Updated plugin code for better compatibility with modern browsers.
2.0.0
js and essential addons like OrbitControls, GLTFLoader, EffectComposer, and BloomPass etc.
js with WordPress.
1.1.0
- Added Three.js Addons Support with CDN
1.0.0
- Initial release of the Three.js CDN Integration plugin.
Contributing
We welcome contributions to improve this plugin. com/rondevs/threewp/issues.
License
This plugin is licensed under the GPLv2 or later. See the LICENSE file for details.
Support
com/rondevs/threewp/issues.
Thank you for using ThreeWP! We hope it enhances your WordPress site with exciting 3D content.