Skip to content

How to dynamically determine the measuring unit of 3D objects' dimensions? #4814

Closed Answered by elalish
lemorage asked this question in Q&A
Discussion options

You must be logged in to vote

The units in glTF are meters (per the spec), so our sizes are always returned in meters. If your glTF is in any other units, it was exported incorrectly and you'll notice the problem if you go into AR mode where physical scale matters. You may be able to guess the incorrect units (usually when things are 100-1000x too big) and fix them using our scale attribute if necessary.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lemorage
Comment options

@elalish
Comment options

@lemorage
Comment options

Answer selected by lemorage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4813 on June 18, 2024 15:10.