model-viewer

Easily display interactive 3D models on the web and in AR!

Github星跟蹤圖

The <model-viewer> project

This is the main Github repository for the <model-viewer> web component and
all of its related projects.

The repository is organized into sub-directories containing the various projects.
Check out the README.md files for specific projects to get more details:

?‍? <model-viewer> • The <model-viewer> web component (probably what you are looking for)

? modelviewer.dev • The source for the <model-viewer> documentation website

? render-fidelity-tools • Tools for testing how well <model-viewer> renders models

? shared-assets • 3D models, environment maps and other assets shared across many sub-projects

? 3DOM • A generic scene graph API that enables potentially untrusted scripts to operate on 3D models

Installing <model-viewer>

The <model-viewer> web component can be installed from NPM:

npm install @google/model-viewer

It can also be used from various free CDNs such as unpkg.com:

<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>

For more detailed usage documentation and live examples, please visit our docs
at modelviewer.dev!

Development

When developing across all the projects in this repository, first install git,
Node.js and npm.

Then, perform the following steps to get set up for development:

git clone git@github.com:GoogleWebComponents/model-viewer.git
cd model-viewer
npm install
npm run bootstrap

The following global commands are available:

Command, Description
------------------------------, -----------
npm run bootstrap, Bootstraps the project for development and cross-links sub-projects
npm run build, Runs the build step for all sub-projects
npm run build:legacy-support, Builds JS bundles that have IE11 support
npm run serve, Runs a web server and opens a new browser tab pointed to the local copy of modelviewer.dev (don't forget to build!)
npm run test, Runs tests in all sub-projects that have them
npm run clean, Removes built artifacts from all sub-projects

You should now be ready to work on any of the <model-viewer> projects!

主要指標

概覽
名稱與所有者google/model-viewer
主編程語言TypeScript
編程語言HTML (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2018-10-18 16:05:16
推送於2025-04-17 19:51:10
最后一次提交2025-04-17 12:48:12
發布數61
最新版本名稱v4.1.0 (發布於 )
第一版名稱v0.0.6 (發布於 )
用户参与
星數7.3k
關注者數150
派生數840
提交數1.5k
已啟用問題?
問題數1827
打開的問題數74
拉請求數1230
打開的拉請求數9
關閉的拉請求數185
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?