How do we author a Reality File like the ones under "Examples with animations" at https://developer.apple.com/augmented-reality/quick-look/ ??
For example, "The Hab" : https://developer.apple.com/augmented-reality/quick-look/models/hab/hab_en.reality
Tapping on various buttons in this experience triggers various complex animations. I don't see any way to accomplish this in Reality Composer.
And I don't see any way to export/compile to a "reality file" from within Xcode.
How can I use multiple animations within a single GLTF file? How can I set up multiple "tap target" on a single object, where each one triggers a different action?
How do we author something similar? What tools do we use?
It's possible!
You should create series of animations in Maya, save them as
.usdz
files, load those animations into Reality Composer 1.5, apply the desired behaviors to them, and export a scene as.reality
file.How to...
To switch one
.usdz
animation to another one with a simple tap, use the following approach.Create two
.usdz
files with animated red sphere in Maya. First file must contain a sphere moving along +X axis, and a second file must contain the same sphere moving along +Y axis (with X axis offset). Not a single line of Swift code required.In Reality Composer create 2 empty scenes and import first
.usdz
file into first scene, then second.usdz
file – into second one. After that, apply the appropriate behaviors accordingly.