Draco Loader renders nothing #5289
-
Hi, I was trying to load one compressed gltf file using Draco loader according to the doc - https://loaders.gl/modules/gltf/docs/api-reference/gltf-loader but got nothing to render. Here is the example - https://codepen.io/sunyonglincanada/pen/MWjOOJZ?editors=1111. Can anyone help me figure this out? Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@ibgreen An error is thrown during @sunyonglincanada It would be more helpful next time if you report your console errors. |
Beta Was this translation helpful? Give feedback.
-
Hi @ibgreen and @Pessimistress - I've found the visgl/loaders.gl#1073 is closed and merged into master. Then I updated the loaders.gl version to v2.3.8 and try the Draco loader but did not render anything with one error in the console - https://imgur.com/a/24srODB. Not sure if I updated the correct version. Can you please take a look? Thanks in advance:) |
Beta Was this translation helpful? Give feedback.
@ibgreen An error is thrown during
loadImages
because it's trying to accessgltf.buffers
before it's populated. https://github.com/visgl/loaders.gl/blob/master/modules/gltf/src/lib/parse-gltf.js#L27-L35@sunyonglincanada It would be more helpful next time if you report your console errors.