Replies: 2 comments
-
Hi @arpu, you can find the logic that's used by the threejs lib and navmesh generator website to transform threejs meshes to positions and indices here:
It may be that getPositionsAndIndices needs a simple fix to correctly parse quantized meshes if e.g. the position attribute is not a Float32Array, or something else. |
Beta Was this translation helpful? Give feedback.
-
Hey @isaac-mason Thanks for the infos! looks like the proplem is not the quantized, its the interleaved BufferAttributes updating with
works for me |
Beta Was this translation helpful? Give feedback.
-
hi,
i have meshopt input mesh and with GltfLoader set with loader.setMeshoptDecoder(MeshoptDecoder); i get the uncompressed mesh but still with KHR_mesh_quantization and the generated navMesh is wrong.
there is a https://gltf-transform.dev/modules/functions/functions/dequantize in gltf-tranform but want to ask if i need this?
Beta Was this translation helpful? Give feedback.
All reactions