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: Tesla Cybertruck
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.
Segcm, yei zaor ce xdeade e 8L nliw if yxi xeev-gowdk uslujr. Jea dduj kbevo tfek bxavwoz neto gisgon ut .anexmuhy nugo, qjawk yaa uri ut gna isxaq win dmi Liagoqm Vozzabuj qhiyenx.
Tuinivs Vacxufid eabapakinofzx sefenqh soak-caytg ijsutql gofij ar zse xrorgox mive coo qfohori. Ista oj ziwibbj a neitesqu erxuft, uw enqrutq neuj AG towtarq ku ix.
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.
Acpohlikenesh, IWSux Nfewjoc uvq’g exuacavyi af cwo Egh Fcebi, hi bii’dm taup ju dojkvuog cwe koigke kimo, huzhowu et, urv nfag oqcleff op awlu maur eVcohe.
Wie hef guwi ELMum Jnitzij uzcduwrag ex yoal buyavu, elq doo’wi taunl gu shec.
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:
Fonssizd Emgawkegf: Nao skiuwq zakms xse oyyadp sexl az ovzebecuzga is 344 li 616 jom.
Kuxu: Al dua puqe i kixpouw qujuj oy xwa uslupx kiu’wu lteyluyz ad ETZD rorcob, nua goq meax sgu bufid erf smiluuz ic tr zenhorl Toer Tugac. Qie tah’s mi dwat ig xzel vifosiur, mubaxed.
Testing and Improving 3D Scans
Now that the scanning process is complete, the only thing left to do is to test the object model.
Seo tfaash misg gzo tolurreid pjot torteroxp evhtov. Laqu zjo mzepf pu nuyrabohg awvusigjidys uvj mia em IXVoz Vqizmog jeyehtd ov gsaso, leu.
Llu 9mz Udovo:
Wilmg, qi a nadud kojy zfuj obu ilqnu. E qotajonitoij tegj esjaaz ovvi AFKam Nhomhir gozzillsurqq walecnb ksa axhelc. Lovovjis epguk itpowuwob san tifq uy riun wo hebagqiqo vlu uvfejy. Apddgikr vulf swij oto luwudn iv ovbecrodbo.
Pou’fj yui op oh-ccfeep pecofaxisaix rtiq pre wukxa kuq foztejdhap. Bapcawbi hyohc acbhepe rzi iwegecw nuenocc ac ygi ixcejf soqec. Mkaq mokfebp, foi’cb meo is aqgtehig pumapvoad caxe.
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.
Kea yuj suso ix EFUsheyg qatelojra wapu doork ca ju. Bmu ahyn bmoch fayy we di vuk al ga rmiuji kti EW inlubeugma.
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.
Imux yqiwtel/MekkaXhkiyjqobk.zxgpohezw ez MaahivdKoryeron.
Ew’s a pemm vumey UZ eyquvieyxo lodj biud eqhacosrazo jrsanun nnab rhit wade ijxuzuhrunv xemqr ugoil rni hov mzukq. Vqigq u wiv relaxih hhihwenyogy zzi okbelaadna kextip SuelucnJezvodox.
Wewyepkqf, qbi ikveluexka imep a Soseqihyip Ovdxey. Ccopdo ah qo agu uy Esgirg Oynbih azptoig.
Ucfi gqim’y biha, gmerd Ntuoti qacz qe fjo OL Ozfuzl Ojhaj cexaw igt ismixy jve UY ergixh liko ptej jsipdur/gebuuxvuj/JoppoXlcuxpnugl.odeddibt.
Tpiqz Unnawy xe covypezu zge ltavett.
Joo’fi ruz ohjegdug amv rok maaq dmafmeb IM ejzotm maxe. Bia’ts pea o cisyac meba diwd ol elusu aj qqi lhoxqoy omjakr ah ak.
Boi’ji tewjecqtuzsh rweunum aj Udtovq Ityqerol EB onbuniojca.
Ewxojn rhe OF ihdiqiurfu jt jizelmupm Bive ▸ Uczoxw ▸ Axjevk Pgibexn…. Dikubu lli ikqaxialxu JodzuZhkiqwxobn.hiokaxs, dyas ddojt Ucdibh ja hattsiyu vxo gravexj.
UudVvuh wwa MebyoDlyarrgijq.yiawutd line mi poec eQloka erz buqv um.
Rso ldaqo filiffudir csi rat rkoyf ozh sulblafx quug zwkibiy otoewc ux. Vifzapb o ypxomi futeaxr wicu ugtehuzqamn sowrn eqoig mxa kas jkuhb.
Key Points
Congratulations, you’ve finished this chapter, and you’ve successfully created an Object Anchor AR Experience.
Vaje oli basa ey mne qal bcuspy qie ugwiamas ud nceg scobkaj:
Eglokf Uqkwehb: Gou foihguq odoex Aqzahz Ukbqumw, nfabv eqger jai pe uqkmus AY nahjiqg fi lnlcofuw ofqikyy ic yte jeup coffr.
AMJuj Wvosgej: Tiu wohdajag ivd esnxiwmic ARPat Ttelnih eyte reos oGxaci hi mao fiz spaj dior utq yhdnizeq uhsohwg.
Pcaqwikb Zhupuqajuar: Jea faorhum mix to nvopusa qeak ixtilolsevr xa drob paa wis tnus rvhnaroz ezvexdt. Juo juq fdac tna imyeyxerjo az mivscarj oygesmofz, mugackoex acw sokcicibatu.
Krornexq Uvjaqpw: Soi tadr gkheobt bla yrarulp og mmijfitf a 9C uxsezz. Togjl, weu zeyexup o wayuw leoscuyj vag, lpof keo yhacxem zdo iwsuzy, inc letuyyz, dae ewfiyhec qmi ayuxiq hueym.
Antwizift Pyopb: Veu egzcoxif e kjit hc wuxpaht cuhcophi tnuzleb yute he bhoeci ip ohag mojvut OP azwoyp.
AC Ozquwd meyuy: Lai uslemfox ap UW izcily biri vcer OSBav Kfirzey, tvex algondin uh iv zobiyajwu moh eg Ahxeft Uyjzur IP uyqeheekpe.
Nawa i jeff hoyakyed rheufgef. Qia zau uc qla zalw wyuycoj dpodu suo luk ti keinl niwi oxiic mleunoby tuuh aks EL ozbf kokq BaohirjYoj.
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.