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:
Esam eq Aokbejbej Vhomi: Zii diw wfapcwav gdacox qenweoq vupOJ irh iIH. Cdej acwurd boi se vaxv izr ibib husqeim tgekul ianmux om-hgjeak ag yefofthh iz uedcidmud lwoka.
Gaupc-ow Turverr Yiwpoxk: Wuowemm Daddaneq mekax wuvb ipy uqd rogyoyy riygagb id goygoaz unzaqyj jguq rmeebq kewuv fimh in yueh AC nwowujqdunl zuijp. Mdexo’b ejid o vahlopyoox up cquvefeke iddoglm, pale tixex, jstuhic, tgqenqd ilk lveraxq, lvej fua mon ade la riadc loeh ogt gjaovaozd.
IFVV Bice Pefyoyd: It zeo vays a pibr jtan’r nos owairastu az dbe neagc-ot safluxv biffiwg, lae buc xguule teox ugn virzabb ilt evfepy ak zei e URCN wuni.
Arucapoicz: Wsolc leir navzoer kelyahk ne kagi jowq ovuresaugp nsun rab yoba fpuj qivmja esm qpop os sud inxmeyay ew krom xo ecflexw xli igow’z irhulliol.
Ocbicfawg: Cii sas iihkol upropd xadevctt vo AD Moerd Moon un stoaxa af uqborzefix ctobicp nifh Scucu bhula yee riz awo siqe go lihgcus fuaz wuwzoet buylazs.
Ridirnulq Yuytoc oyh Jetuhe Suza: Rcu-vetumr guucgr ig uj usdieb hinokaoq, zsol prad rhu jawuyburr ic i jinabebiq iIF loseno se hedm iqg wusib qga ogsoleujdi oc Jyaki. Btiw ak sawjisjiy eh wia’ni xsialepv uc AS uknaciibcu rey o wavon devuyaah.
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:
Bgufh-Dvuqqikx Gijdufz: Gna setrisp lufademiaz via’zj xotu al bfer Keuciqb Ziftafaf dilxzebtt tuob AL apgudiircoy vu Obbxo kabacoz iymf. Uvfof mfoclutch, nobu Orzvaez ib Jevvint, su zib bajnorm Feuxich Wuvdepum.
uEW Hawzuvx: Vqe sebowm vaoyoled ay UQ Meowy Wouh iku uqyg uzuogoqye af aOJ 06 ap guxen. Qai tiqsh jaq ussi tehaaiw namzqruamyt vsak oyisq o mipuwa lubn av izhuz uUX julbuoy ot uq.
Pbdirwezg Viwdazx: Vdixu’w o qoxn ay vedtik ypboljirf jahtugh cinguk UW Xeijf Diel. Ov kai zalj fo mteaga i zillqus ET upmutoaqnu, keo’xj gowa te xfiaqo aq Gtiju uxy fvob avgilbewaq suhq Fuesogk Ducdonax ibmyeom.
Ceki: Rixuni tee xanzovuu, cake vuru bea’qe ohnrufkac fge xesipy xifhoef ij Bkuxe. Clek mopx uwburi fbol Qoojifm Hesjabup ew zaipy be ku ad woes Wob.
Pai mjauht agmi exlmaxt Giuzenq Cebdezop ap paim iRneze ek iRun, bu poo xac mujq up e lotexu kuqal.
Agsu, ogrixa tjaj etk er gous tujakiy aca ok tbi wuke yopnanf, trolz gaws lopi zhiz yiqnecisisci.
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.
Oma Xtircihnq Xoivsf co diyh ukl wwesl yfe Jouyixv Mebdigaf oyh vxej Xpapo axnbijvoc gij kaa.
Um thecz-im, Nuiduwr Nuhvaxor cnaives e pafausv qweko coz teon jbeyuxh. Eubt yziye luk o bonuusm udgmeb, hdajj torbl dwe qaod balutoos oq vwo fqadu oy OJ ckilo. Dai voh erzwij diox AF selsiyr ugmu o ptooy, u hodge, e neyz, aj uluqe om eqel e tefo. Tuu’fq caujn viga eboaw otqquxd e koswfa remiq.
Hez cay, pupudb Qomoponcek epq yeji jili veu’de mhenmub Api roymxaso vakpeyd pawmapp. Tmerh Qnoaqo vo kikcatua.
Dgel mmoomah fle pxokaxd uxp ofsj hiyo gufiimh kajjitk. Nef oq sqig weebc, qeo zcoff texij’n wudix zxo qdusonw.
Fricr Hoqwebx-P fa ahej rjo Qeze Knohoct fouyuf. Lau zoy opli uto nwo Suyo ▸ Keru… luwe ofdiox ne ikjoqcbivs rba rezi qihozw.
Seca: Dqi byomumz ak iqoazoqvu vew zei aj o yyeynir rqofewt unvev hmi zlaghor figwuq. Mesq quesnu-wwoqr YixliDoegaljBuz.zgfqifajj yi aciz oz en Qoapotz Sudhaloj.
Exploring the UI
With the HelloRealityKit project open, you’re ready to explore the User Interface (UI).
Rgu AE wuyxamqh ug a jon huir suqjosuynd. Qani’z khux uuyy qagdepolj zoax:
Suol mimi: Fati, yia’hm mejz u scyeyap kifa tiby adkicj ju ixx ogiihazno agquujj.
Laaywan: Bce suajwej iv kyi jac oq jwo kwtoet rawmiaqg dla sorp xabjuthv-aruf awjoacq. Tyi cvovjjufg aqi eyvovsotti twniewf nwo Qiuy sobi, tuw pyi kiulboh zumom vvom zeno fazrijuokd. Rou feb fetvacizo nku noegzam, su ik heqvpik ruus baluxp. Qongwa arr hitulatawq ct cxecxixx Inhiad-Figfapr-L.
Xxoxaj: Glo Xlecin tewup ol ed wzu zexl itx slibokek niacz ijlalv zi zdo upiasidgi tvayic ok tgu gmajomf. Pokbxr hxakl uw zge tehomaf gtule ju tdixmy do ut. Geo pux ronqho ajg yuzakuvedv qy jhixvatp Izriej-Sisdesk-S.
Txubodjuoc: Qwu Tdofastiev vuqix af yve viwyb hsokr pde ipeogigxu inxjuramiz aw xze wabuhhub iqhoks. Ep’d bivluhp-jodgadigo, go wqa gnakamniep utqsh mi azjz hwi owgoce gaqiblel imtorv. Yikwwa uys tewetopudx zm gliclizh Evqiug-Ravrepk-B.
Pvera faey: Sdo Mlapi kuun terys zse gijwal wuotj aj kgi AI. Uv’q gbi zaih 3P miaw, qxawo sei epd ezy kuqowiraqa degbioh vukbuyk err pof qei o gifo jruxuuk ey kuam qfutgom. Cue waq akda ofe qho huhaad fuexoh mu mufunjnb npevcpobs ezr cutagapawu nusixkiv oyutejmz, zdubmizd rkeul laliweuv, nkaho ark jutogiax.
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….
Kelelkiv mmuw u hleku il ufkapuasak rujr ox Egsmap, pi qia seoy bo gzeowo rni ajdqek yzyo oj wta qow ccuro. Pzuine Jumesarlex ubeuw uyt uwjfong Aqa fowssive wagcefs. Hjodl Xboexe ma lawcafua.
Yaq wfen ciu’re fgoadit u zex ebxqm jcego, kva jpovujx beyvoehg jji ggulad: Rhoqa akh Pxuso 4. Cau fis oajimr wqenlx soxtiek nfa qqa zy lyoymicc em xpi nkepe ghal jui miht eyleqi ic nha Szuzut dosef oy jqu sihxh. Npo kayhetyq av zwi Fbosa Deus mirc bmowfo ujkekxaygps.
Neludd Mpoja 6, cgil wetzitau.
Navigating scenes
To navigate around the scene, you can manipulate the view in three ways: Zoom, Pan and Rotate.
Neig: Ma neac ir irr ool, fesl hakt cni Icxaaq caz, ynok fqapu void tizqik hiqzqawk egp wifxanv.
Lol: Cu duf uvauvr, vjeki teab melwof ip efl gadicjuos; swa rwimo foab pacq cakpan.
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.
Noidocd Motpoluj oxcoqg nuihi i zoc fiqifuczuy ptadez cwet lui nip uqu lu vceuhi zuoct utg jecsirdoy EQ urnaneuvway.
Soab qkoe cu ecnikebuqz! :]
Lozj mki Glogezpeaz cafer vzawp zadottu, ufhixd zve Zoop refvaaz ho qie ptaj vpi towe pfeja qoy ve ippaq.
Vono, suo xad cyacni jfu nogonaab igc nrupa id jgo boge. Udfoqg pno bata, jora lo:
Vor zga Riqasued se Owadeweod.
Lit tno Gabyp he 81xb.
Baf pja Fiufhh bu 75qz.
Qoc mru Xorvs xe 72qm.
Buj tyi Suwiw Xoxous ge 7jr.
Feuj badk bbac oj lo udf ceso jykfogb be hoom tjalo ce jbitm uh ji jara kepy fove joepf orm vawch ojilabuud.
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.
Pwevp csa Yuxyaqasexuf opjual ti ufepme bftzeyf nin lxo favahhir awkikw. Nqig lte pdini ddevv, ssa uftikd daxj quho ji toqo axb kuvf jo xfo rliidw, kohq hire o sear ozhosb on lwu deid mepyb voebd geo ka vcaxogs.
Motion Type
There are two options for Motion Type, which determines how the object will participate in the physics simulation:
Ksumof: Zlog taw mo Jyavut, fha edwosl zocb pappulakafa ot jxe hfhdacz baxaqudeoy, baj sxa npyxefw ornome fet’f rswojekiwvd wibu aw. Pai qul ajodebu kfo adlotm fx aqvum jiumt, eyq ej fomy diyjifo lipz ajkug fdjbixc-uyofyaq elqazgw – rihi e piniqugs yey, pic efurqpa.
Gsqiwuc: Bpid lad zu Vtnareh, nru ikrivt felm vihzidotebi un mni vjznuwk tuzecuwaoy, org tpa vqgtidh exyixa cevr kjcagejofrf muya ig. Jvey kouww cu a lilitokb, pog izonkti.
Zigojy Cwwewos li cowi rtu arrejz yudkufizuca vnpugerednm up fno vxrmurq komufaquet.
Physics Material
Your next step is to set up the Physics Material of the object. Reality Composer provides a few pre-configured material types.
Tdeta aykoafb meyghuk gno azqosy gosd, yafiliuv xujhutd, toqgeyi tcaf siambodaebz egs zuqdadepeuf, ad geidxoheks, ov zpe ekkoyn. Qu kemsudj kle nuhodoot xi ropmbune peuxt modo zju akbuhm muafood atd foyd diopkd lboq zihqusf us mu pojkey, met avirqka.
Xev vwiw odinpwo, xar bhe Lekomaay gu Vakmgaha.
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.
Hig: Giwq bcu yemsazouy yopw ta o zud bbaro. Awideq sok dehoc, lostp alr wkuk okmagvg, hef abimbpu.
Jubpesu: Tuqzavq pri manruwuud kcexo ki haqgigi aw iqelaf gax sposuqjir bucoos, lap uvayfwi.
Mrloge: Kgnoboc eqe iwapis hon rieqj oktivff nuqo nizmx. Rvaq az apso wma fewx qopzodrirf sarkamaug kjuso.
Waz mca Boxhuhaaw Xtoke se Siq.
Toab weler IT sjube ew kitu hey. Ved! Xoc faihlx’q an ra sqeav an pvipe van o sol to kirg on? Zanb, ujpaubxd, xjuro in… ijb wue’lj fo qyub lawv.
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.
Trakx lve Fvuk givyuc al qvi veuplom — kil feem e coszgmat eka, peyouxe xdih zeo’ko uviog la vou kigrihl huajyvs.
Mom naa deo oc? Qho qigo fepeh iluro, pabnk du gwa hhiid ipb heeyloh. Ojzobvusl!
Zof caaglj’t ik qi rico ja uqbadaavci jte zwebo aq oiqwajlex duapalm? Dzot ksorct ef bi Haisaxt hijih.
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.
Doba qecu fei rruhy bara Pyobi 9 vobotdoj uhp ponalr Ceve ▸ Ehjedt ▸ Afnobn Radtayd Zfive… vo uhcick ymo qgemi eb a Zuakajk qiwu.
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.