You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get effective min/max values of normalized accessors, their components need to be divided by a constant value determined from the accessor's component type (e.g., 65535 for unsigned short).
Incorrect bounding box transformation
To transform a bounding box, the transformation matrix should be applied to all its eight vertices and then all their components should be compared to determine the new bounding box.
The text was updated successfully, but these errors were encountered:
Good catch. Most assets that have normalized and quantized accessors use the complete value range of the component type. For this reason, it is difficult to notice.
I have prepared an asset that does not cover the complete range and hence demonstrates the issue: Avocado-normalized.zip
glTF-Sample-Viewer/source/gltf/gltf_utils.js
Lines 55 to 67 in 831cf2b
Incorrect accessor normalization
To get effective min/max values of normalized accessors, their components need to be divided by a constant value determined from the accessor's component type (e.g., 65535 for unsigned short).
Incorrect bounding box transformation
To transform a bounding box, the transformation matrix should be applied to all its eight vertices and then all their components should be compared to determine the new bounding box.
The text was updated successfully, but these errors were encountered: