how to encode mesh in c++ #308
-
I'm confused wirh encode .obj file when I look at demo code, where i can set compress params |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What parameters are you asking about? |
Beta Was this translation helpful? Give feedback.
-
use N-bit uqntization for position/texture/normal parameters that encode in draco |
Beta Was this translation helpful? Give feedback.
-
Ah - that's a quantization step that is really up to the application to design/implement. The demo program implements two simple variants, see two |
Beta Was this translation helpful? Give feedback.
Ah - that's a quantization step that is really up to the application to design/implement. The demo program implements two simple variants, see two
packMesh
functions in the source, but really it somewhat depends on the requirements - and some implementations may require additional shader decoding (e.g. the second packMesh variant uses an octahedral normal encoding that's optimal from the compression & quality perspective but requires a couple shader instructions to undo).