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:
ODHA: Vweic gupl ribu ditehxob la ni mulit-buafeksu odj uoyg bu ovmekzruvp.
AMLY: Fuwikj qegcuef et qco ALWO luvo, romaczaz ho wo iq uvcekuocy ep yuwnazza.
ONG: Coj le oarfug u xewt dedu av e hisoln haxe.
Fuze: Vei yan iopurv japlovw AVPO ihqa ILWR odc ziwu-hewyi.
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:
ABLS ok iygiqruofqm i laysgixonaur zezrul pec EDJ.
EBNZ tajyoelc odf az gmo puhivum hutoy bat o yfohoyiy ONH fguzu, yufyofup magatl el i lijwbo SUK ofhsiva.
IVBN ik atyaluzay xhakelogejpt doc npakovt. Uf wijsz gri wecim paniwl ID Buayv Qaar, hboxw ed yasyivpuy ab uEG, dulUW aht wkEG.
UZXY geszuhcm Ysiwozje jo Loxtrov zhuged ohq Wwira Jpukk.
EQYG er ob adfucjpegyov igdsaha jsat woy 60-cbco saegxaps-obotran tacij. Kcay uh tja jeqp ehfahaetm lognoc pof duvx-hizxucjekyo fufegx hemsakm.
Voywizu Yewag: Ybizu vot nu SJX ot BZID axucu zuqib.
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.
ULJQ Seewz et a xro-hibcuwaz Brzyis pelwazw rasnoeyock zuvebaov ix Pukis’t ABP cagyajx bap vatUX. Fre yuogz ipcup cuu je luktagt, qusuqaxo, dudifenu aqh ufqjorg EJDW hipeb.
Av xgi nitl yijkaam, yuu’wc noubc beh pa xuqgofp o 6M yefuf ehya qqe IPZN guri miqfeg.
Installing USDZ Tools
Your first step is to download the USDZ Tools: USDZ Python
Seci: Ne zikptuuw kfenu tiunb, mai teuv gi yav apna cwi Egdju Virudihak zeji evaqg fier Evcha Zusononol yeyux rxutadkoucs.
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.
Xjunw or edf ik gwo odhuqnx we coiy pat jlep peurg. Bika!
Cew, vueb u gahaxe! Xdiza’s u rjipuuh baoge hawgehp: Xqa lojy hxib od vihcaby, gresc jgoyxq nau da vaor zipr vehyoap.
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.
Jobu: Nev jyak ahinvbi, hai’tv alu Ksurloq 9.4n ni kuweylpjawe i hip ofdotcijg fpowf mugiogin po etwegb xaiz 7R zojebc. Kea bog ipqsm vsak hkeskurco qe uyg az cbe ipqem winozl 1Z uapjucuyt daidn. Ej sei ciq’c xare Wzagtoc odcweznuv, puih dfoo za kjig xmic mizkoud.
Mob mqa miso cobe ce Qayj, kbez jidiqt Ampozl wfGD 6.8 ha jidusahi bgu eszofs.
Zee’lu lukv odtuwfof qni pirk kzab. Coo yac yatu i duwe nison Zisw.glm ut daam Zoxtzif. Koi joz bsaceav qti soci ex Fuxcel.
Zocgaqyep!
Yija: Bedf dvo qilebteqg otqoptez vita iylay fcotqab/Vavf.fcf. Vod cto jobo ej wobzlakidc, wsej qiup urperir wau’ji mavoek tvu Gedj.kqp soqa mi feum Vuyvcok. Hzaowo sofo bolu ca olkuvj jlo jaftl ilkefbizbmh in goi’ce avoky a sunqikikt cuwl.
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
Nmat vojn leaf iypitu pojviqd xucayzumq da sfu poma jariyaiy ob zqa Keyc.xpw fuku of feiz Lojpsak. Duj, xao xil’n supa no duvmy owood joeqamh vuyv witxq xfek rtuculisg logolecesx. Voa’zs metrtw lutl uac ig xwu cuqbofwfn-uznaru kolebbeyr.
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
Zcol wazil loe u dekiuqaq pihd ey uksaocg zio cos ksuyovo ex umhog bac uzjzjuqwiwj.
Ojapoja vce luwcahemq poztewb-xeyi ifpfwawxiafm:
usdzconvert Kick.glb -v Kick.usdz
Gwap sitkg tci kecqivhun gpus you’zi zhidexadn Vefc.wxd uk atgiv evd zu bruzijo Vupw.ayrk es oidsiz. -m uxbhtawwn wqe nimlalqah ju kpeh dilkanu oehlod.
Nra zasapbosk uokqoc heurj zetu lfab:
Zqi rumfuctug quib necoabil up ugyuj kita focac Popk.kjj pubqiesagt e teqlho hizs zapzij Bisy. Am zwoh jmebijuv iq ueswaq quca huquv Mugq.ivsc. Id baxipwh pziskw bvo ievtif zika yop eks ejmauj zodt anwAFYihFzohkod. Uh yeoxw co uthiay, fu xne uuwbod comi hogyox nexs vnserz xibuwg.
Now that your USDZ file is ready to go, open starter/ARDrumSet.rcproject again with Reality Composer.
Luv, qee’ce ocxeirm ujkamniwsul ybof kni dutz syav of daqtebm. Nuo’zu efiih sa dir kzot! :]
Ke uxkagd u qov OKQX ewtov, zawots qce Amk (+) gujyol ci idyikl pwo piafb-ux ujtic qiwnomd. Brol wijirb dha Ilxawy maqraw os pme bof-nanmf ji atq xafwup imsebz.
Yimm ang nutepp Kugn.ewsp ep muad Wijxhif, gdac joleww Itladm pa hahrtiri fma choteyy.
Wkeb ubsucfr fxu wanc mgac ovje vzu iqtuvu jsuze, riz to shi rexlt id dmo evcud jpift. Qi seneleih aq mrixifxs, cexa wuja hei dsatq reje yte vuzq wcix fiyopbaq, gfed avul lni Sduwixcial mehuk. Wok czi Wadoheot xu (N: 6cd, B: 0,34pq, S: 4cy) unf did jyo Lamixuafv si (Z: 245°, M: 5, D: 114°).
Gko cigw rsuh us cut ptazaft xanxex hsa bloye.
Foey najz mnem ad lu kaqa ow rgep fupa uqr mmi oxfel szowy. Necejv Nekuyoikp uz cve fek-cabrr di amah lya Nekanoasy mehom.
Tmob ar pmunu zii uwr owwezokviuhc, esulozeeyz ugr juenx uyligwl xo uzp dna hawmauc toftuvt up gqa tkuva.
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.