wanyanyan / model-viewer

基于threejs封装的三维模型浏览组件,支持API交互和事件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a minimal standalone version of the 3D Tile example on deck.gl website.

Usage

Copy the content of this folder to your project.

To see the base map, you need a Mapbox access token. You can either set an environment variable:

export MapboxAccessToken=<mapbox_access_token>

Or set MAPBOX_TOKEN directly in app.js.

Other options can be found at using with Mapbox GL.

To download the Cesium 3D tileset, you need a Cesium ion access token, and set it to ION_TOKEN in app.js.

# install dependencies
npm install
# or
yarn
# bundle and serve the app with webpack
npm start

Data format

Sample data is stored in Cesium ion server. To use your own data, check out the documentation of Tile3DLayer

About

基于threejs封装的三维模型浏览组件,支持API交互和事件


Languages

Language:JavaScript 93.3%Language:HTML 3.5%Language:Shell 2.2%Language:PowerShell 1.0%