Encoder missing #1409
Answered
by
donmccurdy
ermoschink
asked this question in
Q&A
Encoder missing
#1409
-
I'm trying to optimize the meshes.
And I get a crash on the lines encoder.encodeGltfBuffer(.....) so the encoder is undefined.
Please tell me what I missed? |
Beta Was this translation helpful? Give feedback.
Answered by
donmccurdy
May 12, 2024
Replies: 1 comment 1 reply
-
See https://gltf-transform.dev/modules/extensions/classes/EXTMeshoptCompression. I would check that:
Aside – there is little point in applying both Draco and Meshopt, both cannot be applied to the same mesh. You probably will want to choose one of the two. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ermoschink
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://gltf-transform.dev/modules/extensions/classes/EXTMeshoptCompression. I would check that:
MeshoptEncoder
is imported as shownMeshoptEncoder.ready
is awaitedMeshoptEncoder
is passed both to the meshopt() function, and to the I/O class dependenciesAside – there is little point in applying both Draco and Meshopt, both cannot be applied to the same mesh. You probably will want to choose one of the two.