Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to somehow determine in which units of measurement the model is located? Millimeters, centimeters, meters or inches? #86

Closed
3dportable opened this issue Mar 28, 2023 · 1 comment

Comments

@3dportable
Copy link

is it possible to somehow determine in which units of measurement the model is located? Millimeters, centimeters, meters or inches?

@javagl
Copy link
Contributor

javagl commented Mar 28, 2023

The easiest way to determine this is via https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#coordinate-system-and-units :

The units for all linear distances are meters.

Yes, creators of models can do whatever they want. (Even in the official sample models, there are some models that do not have a "reasonable" size in terms of their bounding box - see this issue for some examples). But one purpose of putting this information into the specification is that users generally should be able to rely on that, and do not have to deal with something like "asset": { "units": "nauticMiles" } } or so...

EDIT: Specifying the units helps to make ... 3D portable 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants