USDZExporter: Fix AR anchoring on root prim - #34066
Open
arielelkin wants to merge 3 commits into
Open
Conversation
🖼️ E2E screenshot tests✅ All examples render correctly again (run). |
|
This looks really useful - be great if maintainers could take a look |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues:
Description
USDZExportercurrently writespreliminary:anchoring:typeandpreliminary:planeAnchoring:alignmentas bare token properties on the nested/Root/Scenes/Sceneprim. Apple documentsPreliminary_AnchoringAPIas an applied API schema and requires anchorable prims to be defined at the document root. As a result, Quick Look may ignore the requested alignment and fall back to horizontal placement.This change applies
Preliminary_AnchoringAPIto the root-level/Rootmodel prim and authors both anchoring properties there asuniform tokenvalues. It also removes the legacy/Root/Scenes/Scenescene-library wrapper and authors exported scene content directly beneath /Root. The existingaroptions, defaults, and USDZ packaging remain unchanged. WhenincludeAnchoringPropertiesisfalse, the schema and both properties continue to be omitted without accessingoptions.ar.The
misc_exporter_usdzexample now provides option to render a Bike (for horizontal anchoring) model and a Plaque (for vertical anchoring), with corresponding buttons and a “View in AR” action. Selecting a model updates both the Three.js preview and the USDZ targeted by the Quick Look link. AR launch is enabled only in Safari on iPhone and iPad; other browsers display a disabled availability message. Generated blobs use Quick Look’smodel/vnd.usdz+zipMIME type.Prior implementation context:
Apple schema references:
Tested with: