v1.4.0
New features
🆕 Added support for the KHR_materials_variants extension of glTF, for quick and easy material changes; see the example, #1765
🆕 In AR you can now place objects on the wall instead of just the floor, controlled using the new ar-placement
attribute which affects both WebXR and SceneViewer modes, #1714
🆕 Added orientation
and scale
attributes to transform the model, along with an example. Also added updateFraming()
method and bounds
attribute to better control automatic framing, #1792
🆕 Added disable-zoom
attribute so that desktops can scroll past a model instead of it switching to zoom, #1699
🆕 Added neutral
option to environment-image
which creates a more evenly lit scene than our default lighting (example) and is calibrated to output colors that roughly match the material base color RGB, thanks @thomastgt! #1761
🆕 Added duration
property to animations, thanks @rhystmills! #1742
🆕 Added showPoster()
method, #1691
Bugfixes
- Scene-graph texture swaps no longer affect other MV elements that happen to use the same model, #1711
- Setting
ar-scale="fixed"
no longer clobbers URL parameters forios-src
, #1775 - Fixed erroneous animation console warning, #1791
Examples
✨ Added an example of automatically showing product dimensions in both 3D and AR using hotspots, #1726
✨ Added an example of rotating the environment instead of the model, #1741
✨ Fixed the pan example to account for auto-rotate
, #1788
Other notable changes
- Disabled occlusion in SceneViewer by popular demand. We will reevaluate this feature when LIDAR sensors are more common, as the current experience isn't really acceptable, #1784
- Refactored our scene-graph API, removing the 3DOM package and greatly simplifying the code base, to make way for future expansion, #1692
- Removed the
quick-look-browsers
attribute, as both Chrome and Safari launch QuickLook just fine now, so no need to restrict, #1783 - Updated to Three.js r124
- This will probably be the last version supporting IE and distributing model-viewer-legacy.js, as Microsoft itself is also deprecating IE
Editor
- You can now deploy your editor session to mobile devices via QR code for easy AR testing of WebXR, SceneViewer, and iOS QuickLook, #1746
- When editing the HTML snippet, the editor will now respect all MV attributes instead of just the ones it has UX for, #1818
- When selecting a material to edit, the view now flashes to show where that material is applied, #1729
- When downloading the zip, you now get all the necessary files and appropriate paths for easier deployment, #1717
- UX update to make the HTML snippet a consistent center-piece, #1704