Professional Documents
Culture Documents
Model View of Extended Reality
Model View of Extended Reality
Installing
The <model-viewer> web component can be installed from NPM:
npm install @google/model-viewer
It can also be used directly from various free CDNs such as unpkg.com:
If you’ve installed via NPM, you’re all set - you’ll only upgrade when you run npm
update.
If you’re using unpkg.com, you can pin to a specific version by specifying it in the
URL. Replace the <version> tag in the sample below with the full version number
(like 0.10.0) to be pinned to.
<!-- Loads <model-viewer> for modern browsers: -->
<script type="module"
src="https://unpkg.com/@google/model-viewer@<version>/dist/model-
viewer.min.js">
</script>
Browser Support
<model-viewer>is supported on the last 2 major versions of all evergreen desktop and
mobile browsers.
Chrome Firefox Safari Edge
Desktop ✅ ✅ ✅ ✅
Mobile ✅ ✅ ✅ ✅
<model-viewer> builds upon standard web platform APIs so that the performance,
capabilities and compatibility of the library get better as the web evolves.
Development
To get started, follow the instructions in the main README.md file.
npm run
Builds a subset of distributable files (faster than npm run build)
build:dev