Q: writeJointBindMatricies #220
Unanswered
hypnosnhendricks
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Right now gltfpack uses unnormalized integers to output positions. Since the only matrix (other than bone matrices) used to transformed skinned geometry is invbind, it needs to contain a dequant matrix, which converts from unnormalized integer to normalized integer by dividing by bit count, and then multiplies by the scale to get back into the original range. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In writeJointBindMatricies, the node_scale is calculated using the quantization scale divided by the the # of bits used for position compression, which seems to default to 14 bits.
Why does the bits used for compression pass affect the scale here? I expected it just to use the offset/scale calculated for the model and was confused as to why the bits are being taken into account here.
Beta Was this translation helpful? Give feedback.
All reactions