gltf icon indicating copy to clipboard operation
gltf copied to clipboard

Allow double precision transformations

Open ShaddyDC opened this issue 8 months ago • 1 comments

Hi, it's me again, trying to deal with unreasonably large numbers.

We are using glTF for objects that may be at very large coordinates. It is important that these coordinates remain fixed to be able to fit into existing workflows with other file formats that are already used that way. To deal with precision issues, we center the objects around their origin and then use transformations to move them into their final positions. Unfortunately, that doesn't work reliably when our transformations are limited to f32. Another, potentially better-worded use case is here, with a focus on tiles in a geospatial coordinate system.

Afaict, the specification doesn't say anything about a numeric size limit for matrix components, and since it's saved as json, they should be able to be arbitrarily large. Naturally, actually supporting arbitrarily large numbers is unreasonable, but I feel like f64 is useful commonly enough to be worth it.

ShaddyDC avatar Jun 14 '24 10:06 ShaddyDC