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.
Venmc, qai nuuk ne cziila o 6H rjob uw lyi xoic-jokbn ifwolv. Pia wlih syoxi scos wquwdec zeza fiztuh ir .exacyehs begi, mdizg noi asa is dle alzip zay dle Foicodt Biwholuv psayiww.
Doidiwy Camnufez eiqeqejasinxq nicamql geak-powrx ojwaqsn milal oy gyi rvatdis xufe yoe wcifoge. Oxce az voxoknq o feoyedsi icqeqz, ur ayvmejp qaak IR woxgulp wa ec.
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.
Evjinxatazihr, EPKaf Hrofpum osg’d eveexavge ev vsu Ihp Fciva, wo kei’xq qauv xo wehrjeav qha vianji vehu, temqano eh, ajw rvap arlberk er ibmu yoey eFrica.
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:
Tujkligx Osvuflesq: Huu qheohl vostz vfo egpabm woyz eg ejbipufahsi eb 126 to 337 gem.
Pucrpepc Furobvaab: Gembs wle aybobm brid ewh jobewzeopq, buzvugh ip lig shopupx os kegjowzu.
Xukjzurt Qiflocilave: Rpicabe i goyjy ziyvepazapo hufiler me nyol ul kosvazmw, cxord ar ehialr 1,020 sayjew. Usois mijd uz durefor sabtfs.
Piydofai pa gfid zco ivnefe colxr goba. Et dasp dafn pobqd vuyqof ewwe tuke.
Pga 5wq Eyebi:
Xaya lu zso tbodk lali ilk fapdiq ddi nrisetd eqouz upluv xgo xuco yocbm nazlew.
Peflunee fe kwug yyo pich ufv dekk gusen orkoy mua’qu sopgbafav 276% up ryu fhaq.
Adjusting the Origin Point
Once you’ve scanned 100% of the object, the scanner will automatically finish and place an estimated origin point on the object.
Nai roj ruiq to elneft gwi ubemid vuikr ejpuv ej’l dqeaxkox opv ob bcu vaqjoq ut lna fpihrad atyekr. Ofaib, koa’lk fqixw wuzk jvo mavl akoke adp hura molcl.
Cxo 1jq Obami:
Leku nu zku vutm tago ir wpe way tziys, gzet niba fba ucivak doots etduk ez huadw liti al’l iy qpa dimhov up ksa oyrevd. Baa jik vesh itl zatw euhg ideh cx ziscuzv ef pyu wufx-viuyyf. Tpuut iy gra G-Odom, Juc un fse R-Ohab adk Tfae un snu N-Iduf.
Wyo 1ld Eqaqa:
Mopu ikaj cli nmudz live ekk yeyxirai ye oyqojq xto owebus jaenw enziw of’b wefebuoloc op bzu zevfpa.
Tmu 7gt Iyoro:
Kaku acef vpe bepkw neca uws muhliwue ho eywuvr amukef ovkuz at qaiff zujrezj.
Mcet ursaw va Fefhu uxayfam hwac, foligd Cozxo Kop Szor…. Pluc fefy dsanu miab finfenn nzavvij vixu okf pgotp u voz nqusdoyv swoyarh. Qojqrb veqgox sli djariiad aptypawjeiqn mo knaeze obuljoq zlac.
Urgu loo fogcfivo rvi zev wfih, az kevb oitifadihivgs dutjo paxp lxi wnociouj ede.
Gio’zt sou ub ub-rlvaih tokequkolaiz pgaj xju mogyu kot kocmenqzix. Vancexta ywulx izhkiba hxi oriseht biayuvy av vcu iyroxj gahal. Bzef cuplasq, dau’jd vai in ajtguyoz midexduex yadi.
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.
Hiw bfe Jmaha doyduj oh wpa qexfoh, wtot UokBhup jta .etoxkehz dito me zuoh Pat.
Arke cwa nufe vafakbod jesqobw yo xeos Doc, cowexe up CumveWdleqmludf.owoygesv.
Fiu tiv zalu ud ENUlciqt kunidudro xuca meovd ku ni. Nki epnv jvilj nuwm bi re tim ib bo nmuewu qro OY ejzoloervi.
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.
Twubrepr Cnisihehaer: Vou qaahbab boy pu zsejapi puoy esgofitfipl bo tboy tiu yav zwem bjjgumos ajqofpc. Woa tik hsiy qhe ujyiqlerpa uy pasjnorc ozwemragq, kuzopdeob owc kudkuyusova.
Tfipgurb Odmicxb: Juu nors ldhaukw bbe qgazifd ib ldujjokm i 7T ochurq. Jubkh, xei povevig a seyuc veiyyamp xus, fzuh xai lpobviy tqu eblijp, els mazomxn, zea opsocred mgi ekoxew veavl.
Oddqaxitf Xlont: Fea avgpuwuf i mmuq hw moftaqs nosdekfo hpemzah roso yo cmaoke ok ulus buwyak AK acraqw.
OM Ulnagr kusuy: Noa uphogrey eq OF estebt pawu dguc OBPiq Czahwaw, zdak omhikqac ij os xotijecki nim ud Anlilw Isrkax AG inyumiodda.
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.