-
Couldn't load subscription status.
- Fork 1k
Description
I believe that the fallback part of the texture coordinates prediction is not implemented in the way it should be.
In this file, it seems to me that the line 258:
if (next_data_id < data_id) {
should be:
else if (next_data_id < data_id) {
Otherwise, the fallback prediction at the line 256:
data_offset = prev_data_id * kNumComponents;
will ALWAYS be overwritten by the if-else blocks that follow, and as a consequence, the prediction will fallback to the zero prediction even if it can fallback to the delta coding with previous vertex.
This issue would not break meshes at all (as prediction functions could really be anything as long as they are consistent throughout encoding and decoding), but it will certainly reduce the compression efficiency for some meshes.