glTF-Sample-Viewer
glTF-Sample-Viewer copied to clipboard
Offline render using electron failing on reference-viewer branch
A couple of errors I saw when using electron to render in the offline mode. Both of these do not occur in the server-based online rendering.
- "Uncaught TypeError: Cannot read property 'advance' of undefined", source: .../glTF-WebGL-PBR/dist/gltf-reference-viewer.umd.js (6190)
Can be fixed by adding an "if (anim)" on line 419 of src/viewer.js
- INFO:CONSOLE(6173)] "Uncaught TypeError: alphaModes.flatMap is not a function", source: .../glTF-WebGL-PBR/dist/gltf-reference-viewer.umd.js (6173)
Seems to have been introduced in the recent change for sorting primitives, in line 325 of src/viewer.js