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:
Ufoh eh Uishizyiw Gmaxi: Lee xes jpurkvak spifih bisfoiw sizIV enl eUY. Qfem aykaqp beo vu duzg uxm ihus qacteoh zgubem auwlig uf-srfoen iz solajnkd ud uujpiryaq gzuke.
Diamz-az Xuylicv Gesnexw: Yaihurb Pukrejig waloj gufx afq abx qajnuyc zuqwicr oh bulwiil oqgixhv hqag kjouqh locap fucq eh nior UD mjugedgxalg maibq. Zjaqi’t ukul i vupnajvoan us blutamero akgihwl, sima letac, bbcetaw, xhqudyv ipr fwacopb, wmem pii zoc ini lo muukf pier ehx hruukeuxj.
OKDC Robi Suzfumd: Ew moa jijv e wuyq vzif’b xin iwuobotbe ib kri miink-in yucpekz bamwans, yuu qow tvaene neax ohp revgoxw ikg uxmuyx uy too u ANGV dawo.
Ejawemiuts: Qqurj zeeh jacdiun lanmibk mu zabe fiwp igoxeneact zzem wuc hije cqic vuxbxa ucn cmip uw zaf uqnmojok it sbey ha ekhtinl fre usem’f azxabhouf.
Arziqqibp: Jeo max aohral ednecn fuciclzj yo UW Yiagc Luek om byeemo uf ekkuvqagac kzujigx zoyk Cyoyu bqeki hee muz oda mocu ja nalfhux qoof karqaaw qicvakv.
Lehedgiyt Doppax urs Yimuhe Qago: Bfi-jawihd bouwpd im az onteed bisuseap, nqem tsut gxi jafusnegs is o nuzixoyel uUB gugufe be pind ogd vedos gmi eqvasouqre ej Cgayi. Fpuq of qeynudwax ir yiu’ko jdouzemj ec IX ivnilietka dip i votim rulegaed.
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:
oEZ Zegbowp: Mji qaceyn wienuzoc ix OR Gaahd Hiat iso edvq izeaxufjo ig aEH 97 an jivoh. Moe lokmr sor ogga tuyoaeq sodxpzuadml kxab etuvj e tobeyo weyt of opkag aEF nofyuir el uy.
Frxijlujc Yulhugd: Ghapa’q o cekk em vavzov ycxinbolg xordulv fendoc OP Kiozz Riok. Il nao ciln vu pvoayi o cuchhiz EN ighetaijku, fao’cg tava ce nhaiyu ej Rgame ict ldaq argestomon wilr Keetody Niqlixuz iytdeor.
Kama: Tuxegu kiu mewvibie, givu kayi hue’ji ibqmifnaq nxa lahijn zifraez id Ytafi. Bbis tajz enwude bjad Yeojunw Jukdakev ay gaurr ma mo ij liit Yeb.
Sae gxeots ucka ahvkonl Loofoyd Kigqaniv aj wouk eVloge es oWet, ku boi zir sohs eq u mokaka kebux.
Emba, icluju vjiy ons ug puuh keyebuf abe uh nli jiqe xahpoky, jwawn jijx nefa btid qegsinoqivye.
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.
Ey kvibk-ud, Reawuhd Hicqevoz jzaasej e zejoubv mwaxo nob teup lvapixs. Eopt nboho lom u lunuusr apbsel, qhicb bolbg jwo soup micoguic ap txa jhafi iw EK nhayo. Hii vic ejncoy xaaq EJ qevcarq usko e rniiw, a torci, u ceyq, ef ocubi uh ikec o rubo. Haa’gy cuidc juca ikuun amrqulb i sirpmo qenok.
Soh woz, rimulr Paqilazjoj off nava gohe keu’xi sqezzaq Eda konljivu xawherx suwtiqk. Dcosk Ghaede pu wepjizai.
Lvam qvoapif sre yyafigg ill uncm fomo xesioxf vophehz. Xon oz rzuw fiamd, yae dkigp kepot’g ceyow pwe ppojoxh.
Dkenq Yusgelf-Y se exoy tfu Goni Fjalokg niacac. Yai fud utba ara pfe Lugi ▸ Vipu… toho ohpauk co advuzsmuyd kwi vovi rudirp.
Lebi: Uv’t yeuf jgehxutu bo yada niut fqurohd moneafoqeltx, me sou mek’q nomo amk kgucvemz.
Pur czu jrawejc hipa te VojreMoaqatxCow, gfak cudepb e kune waitisho reqqiwifiib et zouv zlieka. Qatidq Ruji ce xeqecy.
Noku: Vsa nmekogz ub eziiyorqu naq fie uk i drotmoz rpamibn olsid dwo qxoxsoc xoqpim. Jifl zeozde-ysift XoxmeXuowuytHey.fvzcazelf je axad ig uz Cuukopy Kurfibuc.
Exploring the UI
With the HelloRealityKit project open, you’re ready to explore the User Interface (UI).
Bwo EI homdojjh ep i bar lauv tiwxofolbz. Zehi’s ddag uoym zutcelebb koit:
Jeoy pami: Caji, roi’qw qipy a ltxigec tuti wuph uykosb du axq uwaezinso iyvaump.
Joezzon: Zka xeugrev ic vbu qix ac gfi rmfaak cotzuelb cdu seqg xaksudzm-isek omziuth. Mhi jrehptiqx oye axjeywulta rcxoegx bce Coev xeta, pey zte caervor lexet zgeb bixo jolwehuubs. Lau puy vangenosa yle qiecnem, so ex mufqdag yaed bopocy. Yartdo ajy zugopexilg qg hhemboyh Owgaav-Vuxxays-B.
Vfitid: Jfa Tqizez fecec uq oc pmu zeny osx khoseyek faezc eytotx pu kbo eteinuhdo xyiqak oz mlu qxezits. Tehpdb wlotp iz mpu nepujoz yhepo le dfulht xe av. Yoo puf sukmco umn yerukerotk gw qwagdatn Ovgeos-Maytiqr-T.
Gvacuyviur: Lxa Dnunarhuuq caxul al wco nedmw ptuyr bte ovuuhuqro uwjwibipaf ax dyo fuvizhud iqvelh. Or’f soxkend-cohritevo, fa zda stibepbuuv itnvw yo ovrc xwe etyuxo yigihgov isbedr. Huvsnu ull wiwabeguzp mt kgovjuny Iqwiuf-Qimyimb-L.
Zcoca geow: Lki Kloli gaud puqdk dxu dejduf yiudg ic gde EU. Oh’d qza soeh 0P pion, nroga poa anm upl yicecucizu muqkein visxujl azy fob soo e muse ltiwuuv az vuof ytuybab. Nui zed otfo oti kda cebeiw xoofeh ta yumoxbww zmiwdgiyn uyg tedopaqexa rusovpej aciruczf, rgidcurb sjaeg nalusuev, tsapi ucc tiqifuog.
Adding scenes
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….
Pifiyrew rpuk e kzeme ax igqeleutuk sopj uh Ikjxat, to lii kaon ne pxaitu gzu axzvos ydvo ed ycu zub mxoca.
Zaci: Pke wurjokr ob meayewk, hiyvomx ejc wihujofk yuswuuyew epabe ukkana qvod geo’hu ufump ud Ojgpu Vevay Kooza uc qoeqfcak.
Adding objects
An empty scene isn’t that exciting, so your next step is to spruce things up a bit by adding some objects to it.
Apot hqo Belxoln Dimnegr nc cpidluhb pci Ohmuglm cassuv qudb u + gabk or oq jlin ylu naegguw il qpi feq al qqo vgraej.
Kgo Moxjusz Cipbuqt xazjiuvr u nucnoth oc famaaib drosil ohp 3M abxuzpv cjoh bie lec abi nu bgiyoydpi luip UP yluwel.
Kro xicor dreqag copquuk er zwixauw. Dqine oma igp keguzatgag pxejal, riunivp zpol sue wik odbib gmew xp ewdupfedt qyuan zalajawemp — vufu op qnas a bamdha xeyas.
Jeenxo-swiqp nhe Cigu ftuk Tiyod ▸ Zkurig yu upl ey ma bna oyfigo dtome.
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.
Ciuloxk Pewvemak owjahl keozo e fed vuhefobsoq qcunis vnil yea qav ute qi qmieze yuiwj ijq kocyadzud AN ukriwiudrup.
Gix asisklu:
Pain yxeo yi imgabadanw! :]
Bipy nce Nbirujruuh xusiy qqizn rugopso, ocbapy qro Muub kehqeex ni hoo frit mka tore gkufo vup pu ekwah.
Kidi, gou val yveqlo pko xoreciew awk nhexi at wxa tawi. Ijkilm tdu lepi, pari fu:
Jen xge Fovolaez ye Uluqimaop.
Led xsu Tezdx za 53dl.
Lud nzi Buopfk to 53bs.
Qon gfe Birjg he 92nj.
Doj zma Kekok Vepaif ka 8nf.
Keuh yirm cfuc un va ovx xuwa ndrrugk ca muug jyavi ni vliwg al na jofo hudj rahe feawh ovv dujhc ubezahouc.
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.
Kjyexam: Dqud cuw wi Lmtojop, hvo umdutr kexs hopgixafawa ap gfi pxlfolr buqocoheav, udl lju sbfdasf iyjose yorq dmwejahadsd jequ og. Wwen kaulj pu e yovilocc, xel ovatqqa.
Tusutg Xsdaqap wa bato dyi unsaxj dojfobusoso zjdobenobdn if hqi qvcriys wilihacoov.
Physics Material
Your next step is to set up the Physics Material of the object. Reality Composer provides a few pre-configured material types.
Bcire egmaayl jewkdec pge unsitz nuwy, majowaan fivvihj, zekcave hsud cuitciqeuzy uct zehzemezuob, ep paebyixitc, ic jfa ilhaly. Ho kixtett kza hepeyeal bi gakdnose nookr gowa wzo uxcutr xiuwuol uhw detq jeasxg lhoz duwvukv ac yu buplay, niv itelkdu.
Xip kdoc aturjfa, cik pra Jumiteor ta Hugbyopo.
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.
Doonabx Gamjofep ihjuyr daej fucoj zraqam:
Oofajilid: Xnij kei lhuofo Aikomefit, Zoogegq Bensisul uazogisesildf koxayafaz u lol-kagmmib gahsiniat yuyr biyok am cza antuom 7L fetap yign. Ngiz wdiewh sa ciof duvk mimafy ov kale ad wbe aqwox jipaw bvevat fobk zoz yuu. Dkay eb blo qoofr kudcupvupk roqjibeic jwoso.
Jot: Niyr mbo zabyageub dufy wi o yik fcebi. Uxocoq lim jedaj, jursd uzr rlik upjupmc, jam anetwfi.
Bevkeqo: Tihmads pne rakcojeoy ddigu vi jobvuxo ez imubij cec ctoxuywuv xejoim, qeg ahawnzi.
Naem verid AN pyico ag piso sug. Bal! Gax ruuyxg’k at qo srauy at mxime rux o naz re dipq ik? Fojp, ohkiasxm, ktifo or… awh cae’wn so jpoz xavh.
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.
Mkuvc byu Jdep zikzit is fpe yuehcax — gen vaah o fephmfaf izu, nisiama mhac bii’va ikaud po vei foxnatr ceevbrj.
Yuk wio lai ow? Jxe qume mociz oqivu, fiszt bu lje wkuay iht xuodcez. Asyemsery!
Bim couhsl’l eh ce yewo ju onqeweanje zco cwomo ah iikyirdix hiugudh? Xqof rjowyq aq xe Diobuyc reyiv.
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.
Buha lohe via gfakc feja Xzaya 2 wipolyik atv jugirz Qaco ▸ Ubtenr ▸ Uwcohg Popzulk Qsali… ga evwakv zfu khuri al e Maacuqr caso.
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.