Skip to content

v1.7.0

Compare
Choose a tag to compare
@elalish elalish released this 17 May 16:17
· 520 commits to master since this release
dad17a2

Features

🆕 ios-src is now optional for AR Quick Look on iOS! If you only include quick-look in ar-modes, <model-viewer> will now generate a USDZ on the fly when the user clicks the Enter AR button, and it will include any modifications done through our scene-graph API, like choosing a variant. ios-src will still take precendence if you need to provide a better model than our auto-generation (for instance we don't yet support animation). Thanks @kolodi! #2374

🆕 Updated the WebXR UX based on user feedback. Now the object is immediately placed, world-locked based on the last camera position from 3D mode, then when the floor is found, it is moved up or down to land on it: #2279

🆕 Added two-finger rotation to the WebXR UX, allowing large models to be rotated when you cannot touch outside their bounding box: #2355

🆕 Added an ar-tracking read-only attribute to indicate the state of ARCore world tracking in order to surface error messages: #2363

🆕 Added an interpolation-decay attribute to control the speed of camera and target interpolation, see the modified example. Thanks @timmmeh! #2286

🆕 Added CSS part to our default UI elements to allow them to be easily styled. This takes the place of most of our CSS custom properties, which have now been deprecated and will be removed when v2.0 comes. Thanks @mrdoob! #2370

🆕 Added support for external renderers. This is an early-phase feature and the idea is to make it possible to control a cloud-based or non-glTF renderer with <model-viewer>'s camera and annotation APIs: #2328

Bugfixes

  • Fixed transparent objects not animating properly: #2267
  • Fixed occasional strangely resized renders: #2300
  • Fixed shadows being improperly scaled when models were switched and rescaled in WebXR mode: #2317
  • Ensure animations play in WebXR mode even if the poster has not been dismissed yet: #2364
  • Now surfacing WebXR error messages in the console, along with messages about which AR modes were requested and/or failed: #2372

Other notable changes

  • Updated to Three.js r128
  • Improved aethetics of the neutral lighting. Thanks @thomastgt! #2249