{"id":13560942,"url":"https://github.com/KhronosGroup/glTF-Sample-Viewer","last_synced_at":"2025-04-03T16:31:29.123Z","repository":{"id":37499302,"uuid":"92976265","full_name":"KhronosGroup/glTF-Sample-Viewer","owner":"KhronosGroup","description":"Physically-Based Rendering in glTF 2.0 using WebGL","archived":false,"fork":false,"pushed_at":"2024-12-18T17:48:48.000Z","size":897953,"stargazers_count":1289,"open_issues_count":10,"forks_count":238,"subscribers_count":63,"default_branch":"main","last_synced_at":"2024-12-18T19:03:37.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KhronosGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-31T18:27:06.000Z","updated_at":"2024-12-18T17:48:52.000Z","dependencies_parsed_at":"2023-02-16T09:15:53.299Z","dependency_job_id":"3f450f84-d3df-4b8d-91c8-db20362efe5a","html_url":"https://github.com/KhronosGroup/glTF-Sample-Viewer","commit_stats":{"total_commits":2106,"total_committers":51,"mean_commits":"41.294117647058826","dds":0.8143399810066476,"last_synced_commit":"5b1b7f48a8cb2b7aaef00d08fdba18ccc8dd331b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhronosGroup%2FglTF-Sample-Viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhronosGroup%2FglTF-Sample-Viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhronosGroup%2FglTF-Sample-Viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhronosGroup%2FglTF-Sample-Viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KhronosGroup","download_url":"https://codeload.github.com/KhronosGroup/glTF-Sample-Viewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247037014,"owners_count":20873078,"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":[],"created_at":"2024-08-01T13:00:51.006Z","updated_at":"2025-04-03T16:31:27.719Z","avatar_url":"https://github.com/KhronosGroup.png","language":"JavaScript","funding_links":[],"categories":["Libraries \u0026 Tools","JavaScript"],"sub_categories":["Technical Explanation"],"readme":"glTF Sample Viewer Web App\n==============================\n\n[![](../assets/images/BoomBox.jpg)](https://github.khronos.org/glTF-Sample-Viewer-Release/)\n\nThis is the official [Khronos glTF 2.0](https://www.khronos.org/gltf/) Sample Viewer using [WebGL](https://www.khronos.org/webgl/): [glTF 2.0 Sample Viewer](https://github.khronos.org/glTF-Sample-Viewer-Release/)\n\n\nViewer\n======\n\nLink to the live [glTF 2.0 Sample Viewer](https://github.khronos.org/glTF-Sample-Viewer-Release/).\n\nUsage\n-----\n\n### Controls\n\n`click + drag` : Rotate model\n\n`scroll` : Zoom camera\n\n`GUI` : Use to change models and settings\n\n### Change glTF model\n\n* Choose one of the glTF models in the selection list\n* Drag and drop glTF files into viewer\n\n### Change the environment map\n* Drag and drop a .hdr panorama file\n\nSetup\n-----\n\nFor local usage and debugging, please follow these instructions:\n\n1. Checkout the [`main`](../../tree/main) branch\n\n2. Pull the submodule for the required [glTF-Sample-Renderer](https://github.com/KhronosGroup/glTF-Sample-Renderer)  `git submodule update  --init --recursive`\n\n3. Build the web app\n\t- run `npm install`\n\t- start a demo in the browser with `npm run dev`, and open http://localhost:8000.\n\nWhen making changes, the project is automatically rebuilt and the `./dist` directory is populated with the web app. This directory contains all files necessary for deployment to a webserver.\n\nDebugging\n---------\n\n* Requirements\n  * [Visual Studio Code](https://code.visualstudio.com/) or [vscodium](https://github.com/VSCodium/vscodium)\n  * [Chrome](https://www.google.com/chrome/) or [Firefox](https://www.mozilla.org/en-US/firefox/new/)\n* Install the [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome) or [Debugger for Firefox](https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-firefox-debug) extension for Visual Studio Code\n* Open the project directory in Visual Studio Code and select `Debug-\u003eAdd Configuration-\u003eChrome` or `Debug-\u003eAdd Configuration-\u003eFirefox` so the `.vscode/launch.json` file is created.\n* For chrome: Append `/dist` to `${workspaceFolder}` in the `launch.json` file\n* `Debug-\u003eStart Debugging` should now launch a Chrome or Firefox window with the sample viewer and VS Code breakpoints should be hit.\n\n### Known Issues\nnpm install / npm run dev give the following warnings:\n\nThe following warning comes from a thirdparty and does not affect sample viewer since the mentioned line 179 is never executed.\n\n```\n(!) \"this\" has been rewritten to \"undefined\"\nhttps://rollupjs.org/troubleshooting/#error-this-is-undefined\nnode_modules/iobuffer/lib-esm/text-encoding-polyfill.js\n177:     : typeof self !== 'undefined'\n178:         ? self\n179:         : this);\n               ^\n180: //# sourceMappingURL=text-encoding-polyfill.js.map\n```\n\nThe following warning is caused by an old bulma version, which buefy-next currently depends on.\nThis should be fixed in an upcoming release: https://github.com/ntohq/buefy-next/issues/208\n\n```\n[0] [build] DEPRECATION WARNING: Sass's behavior for declarations that appear after nested\n[0] rules will be changing to match the behavior specified by CSS in an upcoming\n[0] version. To keep the existing behavior, move the declaration above the nested\n[0] rule. To opt into the new behavior, wrap the declaration in `\u0026 {}`.\n[0]\n[0] More info: https://sass-lang.com/d/mixed-decls\n[0]\n[0]    ╷\n[0] 51 │ ┌   \u0026:not(.is-rounded)\n[0] 52 │ │     border-radius: $radius-small\n[0]    │ └─── nested rule\n[0] 53 │     font-size: $size-small\n[0]    │     ^^^^^^^^^^^^^^^^^^^^^^ declaration\n[0]    ╵\n[0]     node_modules\\bulma\\sass\\elements\\button.sass 53:3   button-small()\n[0]     node_modules\\bulma\\sass\\elements\\button.sass 252:5  @import\n[0]     node_modules\\bulma\\sass\\elements\\_all.sass 5:9      @import\n[0]     node_modules\\bulma\\bulma.sass 5:9                   @import\n[0]     stdin 60:9                                          root stylesheet\n```\n\nThe following warnings stem from the rollup copy plugin, which is only used for development to copy files to the dist folder.\n\n```\nnpm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\nnpm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated\nnpm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported\nnpm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\nnpm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\nnpm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\nnpm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKhronosGroup%2FglTF-Sample-Viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKhronosGroup%2FglTF-Sample-Viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKhronosGroup%2FglTF-Sample-Viewer/lists"}