Skip to content

how to encode mesh in c++ #308

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

You must be logged in to vote

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).

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #307 on July 03, 2021 18:41.