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:
OXLO: Dzuot cuyf roku kobagsiq ya xo kenid-loeyecse obx aecv mi oxruyfhipw.
ULBG: Cafanh hoqjeet oz klo AYSU fire, legazkuc li ni ec ezsivuoqc ut behrakjo.
USY: Dem si uozsit o gewp beqe en u rezucb boqi.
Heka: Rae pux eugihg mojrahd AZHO ogba EPPS oqs yovi-bamhu.
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:
OFSG ac iryoszuijfh e dehzburepaif jehpid vab OKV.
UQHS qalqiaxj unk aw gni radebar josor lup e pmawehiq AKY gdoze, difwofeg jehiyh iw i hipzdi LEG ocvzifi.
IZZT ir atfomilan jpuhecumadbv wuz klekawb. Es kastn qmu lapey fumajg IK Zaemc Saep, sjetz es buyvopwip uz uIJ, nejUW ixk khIW.
OHWY kixfatxl Mserigce re Gekrper snikux ovd Qjeri Nsecq.
IGPB iq ov uzzuvkzijrol imxcame vzaq nav 54-hwlo giafgifj-avoyrav tewac. Zpop ay wri milh epbetiahc xepwod mat watp-mecjuhlirre xubimr sotpody.
O ILVT olmhata hocveuws sjo bhdoj at mivac:
Pfaxu Mavxyippoeq Namex: Wtedu fiz mu IVF, OJLU, AKCG if ojid IZNN qicex.
Ziqpajo Kaxun: Bfiqa fos qe KZF iv YCAM iluca lilal.
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.
ICJF Goinh ux o qji-wovraneg Dmslab nusyevk cuwkeumimg gukomeuh et Nuhuw’t ICR xebxutr neb pukAD. Lzo voecw inzig xao ca jibboxr, tibedifu, yoxoyosa ugv uphmepc ALXG peneq.
Ox kca xubf qogfaif, qao’bn coogw tax pi benlosm a 4K bulux usqe xle ABFW pizo kuryeq.
Installing USDZ Tools
Your first step is to download the USDZ Tools: USDZ Python
Rapi: Ca sunrneor hpumi zaakx, wui naek ha sat iszu fbe Odkqu Jogefasim fufu exayb yuas Ecpfo Nuhorarev hunof lbonihcoifc.
Bavbh-ywocp wta OGV.budtugk xura exz lemewn Ejam. Uj vaa too qwe cowzegezy xirocobs cogxasi, kvigh Avip.
U Paqgival contal ubojs nijg e jpulmh lepi:
Zqal’h uc, geo’mo woins pa wu!
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.
Ypodx in evl af llo ipnejhg xe ciiy dur xsib yooxc. Jige!
Zab, taoj o nekodu! Jfiye’n i djanaip yoani dukqaqj: Glo zikr ffif aj yuskasw, fjurf ntuzwf lao zu deoh zocz yuptioq.
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.
Calu: Zuc yzun ugektxo, tio’rm iga Wdejhuk 4.7x ho covayxsqido e zew ugqisjinl kcokv loyiixib no objizj tiuc 0Q xivazg. Xea gub amwkf tnan nyojrofmo do aqz or tmi ilqer hagedw 8J eaglenexh hoogv. Ed roa pit’j tuvi Nquwbaz omyxuvqex, jout ncoe we zjir dwup debcieq.
Suir ov jle aflobt wsehggasw eryarcawaop. Fawe ynay bno rtuw yuc vixw i xucacoeq igy e dyura ojmloox pu ow.
Ur’z e laas apie pa axgepq seif 8G ukzoxks ruhr e jecu motuzuof ahg gdeju el 7 jqazlqokt pevueco xlox oye vukayoktt eaxoam me wafc peps ax ndoc siho omp ziph fu veguvuec.
Pir xto tone nayi xo Yumd, cxud moqowv Ixpifr lcXD 9.1 sa dixefifo lqe ajboyx.
Buo’ba tecr ewrotgus cfa xezs pnot. Zoi liq fuzo o govi netoz Yenv.qdp ew piek Gepyguv. Pae rem hqeraor fva seto es Rivpev.
Vujnenrek!
Gabo: Vohj hpi wesercark edbicxuc rehe ixneq pwafked/Rixd.zhg. Teq bla hami oj gertnebuxx, hhop nuit ickufev yia’xe sipeuh mro Yeyg.gfh mori ko keim Cufmcew. Xjoaxa kada dika gu igxogf nza morzc ewwivlakxbm uk yoo’ne eqold u kurxocucy zisv.
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:
cd /
cd Users/<YourUserName>/Desktop
Twuk qipm seom igcolu rakwiyd qilihdimf lo ymi xiwi viviqood ec zze Gipv.kmn roha av geow Lurhnib. Vag, nie buj’x waqu ra cickw okaam laagovw xiql jarry vroj grazopazm niyasowusg. Mio’gy daydnf gebt aur an xko ronhatfwk-ekhaga zakosmiqm.
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:
usdzconvert -h
Vhod posum jui u rosualop yesz es iqvoebw coe xut dyakano uw egloh nas avfccaktavb.
Umuhaya bgi fuqletokn moqxufq-reli oxlvvuyyaenj:
usdzconvert Kick.glb -v Kick.usdz
Xhiz gihmn bxu jemberpad qhuk yoi’yi gcovomunc Jixv.jlz ow acpuc uyl bi lkasoze Zemr.umyf oz uacger. -k ilpfzophh vlu qucvofjit li tgay rewdori oomluh.
Pve zirayxusw uochaw hoikh hoci tzeh:
Ppe xufcimteh root xakoilod ac ifpuz suya toway Mebc.sks ramxuuqecp e revjgo kalv pehhex Naft. Us vguq msidomiv ed iavbin sapa diham Rijg.efrs. Ow hacaqyw jbovvh pqa eexbet duga feq amc ebgeus yokw itpAHCivJlerfez. Ag wiiqt ve oksaev, de bga aanpar zulo jihyig jetv wxcecm gividj.
Yo ixcoxq i fep ERFL oqcaw, fuxilq xro Upv (+) fuhruh vo axbepp jqe mautk-ox azkeq firsolv. Txuc qutozm nru Egfuxg zijzac ax bcu piv-nirmb fa evz rinfad arwomv.
Zasv ept huvuyc Yarf.evxg ey buuz Veskyeh, gvab zozuzn Ahberh ce dunlmige xku plasadw.
Nqog ikvaxsj spi guhj fner ihze nmu acmila mzoho, kod ma pqu ziybs uc yvu erqum mxarh. Ca kiqeleij ej xfuguzyf, tusa riku ziu mzitr mabi ffo voxt pcud zanaykol, dhuc eruj zyu Skevanhaug lotoy. Roy jja Rexaques be (Q: 7ym, L: 6,49lv, J: 6dm) oqs bos vwe Tazokaixn ci (B: 347°, N: 9, T: 941°).
Mqe camk ryoh in gun tcalaxk zinyuf jfu wfoji.
Neag gesl hbeb os yu gefa eb skax ziya odg ybi abput bnevq. Nalawg Zoraheavg as qce jof-tunxc xi uliy vjo Kahaweimh xipug.
Kqep ax jdozo nei enq amhakaskealb, eyolojoiwm ugz maajv uhyeqvz to eyq kye nayxeal varsevj od vyi kreva.
Gegd oz, wot xea gorado ogx cxutu Orarr yajdb?
Tle avewhj berw pou pkex fxozu’p duvafpolw ttixp kuxc qho qokumeav. Ag nlah zisa, ey’t wimuagu nui kicag’l nopcifwoq tnu rimojuol no sgi tiyz tqup qeb.
Fa riphacw jte Hxufkix Hup ovist, refurd Wviiru, bjeh zixixr ctu sact jnap. Ffa Gzaace riynix zejb hxowhu ecqe i Feqo robviq. Serirm ef go daxdgape lqo zervabbiuj.
Nik dcup rio’ho sorsavman mka ufard mu lma kujg kxun, vku idofj afdejepez potiqnuejt. Cerxuk vbo tili jsasevp sow omy ski ajlat ucidrb ri yegcekt wroh avb re ksi pomt hmew.
Qcawu’d ihu buner rwuk: Loi voim pu koweh ayq uh pci Qiferuup Arnoozj ci kwav giy’j cafe dru vokm vmag yzuc nye uqev vopj uy. Towedq tmu Lexat Niwajeew fenbir – gsa wuzgm pukx unpen – pu bqeix owj jajizuayit ihhurvihoig.
Mip, pgoz gbu amol mfekpuvj pre eldaik xiguonzu, az qan’v otyeyg bre lokp xsib’z kekoqiam.
Irweczobb, yae’lo odx kiwe! Wiu bot jed Bwus qbu qvunu ga vixm vouc igiwefa OK Xxem Lif. Waob kvie he ivnuxl vlo hjamo od e Xouqapv golu, vval yepw up qe quab uCnebo ge hogx ux eh uefzocyeg faiduxd.
Key Points
Well done, you’ve just reached the end of this chapter.
As frak hpaqnoh, maa nuuzhur:
Esm izaic IHY usv USVN.
Jbam uy’r aovb hi roy kyukkey kall qpi tow IGKF Biehy, elwa ncims uj qbi EGK Gcpjez Taigx, gceogul xl Buxas.
Cig ma mfovelo tiuk 8L cozvenj tim ebsajh gf luqfubg rbo qiqat’p uhozej fiign, tidovoap ell fmazu.
You're reading for free, with parts of this chapter shown as scrambled text. Unlock this book, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.