-
Notifications
You must be signed in to change notification settings - Fork 822
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
Please add remark about differing size units between glTF/glb and USDZ #559
Comments
@PixelPartner thanks for the feedback. I have it on good authority that 1 unit is treated as 1 meter by AR Quick Look, but I cannot find any definitive documentation on the subject. Can you share a link to documentation from Apple or Pixar on this subject? Or perhaps a reproducible demo that confirms what you are claiming? |
I experienced Quicklook assuming centimeters and asked someone more familiar with the matter.
He quoted (on twitter) either Apple or Pixar with:
"If a UsdStage has no authored metersPerUnit we fall back to the value UsdGeomLinearUnits::centimeters, i.e. 0.01."
… Am 20.05.2019 um 17:30 schrieb Christopher Joel ***@***.***>:
@PixelPartner thanks for the feedback. I have it on good authority that 1 unit is treated as 1 meter by AR Quick Look, but I cannot find any definitive documentation on the subject. Can you share a link to documentation from Apple or Pixar on this subject? Or perhaps a reproducible demo that confirms what you are claiming?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This may be true, but that does not mean that Quick Look does not specify a Other engineers who are subject mater experts in this area have confirmed for me that Quick Look treats 1 unit as 1 meter. If you can you give me the steps to reproduce what you saw Quick Look doing, I can review that with the other engineers. Perhaps we will learn something interesting :) Sadly, Apple's documentation on this topic doesn't seem to exist. If you can't give me repro steps, I have to trust the guidance of the other engineers who have more expertise in this area. |
To reproduce, please:
- use a tool like usdedit to get the ascii representation of the .usdg file
- look for UsdStage and remove any authoring of metersPerUnit
- create a new .usdz with the altered .usda
- test in AR Quicklook
Thank you very much.
… Am 21.05.2019 um 06:30 schrieb Christopher Joel ***@***.***>:
This may be true, but that does not mean that Quick Look does not specify a metersPerUnit for its UsdStage.
Other engineers who are subject mater experts in this area have confirmed for me that Quick Look treats 1 unit as 1 meter.
If you can you give me the steps to reproduce what you saw Quick Look doing, I can review that with the other engineers. Perhaps we will learn something interesting :)
Sadly, Apple's documentation on this topic doesn't seem to exist. If you can't give me repro steps, I have to trust the guidance of the other engineers who have more expertise in this area.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#559>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAAR6X5PMIBVE72TF2GKXXTPWN3HFANCNFSM4HOBNS2Q>.
|
@PixelPartner ultimately we are not in control of what a user decides to set as their |
Please make sure, the usd file has a `metersPerUnit` setting for its UsdStage or Quicklook will default to centimeters and assets will look 100 times smaller than the gltf version.
… Am 21.05.2019 um 06:59 schrieb Christopher Joel ***@***.***>:
@PixelPartner ultimately we are not in control of what a user decides to set as their metersPerUnit. I will propose that we change our documentation to remind users that while we recommend metersPerUnit should be set to 1, ultimately they must decide for themselves what the value should be.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The quote came from the official Pixar docs:
https://graphics.pixar.com/usd/docs/api/group___usd_geom_linear_units__group.html
Von meinem iPhone gesendet
… Am 21.05.2019 um 06:59 schrieb Christopher Joel ***@***.***>:
@PixelPartner ultimately we are not in control of what a user decides to set as their metersPerUnit. I will propose that we change our documentation to remind users that while we recommend metersPerUnit should be set to 1, ultimately they must decide for themselves what the value should be.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Link to the discussion
https://groups.google.com/forum/m/#!msg/usd-interest/y7bUOv58H3c/EgKKHEzoAAAJ
… Am 21.05.2019 um 07:39 schrieb Thomas Kumlehn ***@***.***>:
The quote came from the official Pixar docs:
https://graphics.pixar.com/usd/docs/api/group___usd_geom_linear_units__group.html
Von meinem iPhone gesendet
> Am 21.05.2019 um 06:59 schrieb Christopher Joel ***@***.***>:
>
> @PixelPartner ultimately we are not in control of what a user decides to set as their metersPerUnit. I will propose that we change our documentation to remind users that while we recommend metersPerUnit should be set to 1, ultimately they must decide for themselves what the value should be.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.
|
But the discussion also mentioned that |
FYI metersPerUnit is now working in iOS13. It also supports channel packing, so it will use the same ORM texture from the glb in the usdz. The problem is that this will only work on iOS13. It will be ignored on iOS12 resulting in the model being way too big. How we got around it at Shopify is to only show the AR badge on iOS13 and above. |
I've proposed a small change to mention size units as part of general verification of converted output. In general there might be more recommendations we can give but I'm not sure how we'll keep them up to date. We've had a long-standing interest in tooling here (#278) which seems like potentially a better answer than a guide. |
Facing some issues regarding size scaling, wondering what is the best way to go about it. My 3d model looks good in the 3d view port but upon opening the AR port the model is so tiny that it is barely visible and is often off-centered to the right Explanation video and post: #2526 (comment) |
The README recommends to use
meter
as unit size. Note about units and model size in AR. Please add a note that USDZ exports should be incentimeter
instead and may need scaling, or iOS users will see models 100 times smaller.The text was updated successfully, but these errors were encountered: