This repository shows how to use the Mapbox Plugin for the WebGL engine Polygonjs.
models are from:
- https://sketchfab.com/3d-models/dinosaur-c743536f3c8e48049a00f19c8f8f6d4a
- https://sketchfab.com/3d-models/dinosaur-3e12af7c5c354ea6b01bccfb529a9c02
yarn && yarn polygon
and open your browser at
http://localhost:8091?scene=default
This will open the scene saved in this repo.
-
Go to the export folder:
cd public/polygonjs/build/default
. If the folder does not exist, make sure to open the editor as described above and save the scene. This will create the exported files. -
Open a local server. You can do this in multiple ways. Either
python3 -m http.server
ornpx http-server -p 8000 -c-1 .
-
Open your browser at
http://localhost:8000