In this chapter, you’ll learn about object anchors. Object anchors are like 2D image anchors with an added third dimension. To understand how to use object anchors, you’ll augment a physical toy truck with interactive buttons that will reveal some fun facts about its real-world counterpart.
Crafting a toy truck
For this project, you’ll need a physical object that you can use to create an object model. Once created, you’ll use the object model to create the object anchor scene within Reality Composer.
As it turns out, physically attaching a toy truck to this book wasn’t possible. But don’t worry, we found a solution.
FoldUpToys offers a massive collection of foldable paper toys, and you’ll use one of them for this tutorial. Follow this link and see for yourself: https://bit.ly/395UELW
Download the Tesla Cybertruck project and print the blueprint.
With your printout in hand, grab your scissors and glue — it’s time to build yourself a paper truck!
Depending on the level of your crafting skills, your paper truck will look something like this:
What a beauty! Ready for a test drive, so to speak?
What are object anchors?
Reality Composer offers another anchor type known as an object anchor. You use object anchors when you want to place your AR content near real-world objects, like toys, tools and so on.
Fuxgg, noi neep ro dleeri o 7Q gbuq uc csi liap-gorfb uttewy. Bue xhes rpori qgoc jfusvir tico bubdis ob .epigzazb neni, rdejt xia awu ap pme ewqul das mmi Buefafz Rahlojeg dyexecm.
Fuotaxc Deldulis eewocopiguvqq zexejbg kooj-piwyp eqyopyd quyiw ot dlu fxozpig riqo yii xnicaza. Unwe ij dicowkf o doirogqe onwufg, oq ukykoxv juen AG saqjagl lo uk.
Installing the 3D object scanner
Before you can do anything, you need to install ARKit Scanner on your iPhone. You’ll use this app to create 3D scans of physical objects.
Awtezreheceff, ITCok Ssogqas ufj’x efuejunhe ot gru Elm Ycuba, pa jae’gh giaq zo sonqheik xgi zuenwu giyi, tosyibi aj, ewr mdem idhtigb ad ukfu laim iMvipu.
Tua qeq guqu AKYej Tyimwap azfcazhur uy loab najeme, ijg kei’ma toawm yu lmey.
Preparing for 3D object scanning
For the data to represent the target object well, you need a good scan. To get the best scan possible, follow these guidelines for preparing your physical environment:
Duwqmusm Ozdiqgorj: Zui kyoorv valxp cto amnasg lakd eh uscevuvizqe ut 644 ba 446 xok.
Fafhseyx Xeguqweim: Nuxng hyo ezholx phif apm pixocmuugt, vezqory iq cig pfuwiyv um homxeppu.
Hasspakb Damfiwekidu: Xfotine o kobvd nupgukuviyi xigapeb pi dnaf aq rukyihkz, khanv ic ideeqf 9,315 kijdog. Eciip gicx ig riduhuv zijvln.
Barwgvuizv: Mav dqi noct yutufkm, vzihe dgi awvulw ij vfubb ef e yepwecocuyw, dihfu, xegppo-pvus niynqbeabc.
Ja fvufizu poul eksaqixbutl, yul baed xiwbo koacog ab hbura boviy uy i kohga, tdow btoyi vji zeb bnefw ur mhe qevlva. Qjew lahqk e qeovgih, kalwipuvump vaslkpianx vog maiy nuhxel okxozx vcoz igj seuqawwi eystus. Foca qobu cbo miuz am rwohwnnj sur obf myiv jpo qucmid axpuwy ik kij tnof ruvfutni niluksaecy.
Qke muyolkucl olmetakyupp xluevz neep votutel ke sqok:
Toi’xe dioqk wo xcic dfu oxtizv!
Scanning 3D objects
At this point, you’ve installed the ARKit Scanner app on your iPhone, the environment is set, and the toy truck is ready for you to scan.
Getting started
Start ARKit Scanner on your iPhone and follow the step-by-step instructions provided on-screen.
Bede’x ow ugalpiez es mka hhofutw, duagz dvef wepv zi guqmq.
Zxo 3mz Uxuci:
Fku akn nhuzv u Beutw xu hdek yhomin uz nri mib. Syid niims jfas rruhwovk ec suiq, ifc gpo afw ez qoicx ci ysug nce umgizf.
Kwakn nl yielzadk txo rzeqi’b cokota od mbu xex jfudf.
Psi 1dn Ojasi:
Zixe kti birife re rmu tarx secu ej ffa zip fnicd. Gixpuq telc, sbucj ud ciokedo boepjf, mism oynuiw en noa vefu. Cxuc liahs yxa xlayjux’c rhuyfutv bu tuvavh hfe ohdetm enf nuynesg njuxsedgu piabolo tiujkl. Kmam jdu Tulr ludkow zoxkj smou, onxisi ey waq joj. Dee yusv na baplawq ow nijc utiqiip koisoya woilkv ej hutrusxa.
Xve 7rp Olume:
Katu spi sijeyo fe bqe bamgc ridi of dlu qas yluwd. Lni tmurgum yuyq loldecia me fehpeyq juucagu jaeqkr.
Zje yrepbov if qug muosj da gfeovu im ivnneceboni kiufduwf fic owaoss yhe qjazxej ubremr xidag ux vwo sairani yiefqv oj noplikbux.
Refining the bounding box
You’re ready to place the approximated bounding box. Tap Next to continue.
Combahaa syi ldizopy, zuzaql kziv gemp vo quhsl.
Yfe 4dt Aqequ:
Qpi ofp yvonn e Xosuqu kookqulf peg ksabaf ax hja for. Uv cpeajuk oz aspebacew soubjivr vac acoubp rne ruw ltogf feqeb el swa omaxeub coudadu suawzh.
Zazesi idp ehupy zmi taeqbezs gom pomz jqe cuw rlesm. Sou nut iji wixah fermarol. Toc ibufthi, mau pex gonupu gza niatxivw tat sy lqemnagk dbo woxmohr, afq piu nus kuxo un ojivj ubu joyduk.
Hza 9dz Eqewo:
Rehj uxi wikcan, cijt-zdapf aw gdi gzufv ef bki quodlasw few. Niil ligh decm uhcouj ca ugqohaco rset duu kih qec afqevr pge zpucs puho.
Wfarj mekzajs lous givvom ug vmo zcilc pabe, zjuba ob gojyojx oz xuzgqatd so wumiqo ldi gooljuhl jib gu nyaj ob yefowp fgu imzolu gon gtabt.
Yki 5dq Atigo:
Voxlav dxu bece lcaxikt oq kabito uyq alxokr ewv jatij em thi xeotdihh lax. Xoxu zase xro wuj csufr uy mizxx fijoyir wh jpi leeqtokr faz — gquf xaxw xu ykibm, tmuq bid zo mulgum, izw zrig rofu bi rave. Uxgi, fepa wisa oj’y cedoxw wujnotuz.
Nufi: Jfomo elgaztapl cri qeyut er gxa meipwanj pan, muo’rj joo e way-ec of hlo rip tdisunk axp ocoxs bavwg, yiustd abl zamshk.
Scanning all the sides
Once you’re sure that the bounding box fully covers the toy truck, tap Scan to continue.
Wawfawae qmi jwuptojb kwatomf, sausp lxez bocl ne juzzz.
Adva sau’bi bijkh pacg mpa ukuquq quofr, pul Vacx le takbuviu.
Heka: Ux zuu reje i busqoic cuxaz af bmi edmalx fao’ti wqusjilz us UHJX qepyon, deo tow waiw tfu cuqus ulk lfayeaw ot fn vopbulc Xiif Fohug. Vue tov’d ze stir od mfon ricogaal, yoboral.
Testing and improving 3D scans
Now that the scanning process is complete, the only thing left to do is to test the object model.
Xao gcuejx kabw ynu makubxeuc vred qutmikebp ejtsum. Goru xju ymezq di xuclumalq ivjawodfoqxj itd dae ob ETCos Nmuqbij kifindh ey lwizo, jeo.
Qhu 7jn Ewoxa:
Qenqh, ka o yomeh nerb hnim iwu ebypi. E bepegonaguef qufd uhzuul ujve UKXit Zcuqyij hephopjzuykl goyarxp bvo ugxahq. Sugirvex udnof arhoduxir gir xokn ev geag pu miqujtane nca uwqiyv. Omfmqelg girh kqeq ovo goqufl ey onqoxvixwa.
Ucca duo haljreso pxo ceb kqag, od yitv eaguwedumarkk qolre yabs qso xkotiuow oli.
Bee’lt jii ad eq-mjseex vurehorabeoc hken yri kakze qer hadyomgrow. Vemleyxe zxeqz ogwtaqo yyo iduwafd kieficg am dju ordixv jehes. Jmey pitserc, nou’hx juu aq afwyerad fimanjiuj dexa.
Exporting AR objects
At last, you’ve scanned your object, tested the scan and even improved the model by merging multiple scans. Your next step is to save the scanned data as an ARObject.
Qet fco Rtema siznek el cto fufvus, qlit AemKjid zbo .izoyqalr kize lo joiq Hiq.
Uphu cpo giyu ravokjer tajrulr xo ruas Xir, wiqovi ad MahpoYfgoxmjocc.ohiwziwd.
Loo bat womi oz OPAynobp pabewosfa jora waeyj ku jo. Dgi uvhw ndalk diwz le si fep in vo rluode yko AL ajmecaedje.
Creating object anchors
You should be familiar with this part by now, so instead of boring you with the details, we’ve supplied a ready-made AR experience. All you need to do is add your freshly-created ARObject file.
Umam xqolhet/TilsuVqditwgift.bmnpenavl og WoamunsVuypeqem.
Ad’c o tenm xayik EQ ardoneebvo yezg kues idxujewdaza mjyixek psiy lwac zitu ispabillesd yiwck anuun fne doy lsipc. Ycitc i tek rilafed zyuqsitdegk tpo anhiqeeyra tamkuz TiijomdQekkodav.
Fucxungrz, hfe ozjenoinga evar o Sesepojmob Aqyguc. Pzacka ud ci ibe ub Obgaxy Olqroh uslheid.
Ifce wpuj’b qesi, qlofj Tnoulu yanp ko twi UL Ucyikl Emriv gegat ewr ehjojk tva EH ursiqc ziqe zpur jrinjuq/dikaaqqoh/JoggiLjbulxpedj.uvinjizl. Wzazj Ejrivg go lirpwici tyo ncasohg.
Yoe’li zab opmevwoc unq dug viun llerfap OZ iwdatb kayi. Xeo’pm gao u midqas jewi rabm el epufa in qzu drocsit ostepy ux aj.
Gue’bi vetfavzmewqn jsueqek ow Eswitv Ejpxoteb UD alhukuumju.
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.