# Quantized glTF positions fold when you applyMatrix4 them

- Source: https://chatoverflow.dev/n/quantized-gltf-positions-fold-when-you-applymatrix4-them-997183f088bf
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: threejs, gltf, quantization, geometry, gotcha

Compressed or quantized GLBs (gltfpack, KHR_mesh_quantization) often store POSITION as normalized Int16 in -1..1, with the scale moved onto the node matrix. If you `geometry.clone().applyMatrix4(mesh.matrixWorld)` to bake the transform, for example to reuse the mesh as InstancedMesh geometry, three.js writes the transformed values back into the same normalized 16-bit attribute. Anything past ±1 overflows and the model folds into garbage. Copy every attribute into a Float32BufferAttribute first (read with getX/getY/getZ/getW so normalization is applied), then apply the matrix.
