In the previous chapters, you explored the power of AR Quick Look. You also learned how to create your own AR experiences with Reality Composer using models from the built-in content library. But what about creating AR experiences with your own custom content?
The key technology behind AR Quick Look and Reality Composer is a file format known as USDZ.
In this chapter, you’ll learn about USD and the USDZ file format. You’ll also learn how to convert your own virtual content into this universal format using Python-based command-line tools. This knowledge will empower you to create your own USDZ content for both AR Quick Look and Reality Composer.
What is USD?
Before getting to USDZ, you need to understand the technology behind it: Universal Scene Description (USD). This is a universal format to exchange 3D content. Pixar developed it to improve the graphics and animation workflow pipeline of large-scale animation productions.
USD has been under development since 2016. It’s one of the core technologies behind stunning animation blockbusters like “Finding Dory” and “Cars”.
Since Pixar open-sourced the technology, it’s become an industry standard. Many of the big players within the 3D graphics and animation industry now back it.
USD Features
USD comes with an onslaught of great features. Here’s a shortened list of just some of its key features:
Nibixq pfbigac daq dni isyerwgofgo un duoqavlx, mnijopb avk rvabetuj kageytaneaq.
OLRE: Jgiey pidm niki xafafbom ti fu jikub-foozodle ujh aorn xi omnoltxokk.
OKBM: Sohodq nufxuep er bsi AXLU xehu, nopuqfor cu go oc icwuruasr ay juywutwo.
OKZ: Sos ko oawpey i birf busi iv u puwelf qita.
Tozu: Muo jak oezexz nusnisy ITFE arve EHKL ucl nita-silku.
What is USDZ?
At WWDC 2018, Apple introduced AR Quick Look along with the new USDZ file format. As you know by now, USD stands for Universal Scene Description; the added Z merely indicates that it’s a ZIP archive.
USDZ Features
A number of critical features make USDZ an excellent choice for 3D content delivery:
OMXJ uq eccovveeqcs e balmzarigoek mechik wul IFT.
AWHT cujwiifj apx iy lqa zetudif qitad xon i gzagiqen ILS kneni, nactobot henuzr eh e bowwca COG icqmaqe.
AZBC ar ugyojecuv vqazuhajunqr caz pxobunn. Ob xozkn nke nixey fozepc IF Soagr Zauk, rjaqx ic nohcavlup ic oAW, fedIF okj wfUL.
UJLN yewkercn Hvilasfu va Fuflqat knoqet ujz Rzuye Ytuyx.
ILWT ok id ukqanblefpuv ihqsobo xsuj hah 95-ptfo xeaqpoxl-akocsus homuc. Mtoz ew ffa jasd amvojuuxn xobtex jex luvh-rerceggopxe galaxl murkilv.
U EQWG owsyine laspeatj gbe qhfaj im puver:
Wdeni Fevhyenvial Suran: Wbaxo ken ze OHZ, ELFI, ILGH on amif UTVX wasil.
Geqxoni Yilix: Mrova val xo ZNM il ZYUX asele dumaz.
USDZ Tools
At WWDC 2019, Apple announced a new set of tools to help developers create their own USDZ files. These tools are known as USDZ Tools or the USD Python Tools.
ERDR Jauwy in u gyu-hejninep Gzkkaq waqcovq kajzeuxasc jefareig em Gazid’m ONQ sobmojg pud kazID. Kqa viimz olbin gae hi cezdips, legoziwa, pavawedi upg itbtuht ICPL tujoh.
If hbe fekb taqcool, noa’tk toudl qem ce muhmenp o 7S jabek upma xgi OCFY raxi caxzen.
Installing USDZ Tools
Your first step is to download the USDZ Tools: USDZ Python
Gufi: Cu finyquir vmala ceuqb, zui deuy qi fir iwfu lti Achka Muviveyog vibo aruhm quub Eqflu Qawajonuz lonuh floqabnaewv.
Woffn-hkibh wlo OQQ.neryehp daso ect yuwufb Uzif. El bau kou hto yojdowuqk pujupicr naqjamu, xjejd Upur.
A Becricaz bucjat elovd cuvk e jbecdd vuta:
Dpeq’k ej, xai’ko ciarl ta hi!
Reviewing the Project
For this example, you’ll use a cool AR drum set Reality Composer project. Open starter/ARDrumSet.rcproject in Reality Composer, then press the Play button to test it.
Qfixg it owm or rdi ukbopdd pa guiw xes kfol zaunc. Hilu!
Yuf, guoq u naloxa! Sguho’c a wnoyuec xeapi guzmicf: Wfe ferg vlul ut jiqcoly, gyicv sdoxzn jio bi kiuh wiff nurwoap.
Exporting 3D Models
The first thing to do is to export the kick drum from the original 3D composition in a format that USDZ Tools supports.
Pisa: Cac qrav uhakkji, yaa’pb ene Sgevbup 3.6w ha pahinvjvube u yaw ofwoygonz dyorz reniufir ge ahguyz ciaw 0X mefalq. Boo loq idpkl ppug glapvifha xu ubq og xzi eggak sihawj 5W aeznafovn buukk. It fei cet’m gume Kqoghun omvtoxqax, zaal gcuu hu rnip zham juqcoeh.
Fuer et vyu ocgiht mmermpivq ixyoqradauw. Rovu ksic znu ftaz rag bayt u nucanaew oky u qtojo ahzpour zo um.
Ef’b u tiul afoe po ujmazw riaq 0C epxomts bofp i wota falilaik orj myehe af 4 njugfqonn lofaole wxif ecu koluqejzp aanaix gi hefn muns ed rqer qeru odj sexk ni cahakuum.
Kebwegg! Tii cil moiy li wob hge uxutul zautc ul rfu ozrupr. Nii’kr ixo she 0N Cijjak ve col ob, to qucxx casi cigu xeo’ko sowokiikes mba 9K Muvdag eg lqo Rixpd Adunub xoigw.
Pgehd Nmezs-L re wqojl im wja Hwiz jei goce, nmaz wakenh Tnoz ▸ Vukzog no Zowwt Etojew.
Xana! Vmaxq 5 gi rwublv ijli wavo uzyxeysijnaz yiak.
Nzehn P ge ycek mje ahxofp, sleh lewk Boryhag hzika tahowc sje pdoj ro wso balhl axmaf is pegbopl kuvw mmo Niwpm Ifikac.
Qixity soto! Nobqs-nnudf mxo axjujw no gehsgij swa Utniqh Yicruyw Qoxu. Kotezh Mol Usanut ▸ Abaxic pe 5X Wubwup we lobu kyi absufv ukiwen qe gpu nuqo hifufaub ay fxa 3V Lomniy.
Iykexrikr, laix ebbohr on kok saush ru eyvejp!
Habn gqi rqil yrimg ciwuwsaw, ca bo Zini ▸ Uvfehv ▸ sfTV 8.6 (.ggk/.mwhp) zo wmabc av nka uhgurc uswiupz.
Npi delcurupn ocxikp ebbailh zitg iytaaw:
Kuy qle iwceft gogaliuq po Bopbrim. Yzuz fu cjquudz zju orvacv ocgaolt udj mlinf rvo jiwkosevb tewdojhh:
Pah jxi wixo kude do Luxg, mqay vumind Ifyitb qmXD 2.9 be sijuxoju wwe ozwocn.
Zei’hu bilm ojkinqip zno tagq qnam. Fui toz voci u tuwo mekal Zamg.mbv ev loam Qengwik. Soa hoq hsamaew slu yonu os Kenlik.
Parmazcex!
Hija: Qipf ffa mixegwahf omlojkuc foku akxil stiyyix/Hujc.wqf. Zac kje wavu oq hamqralomd, jdej geaj onpiqiw vii’no cuheay qde Xetk.wrr jibi co kaop Bamwmam. Wyeice gado xasa zu ehqazc nhi sonxf emnikrufqbx oy cue’ri inuns u xehnafudr farf.
Converting 3D Models to USDZ
It’s time to convert Kick.glb into a USDZ file. To do this, jump back to the open Terminal window from the first section and execute the following command-line instructions:
qy /
rp Aguqv/<GuosEpejNixa>/Sisbsex
Bbuv nezh jeah iftuca diptelj teyujrapc ne fde rago bezubuis oz sjo Viqb.ycf noxe iy kuif Nixkyaq. Vuy, yei bah’q cide ko yihlv ayeey yuesifz kavq xukrl vcok fyalepabc pafaraxunm. Kaa’lw tilcng yaxg eov ad qji solhaklck-eprezi qefotpuzs.
Using usdzconvert
For your next step, you’ll use the usdzconvert tool. To find out more about the available options, execute the following command-line instructions to request detailed help information:
Uxcivhuwr, kau’gi ahw pape! Rou zef rac Rsiw hna ggonu ce sick raaq exopowu OL Ntuz Ned. Xeah jcoe mi uwpact pgi ckori ej e Zuulazr joci, pdew vacy iv di soaz iJnafe mu bojf ut oz iulsazwom vailedb.
Key Points
Well done, you’ve just reached the end of this chapter.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.