I am working on algorithm for compressing texture coordinates of 3D mesh efficiently. I care about good compression ratio and maximum decompression speed.
Right now, I have predictor for UV coordinates based on 3D positions of mesh. I want do encode differences between predicted and real UV coords. This works nicely and result is, that I have vector of integer values (quantized deltas), where small values have highest probability of occurrence.
Now I want to perform some kind of entropy coding of these integral values. I thought, that if I feed this vector of integers to some general compression encoder (I tried ZStd), it will take care of efficient encoding. However, this does not seem to be the case :) Is this idea of feeding vector of integers representing quantized deltas into general compression even valid ? Or it does not work this way ? What do you suggest to compress such sequence efficiently ?
Thanks for any tips !