Your development environment will need node.js and yarn installed.
See https://nodejs.org/en/ and https://classic.yarnpkg.com/en/docs/install for installation instructions specific to your environment.
To run these examples, you will need to generate a sandboxed sdk key for your Matterport account. See Matterport Developer Tools Pricing and Availability.
You will need to insert your SDK Key into the following line in packages/common/src/index.ts:
export const sdkKey = 'YOUR SDK KEY HERE';
Run these two commands when you first download the repo.
> yarn install
> yarn install-bundle
Call this to install or update the package dependencies. It also links local packages together.
> yarn bootstrap
All packages can run in a development environment by their respective names:
> yarn inspector
> yarn vs-app
> yarn easter
> yarn rc-app
> yarn embed-examples
You will need to bootstrap after cleaning.
> yarn clean
> yarn build-all-prod
The repository is a Lerna monorepo. This means that the package.json dependencies at the root of the repository are shared with each of the individual packages. Please keep in mind that not all root-level dependencies are used by all examples. The packages include:
frameworks: Reactjs + SDK Bundle
- virtual staging
- local webcam
- canvas
- security camera
frameworks: Reactjs + Photon SDK + SDK for Embeds
- an example that shows how to build a remote controlled showcase
frameworks: Reactjs + RxJS + SDK Bundle
- Object placement using sdk scene files
frameworks: Reactjs + Phaser + SDK Bundle
- Hidden object minigame
frameworks: Vanilla JS + SDK for Embeds
- Sensor - Point Areas
- Sensor - Sweep Controls
- Sensor - Tags Level of Details
- Sensor - Tags per Sweep
- Training Tags Demo - Training Application
- Training Tags Overlay Demo - Training Application
- Reusable SDK Bundle components
- Matterport observable library
- Showcase SDK Bundle is created when running
yarn install-bundle
and used by the examples
See the MATTERPORT SAMPLE SDK CODE LICENSE AGREEMENT file for license rights and limitations for this repository.