Skip to content

meshopt compression: grouping buffer views and compression size #337

Answered by zeux
donmccurdy asked this question in Q&A
Discussion options

You must be logged in to vote

So "one per accessor" is an extreme example, in the sense that it's the one with the highest granularity and as such it will see the highest penalty. Here's what you could expect.

First, of course the glTF JSON data is inflated noticeably. This can be a significant problem on models built out of a lot of small pieces with different materials or short animations of deep node trees or other cases like that.

Second, you will see some increase in the binary data as well. For example, both attribute and triangle codec have ~16-24 bytes of "padding" (that can store important information) -- so if you have many small streams, the overhead of that data grows. This may not seem like a big problem,…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zeux
Comment options

zeux Sep 2, 2021
Maintainer

@donmccurdy
Comment options

@zeux
Comment options

zeux Sep 10, 2021
Maintainer

Answer selected by zeux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants