Skip to content

v0.9.0

Compare
Choose a tag to compare
@cdata cdata released this 18 Feb 19:50
· 901 commits to master since this release

New features

  • 🆕 Add declarative hotspots and annotations to your models with HTML and CSS #917
  • 🆕 Support for truly transparent backgrounds #975
  • 🆕 resetInteractionPrompt() to reactivate the prompt after it has been dismissed #1029
  • 🆕☢️EXPERIMENTAL: Directly manipulate a loaded model's material colors with script #992

Bugfixes

  • Updated to work with the latest WebXR AR APIs via @bialpio #978
  • Fixed environment lighting not being applied in WebXR AR via @takahirox #1016
  • Poster alignment now works properly when text-align is set #973

Other notable changes

  • ✨ We now have a test page where you can preview your models w/ drag-and-drop, visually add annotations and more courtesy of @mrdoob and @elalish #941 https://modelviewer.dev/examples/tester.html
  • ✨ We now have a formal domain name for our online documentation: https://modelviewer.dev, via @smalls #605
  • ✋BREAKING CHANGE: <model-viewer> has a transparent background by default now, and also the background-color attribute was removed #975
    • You can use CSS (e.g., background-color: #fff) to make the background opaque as it was before, and also control the color; all CSS background values are supported 👍
  • ✋BREAKING CHANGE: We updated to Three.js r113 in #968
  • ✋BREAKING CHANGE: Our project's Git repository was reorganized to support multiple sub-projects, so all of the <model-viewer> source code was moved into its own sub-folder, and code for our fidelity tests and documentation website were moved into their own sub-folders. You may need to update links and references to files accordingly. We apologize for any inconvenience #954
    • Note: this does not change the way you load model-viewer.js from https://unpkg.com or use the @google/model-viewer module from npm