glTF-Sample-Viewer icon indicating copy to clipboard operation
glTF-Sample-Viewer copied to clipboard

Offline render using electron failing on reference-viewer branch

Open pradnya11 opened this issue 7 years ago • 0 comments

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.

  1. "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

  1. 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

pradnya11 avatar Mar 28 '19 04:03 pradnya11