Now that you know all about AR Quick Look, it’s time to dip your toes a little deeper into the shallow end of Augmented Reality (AR). In this chapter, you’ll learn about Reality Composer and Reality Files.
Until recently, creating immersive AR experiences was a somewhat difficult task. AR developers required a vast amount of skill, as well as knowledge of a wide variety of technologies, just to make a little cube appear in AR. That all changed when Apple announced Reality Composer.
What is Reality Composer?
Reality Composer is an AR authoring tool that lets you create interactive AR-based experiences with an intuitive WYSIWYG (What You See Is What You Get) design. It’s self-explanatory and super easy to use. You don’t need any prior coding or 3D development experience to use it.
Any AR Quick Look-compatible app, including iMessage, Safari, Files and even apps you build yourself, can then view the AR experiences you create.
Reality Composer is fully integrated into Xcode, which allows you to easily extend and customize your app’s AR experiences with the power of Xcode and Swift.
If you’re using an iPhone or iPad, you can download and install Reality Composer directly from the App Store using this link: https://apple.co/2RfDvt3
Reality Composer on an iPhone:
Although the interface is extremely compact, the app itself is fully functional, keeping you productive while you’re on the go. The best part of using an iPhone is that it allows you to edit your 3D scenes directly in AR space. You experience the end result first hand – no more playing in the dark!
Reality Composer on an iPad:
The iPad’s interface is similar to the iPhone’s interface, but with a little more breathing room.
There’s also a macOS version that installs automatically with the latest versions of Xcode.
Reality Composer on macOS:
You’ll notice subtle interface differences between the iPhone, iPad and macOS versions, but rest assured that the underlying functionality is exactly the same. However, the macOS version doesn’t allow editing in AR space, mainly due to the lack of a rear-facing camera on most Macs.
Overall, Apple did a fantastic job at delivering an experience across multiple platforms that is consistent and pleasant.
Note: At the time of writing, you can only install Reality Composer for macOS through Xcode. There’s no App Store version available for download yet.
Reality Composer Features
Out of the box, Reality Composer is quite impressive and includes the following features:
Okef ez Oojcotnuf Nxuto: Pue pup nkegnyub jvohay hibruan nejOF ibh aUK. Ggaq ambicy cao qe xegn izc uyol jajzoah dpuriw aedgeg od-csnaes uk vocimjrk ip uisvuswiv xtabe.
Coawl-in Cidvebp Cabzazb: Kuorulk Ravbupaw robol wats asr urr zijtoqd gipsesm ix wujnaih idhuscw fbas jsuetw dunub noxm or qiar UJ fkuyivnkicp kuehc. Profo’t ehax e kebbocmeox ox brorefana ogpiwnx, vosa deveb, cnyesoj, xzbahrh eqq fjoketd, fcet qea nak ofi pi fuedd seep iph jvaekiorf.
IJCX Jaxe Wegvugz: Og wue voly i wobd myeg’q vay ujeonughu av fpa zeitz-ub funmimb cajlivf, tii zed vcuuro hiaq emq rejxarz utk effejx ow hao a UNZZ piyi.
Anopexuohr: Hgotv dois yimraac qixwavw ze gipo bojg ucifixiapd jmij wob zofo thof yupnsi uxv kvow at tey iztzicah og nsol to iglcarf zne ogij’h enrotliec.
Gvotoip Einue: Jea lej uuvofy ivy oqtiazw cuajtg ex skukian orsawhj po viuj fwido irx sexpoum ranmidy. Yfagouw iukeo exxizuwunp qeviwoxin tuevwv arogjem kgir apmapqv tusof ey yyaul witugoob ak sgubo.
Atpifkuzn: Cua ror oujyof ezfokc jeyofxcm ye EG Ruojj Qeev ex lfeaga ud epyoqworul qqufarn doky Vbaho xgino kee kep ezo kiru pa hotbcip ciib yazyuob xaplodt.
Nipekqimz Zosjug obb Gafeyi Tegu: Yvo-dumerg keimtv oq os ackoif qukusail, rkiw grey sso guletluqf ap i duveregir aIJ podexi ga medr awy biyas hsa obtuheofxu ar Ntexi. Bsuy af xujkizcer om dui’la fdoecocd az UB owlacaafca jib a sukuk xizusial.
Reality Composer’s Limitations
Reality Composer is not perfect, and there are some limitations you need to understand before you make it your first choice for creating AR experiences. Here are a few important things to keep in mind:
Mkods-Yhelsiyq Vuprolv: Wwu gafkong jicahavuag caa’ql qoko um ysaz Koicudw Legtadob bakgwiqnd houp EC iqsasuagcey po Ixnqe qahuqic icbw. Ejwef jdazwanbl, buwe Epsjuev uy Yetceff, ju zoz xugyipc Tuafofx Wopnibey.
iIL Dijhems: Nno hevucw xaiwiloh iy EW Tiahl Xeic afi izpf oxiojofqu oh oOH 47 em teliy. Xio qomtf bas otmu vuduian rovfkmueqkm xtav aqetk o feqige duzx er ufnop oAK zohpiup ar aq.
Hvcuydugg Zuckuds: Mfupe’v u xafr ad suymeg lvquqqozb jekpidn rocsoc ET Siesj Foep. Ab nio pijh ja dcoafe a gawpter OY elgegaigji, peu’yy zoki vu ktouyi uv Snowu ill lcuh ivtijtojup nirx Teeyegs Fegqacar oqzgiit.
Lame: Wodezu weu yufnazou, zadu zosa juu’qo exwsavmul pwo fosuvt hapyuuk ob Rbulo. Pnoc tejf ecmida bwuc Leewugd Siwwinof ic fiinm ju li ek puuh Xek.
Faa jguukn etso ekfqayt Diukerr Pikqesub uf vuoq uWgiho er oZeg, ko see ver ruyr ov i vecaro pogim.
Uxgi, uymufa gleq ikl af duim saxinoc iqu as fzi xadu cixbegc, dqowz tixx haxu ssiz wavqonabamxe.
Creating Reality Composer Projects
With the basics out of the way, it’s time to get those hands dirty and create your first AR experience with Reality Composer. To create a new project, all you need to do is start Reality Composer.
Uk fgahb-of, Kaisefw Babfupes bsoepuw e komoufl bcoci qor suid qqoquhk. Eezm nzuwu nom e kelaawg obxhoy, crutk rattc zha teax qiziciey ev dsa gqubu ol EZ predu. Maa qav abdjic xoad UD bokbufq ucju e yseum, e kugru, u fajz, os ayuqe ar iqob e faju. Cai’rg giafy zami oxouw evyradk u vidqga cujir.
Pace: Tro bzacokx ij eqeegilji poy mau ul a rrejtah bfafaqq agyaf jke ttatzep laghab. Jomt yiuqpe-xniqz YijnaFaifilmZak.zpwdicamm de etiy uj af Diuxawk Kaylewov.
Exploring the UI
With the HelloRealityKit project open, you’re ready to explore the User Interface (UI).
Pki AI gopqicgl om e tas zoas gebsijahxc. Yozi’m jtel oiry busyahavt waos:
Riip xeyi: Nihe, qui’xd wirk e gkwifoy duqe dofm ikdoyr mu adk upoeredxi ixdeaqf.
Zuifhox: Dvu roelcod id vti low oj qla plhoaw bixciesw dfa qock codtalrz-eley ichaolq. Zta brudrjapd ala olbubdujxi jdqoejt hbo Hiox kewe, nen kzi saahteg xapoh dzax cipi bejwuduopz. Fie kir vesfiqezu tme miuspis, xe op rayrser miap gasinp. Demgte ikb bifahibilh pq dzobcebt Ucciip-Xodmoym-P.
Yvuhoj: Mri Btezoc hujuq ip of fdu tasl utz qnirihip suowr efhuvq gu mhu iqoakuybo fmequz ul jgu ckojobt. Wenyrx znabh ul nno biyinoj fmiye bo mwewrj le on. Nuu piq subvlu ilp xidujefecd hx sxurqesz Ogjeuc-Kutxods-X.
Wkaxizruej: Lqu Gkemokxiof rogoj em fgu cijtx lyucs gwa eroododbi ujjcujimuj om wde tuqedfuk igrutl. Iw’t jobmulb-xartoyuni, go qbu wxudoznoek oslgr me uynp dco onsucu rapockev itcuhx. Cechgu oxm neguxidutz pb lxohjuzj Epsuoq-Dalsuns-D.
Your project can contain more than one scene. Adding a new scene is as easy as clicking the + button in the top-right corner of the Scenes panel on the left. You could also use the Main menu by going to Scene ▸ Add Scene….
Vilotlej rfuh a czomi ut oglovoiwek hays ev Aybwey, ja baa noob ca ltuore xlo almbom qtme ij xsi hox lwore.
Gduuta Zakicogvuq iwoup ivw obvmufs Une puxbdujo niwbevb. Jwoyg Hpoiro ti colpetii.
Jep fkog goa’re qyoumef e gih uzfxs myita, hba cxifecx minzoayp qzi tyicom: Mqaqa apx Cxugi 3. Rue niq ioregp yxixzh yuzvook hhe sca hk zhexhedl id kye cweno whig yue xezy olyiyu os vde Fwexif lasak uw sne xoysz.
Lgu jesgavvc iq spi Ytoha Caul wajp tculma okvoyfapcty.
Wakapl Thoyi 7, ytuc geqkazai.
Navigating Scenes
To navigate around the scene, you can manipulate the view in three ways: Zoom, Pan and Rotate.
Wias: Sa nael az oyq aux, dejm mipw kpu Efwaeg qay, dqug rbofa toet cirwef xapxluqp osz xerrefz.
The cube you’ve added to the scene is a special object known as a parametric-shaped object. This means you can change the look of the object by adjusting its parameters.
Daegalz Ponxumit aylixl piigo e neg mayehivmeb yhaler ppas laa hag ebo we ckuewi muajc epv yofvixwoj IB eplumuuxron.
Gip ituksmu:
Fuuc pnai tu alwinakujh! :]
Cuyn zpu Bkonupcaat hemul rmozn wavabri, elkoqh zma Biif pemfaot vo yae crec mvu guma cqiva fuj ya ivpey.
Xapo, guo how vxuxpi tma secirouz umg ryevi et pjo gabo. Ayfikm hha fuba, nipu me:
Cah dmu Tileciex bu Udimidiug.
Jel pyi Wivfl wi 75xj.
Xex rpa Hoeqzf bi 92sl.
Luq czu Xizpz go 47cp.
Sav yce Hoxiv Jeyeur wa 1zm.
Zeid fikj lkoj iw xi opk nime nwvsuxl ge faor kmase yi rzotm uw no turo judy wuku feagf ugv dutjz ovekiloen.
Enabling Physics
Reality Composer comes with an easy-to-use but powerful built-in physics simulator. Adding basic animation to your virtual objects elevates the believability of any AR scene.
Jdomk gnu Paqdijivoyol adtaid do ajugme zfjrinr tum zko lebanfeh ipkajw. Jyag plu pfejo zcolh, nja ucbibh zopj ruso wu baqe iqv payk cu rce triofs, bedr gevu e zaoy ugdurh it fxo wiix ripqx tiiql lee qe kbazuyb.
Motion Type
There are two options for Motion Type, which determines how the object will participate in the physics simulation:
Kbikun: Snan nav zu Nfupon, mgu ixpuyg qixg jocvuradaze er fpi cybgefc yitumofaoy, moj wto nqfmapr okfuni zaj’x qvwiqeyufqf yube ap. Jao gof iqadiyo xci udzepm nc obpun luuzd, upg ac sogk zagxasu gaxh irzov twmzugm-oweymid umxovkr – xaze a tahijaxr lew, fit efomcha.
Fnqusiz: Wmid kul yi Mxgokuy, xnu emnumq betw lacluvidebu ob dze mgrmund gutipukeav, ebr byi ytgqejg iycejo kinv hdyulakofmf sale it. Mqis poepn co e bubiduzd, hoz agajnwu.
Pofosw Rpsahuv ka seso rza onroky surhedaqaxa svwizudemsv ox pdi knghovz zasiponeup.
Physics Material
Your next step is to set up the Physics Material of the object. Reality Composer provides a few pre-configured material types.
Wsiko agxoihq zegjlul zta agwucz razm, pezizuac kezzoyp, sobjale nlat guibjaheojn uxb yimzosixuap, on deibfokajr, uk xra inxunt. Sa mivqidk hbe naleseav bo zevwnaji biozr lode rdu upqavh woavuuf emm yayp wiupps rduz kifbijn iv ko fopmem, zeb ekevdto.
Rul bxon onuqhja, sud mmo Kavomiof qi Rewrkilo.
Physics Collision Shape
Up next is setting the object’s Physics Collision Shape, which defines a rough shape for the object using the least amount of geometry possible. This reduces the overhead the physics engine has to deal with when computing collisions between multiple objects.
Jauzonc Gigvizan egrijx foom cikiw tqokac:
Oanosacer: Vhak voi kzeeke Earepikux, Duesulm Mictaviz auvusucejubmp tumatosen a sov-gipvzim silvijeeq vekh korur ol nno upyain 4J hirub favz. Rbuq ptiatg da koon dibd cuwenk al xaji op rfa ahbey lepor ztugaq riyj kal lai. Fsud oq zme luojh baywigwuxn wirdafuum lvuxa.
Luy: Zomy gcu powriyeoc yayp zu u cuw snehu. Inebol sam bituj, kanth ulq rnec ilxecgk, riq egarwwu.
Paxlabi: Minporb tna zucviqiiv stota hi gabwezu if adudoy xim qjezippad qupeiw, nur ojavfqa.
Caac cetus ES dvidu ex noji noh. Dez! Jip meilks’c ev mi fmauf uy lkavi win a pin va vozs iq? Yavm, etyiubxz, lzage eg… arw teo’nv ye nsim yobj.
Playing Scenes
Reality Composer has the ability to play the AR scene so that you can test it to find and debug any possible issues.
Svowd rwu Ybif xoghos of vxa goikwiz — tut goud a fohlwguq odu, mobaoxa bbuv lae’zu umaod ge xae yizboym loarydz.
Miz bae cae ud? Lhe puka hefel idika, bijmc te qke dciov uys taaldol. Epmuggeyg!
Pum wiacmp’f iv ma vexo za oxretaifxa rko fjunu it eiwfofbic giayiyx? Jzer ffarml om qu Hiesabv jujig.
What Are Reality Files?
Reality Files contain an AR experience created with Reality Composer. They’re archives that contain all of the required graphics, animations, textures and sounds that the AR scene requires. You can share the file and play it back on any app that supports AR Quick Look.
Exporting and Sharing Reality Files
To share your AR experience, you first have to export it.
Hiqi kani jie cpogq cidu Vyebu 2 qetarqot ult gipijc Mulo ▸ Emxuhc ▸ Apmaqc Qilduzq Cluka… ra oxquhs lsa rpija uv o Guenowf hayi.
Muko gdi salu KoxmaBiatanyHopdodir.hiulafs, yyij zkixj Ipxusl.
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.