{"id":18020073,"url":"https://github.com/polygonjs/example-plugin-mapbox","last_synced_at":"2025-03-26T20:31:42.430Z","repository":{"id":49409342,"uuid":"333599664","full_name":"polygonjs/example-plugin-mapbox","owner":"polygonjs","description":"Mapbox plugin for Polygonjs - Example setup","archived":false,"fork":false,"pushed_at":"2022-10-02T21:02:17.000Z","size":58349,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T11:24:28.539Z","etag":null,"topics":["3d","animation","creative-coding","mapbox","mapbox-gl","mapbox-gl-js","node-based","procedural","procedural-generation","threejs","webgl"],"latest_commit_sha":null,"homepage":"https://polygonjs.com","language":"GLSL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polygonjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-28T00:33:16.000Z","updated_at":"2023-04-15T11:23:23.000Z","dependencies_parsed_at":"2023-01-19T00:00:29.315Z","dependency_job_id":null,"html_url":"https://github.com/polygonjs/example-plugin-mapbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fexample-plugin-mapbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fexample-plugin-mapbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fexample-plugin-mapbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonjs%2Fexample-plugin-mapbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polygonjs","download_url":"https://codeload.github.com/polygonjs/example-plugin-mapbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245731530,"owners_count":20663202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","animation","creative-coding","mapbox","mapbox-gl","mapbox-gl-js","node-based","procedural","procedural-generation","threejs","webgl"],"created_at":"2024-10-30T05:13:28.007Z","updated_at":"2025-03-26T20:31:38.265Z","avatar_url":"https://github.com/polygonjs.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polygonjs Plugin Mapbox Example\n\nThis repository shows how to use the [Mapbox Plugin](https://github.com/polygonjs/plugin-mapbox) for the WebGL engine [Polygonjs](https://github.com/polygonjs/polygonjs).\n\n![scene with 3D objects above a map](https://github.com/polygonjs/example-plugin-mapbox/blob/main/doc/mapbox_examples.jpg?raw=true)\n\nmodels are from:\n\n- [https://sketchfab.com/3d-models/dinosaur-c743536f3c8e48049a00f19c8f8f6d4a](https://sketchfab.com/3d-models/dinosaur-c743536f3c8e48049a00f19c8f8f6d4a)\n- [https://sketchfab.com/3d-models/dinosaur-3e12af7c5c354ea6b01bccfb529a9c02](https://sketchfab.com/3d-models/dinosaur-3e12af7c5c354ea6b01bccfb529a9c02)\n## Open the scene in the WebGL editor\n\n`yarn \u0026\u0026 yarn polygon`\n\nand open your browser at\n\n`http://localhost:8091?scene=default`\n\nThis will open the scene saved in this repo.\n\n![mapbox plugin from Polygonjs node-based Editor](https://github.com/polygonjs/example-plugin-mapbox/blob/main/doc/mapbox_example_in_editor.jpg?raw=true)\n\n## Open the exported scene without the editor\n\n1. 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.\n\n2. Open a local server. You can do this in multiple ways. Either `python3 -m http.server` or `npx http-server -p 8000 -c-1 .`\n\n3. Open your browser at `http://localhost:8000`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonjs%2Fexample-plugin-mapbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolygonjs%2Fexample-plugin-mapbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonjs%2Fexample-plugin-mapbox/lists"}