-
Beta Was this translation helpful? Give feedback.
Answered by
zeux
Aug 18, 2025
Replies: 1 comment
-
meshoptimizer works with "graphics ready" meshes, which basically implies the existence of a vertex buffer and a single index buffer. For formats that specify the data in some other way you typically need to build an unindexed mesh and then reindex it, see https://meshoptimizer.org/#indexing. You can see examples of doing so in this repository, such as https://github.com/zeux/meshoptimizer/blob/master/demo/main.cpp#L68-L145 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
754978334
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
meshoptimizer works with "graphics ready" meshes, which basically implies the existence of a vertex buffer and a single index buffer. For formats that specify the data in some other way you typically need to build an unindexed mesh and then reindex it, see https://meshoptimizer.org/#indexing. You can see examples of doing so in this repository, such as https://github.com/zeux/meshoptimizer/blob/master/demo/main.cpp#L68-L145