{"id":1092,"date":"2022-04-20T22:30:48","date_gmt":"2022-04-21T02:30:48","guid":{"rendered":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/?p=1092"},"modified":"2022-04-20T22:30:48","modified_gmt":"2022-04-21T02:30:48","slug":"ar-project-struggles","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/lmazza\/ar-project-struggles\/","title":{"rendered":"AR Project Struggles"},"content":{"rendered":"\n<p>For my AR project, I decided to use Unreal and build it for mobile android devices which was a bit of an experience. <\/p>\n\n\n\n<p>I thought I was doing a good thing by updating everything at once for android building since I already had to update due to my phone updating android versions since the last time I built to it. Turns out that was a mistake. As of writing this, the two latest SDK build tools are broken for Unreal development and I was only able to figure that out by digging through a wall of the build output information as it was not an error that gets highlighted in red. The other android related issues I had were fixed by playing around with and looking up information related to the android and SDK, NDK, etc. settings. Luckily, learning all of this also was part of my practice intentions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/androidNo.png\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"203\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/androidNo.png\" alt=\"\" class=\"wp-image-1095\" \/><\/a><\/figure>\n\n\n\n<p>The other major bug I had was related to the image quality. To use the image tracking with ARCore, the candidate image, which is the image to be tracked, needs to have a resolution of 300 dpi. Every image I had been trying to use did not have that resolution. I ended up just searching for a random image of this resolution and found this wolf image that I used for my AR testing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/300dpi-Bild.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"400\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/300dpi-Bild.jpg\" alt=\"\" class=\"wp-image-1093\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/300dpi-Bild.jpg 400w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/300dpi-Bild-150x150.jpg 150w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/300dpi-Bild-300x300.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/figure>\n\n\n\n<p>After much frustration, saying I&#8217;m giving up but then coming back to it, and bug fixing, I finally got the object to appear. And yes, it was only at this point that I realized I had forgotten to import the textures into the project. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1.jpg\" alt=\"\" class=\"wp-image-1094\" width=\"417\" height=\"478\" srcset=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1.jpg 872w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1-697x800.jpg 697w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1-768x882.jpg 768w, https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-content\/uploads\/sites\/22\/2022\/04\/OopsNoTextures1-261x300.jpg 261w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/a><\/figure>\n\n\n\n<p>With the AR up and running, this now allows me to use the full power of Unreal and the ARCore library to bring the chaos to life which I plan to continue on with for my final project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For my AR project, I decided to use Unreal and build it for mobile android devices which was a bit of an experience. I thought I was doing a good thing by updating everything at once for android building since I already had to update due to my phone updating android versions since the last&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/lmazza\/ar-project-struggles\/\">Read More<\/a><\/div>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1092","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/1092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/comments?post=1092"}],"version-history":[{"count":1,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/posts\/1092\/revisions\/1096"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/media?parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/categories?post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/imgd-fundamentals-22\/wp-json\/wp\/v2\/tags?post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}