{"id":973,"date":"2022-02-07T02:29:55","date_gmt":"2022-02-07T02:29:55","guid":{"rendered":"https:\/\/lucyestela.com\/dev\/?p=973"},"modified":"2022-03-16T23:18:02","modified_gmt":"2022-03-16T23:18:02","slug":"a-trick-to-stop-your-metahuman-crashing-your-hololens2","status":"publish","type":"post","link":"https:\/\/lucyestela.com\/dev\/unreal\/a-trick-to-stop-your-metahuman-crashing-your-hololens2\/","title":{"rendered":"A Trick to stop your Metahuman crashing your Hololens2"},"content":{"rendered":"<div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<p class=\"\">When I first started importing my Metahuman into my Unreal file and pixel streaming it to the Hololens 2, it would crash seemingly randomly. If I had my Metahuman in front of the PlayerStart on load, then it crashed instantly. If I had my Metahuman load behind me and I had to turn to look at it, then it would load but as soon as I walked towards it, it would crash. If I placed it further away it wouldn&#8217;t crash, but then I couldn&#8217;t walk up close to it.<\/p>\n<p class=\"\">So I did a quick experiment where I hid every part of the Metahuman&nbsp; &#8211; no crash &#8211; and then introduced elements back one by one. Other developers probably already knew this, but I discovered that it was the hair elements making it crash.<\/p>\n<p class=\"\">Now Metahumans having hair in general is ok, it was when it was switching between LODs that it crashed, so I realised then pretty quickly that it was when switching between a low LOD (when I was far away) to a high LOD (when I walked up close).<\/p>\n<p class=\"\">This might change when the full official release of Metahumans and Unreal 5 is released, but for the time being I just need to learn as much as I can about Unreal, Metahumans and Hololens development. So I have a solution that will let me continue on, and to be honest the rendering of the Metahumans is still pretty darn nice. I mean when I get close, I keep expecting them to give me a sidelong glance.<\/p>\n<p class=\"\">So, if you just want a quick fix this is what I did. You can go into more research about the LODs later and mess about more closely with those once you get it to stop crashing.<\/p>\n<p class=\"\">So &#8211; Groom Assets are what you want to tweak.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-974 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1.jpg\" alt=\"\" width=\"1048\" height=\"437\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1.jpg 1048w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-300x125.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-1024x427.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-768x320.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-250x104.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-550x229.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-800x334.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-432x180.jpg 432w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom1-719x300.jpg 719w\" sizes=\"auto, (max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Start with Hair &#8211; in the LODs details, every Geometry Type dropdown where it says&nbsp; <strong>Strands<\/strong>, change it to <strong>Cards.<\/strong><\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-975 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2.jpg\" alt=\"\" width=\"1458\" height=\"1093\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2.jpg 1458w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-300x225.jpg 300w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-1024x768.jpg 1024w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-768x576.jpg 768w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-250x187.jpg 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-550x412.jpg 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-800x600.jpg 800w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-240x180.jpg 240w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-400x300.jpg 400w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/03\/groom2-667x500.jpg 667w\" sizes=\"auto, (max-width: 1458px) 100vw, 1458px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p class=\"\">Do the same for the eyebrows.<\/p>\n<p class=\"\">Now I didn&#8217;t change the eyelashes because they disappeared when I did. But I did just hide the eyelashes for now.<\/p>\n<p class=\"\">Another thing I did was to limit the LODsync settings so that it wasn&#8217;t trying to switch between the levels while running. To do that go into the metahuman blueprint,&nbsp; and select LODSync<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1060 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSyncA-e1647472536160.png\" alt=\"\" width=\"389\" height=\"459\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSyncA-e1647472536160.png 389w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSyncA-e1647472536160-254x300.png 254w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSyncA-e1647472536160-250x295.png 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSyncA-e1647472536160-153x180.png 153w\" sizes=\"auto, (max-width: 389px) 100vw, 389px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p class=\"\">Then I limited the Num LODs (Sets the maximum number of available LODs that any component in the list can use. ) I didn&#8217;t want it flicking between levels so I set this to 1. Then I set the Forced LOD to 1.&nbsp;<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1061 size-full\" src=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898.png\" alt=\"\" width=\"631\" height=\"913\" srcset=\"https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898.png 631w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898-207x300.png 207w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898-250x362.png 250w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898-550x796.png 550w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898-124x180.png 124w, https:\/\/lucyestela.com\/dev\/wp-content\/uploads\/2022\/02\/LODSync-e1647472671898-346x500.png 346w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p class=\"\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"\" style=\"text-align: center;\">But still it stopped crashing in the Hololens 2 and that was my objective.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When I first started importing my Metahuman into my Unreal file and pixel streaming it to the Hololens 2, it would crash seemingly randomly. If I had my Metahuman in front of the PlayerStart on load, then it crashed instantly. If I had my Metahuman load behind me and I had to turn to look &#8230; <a title=\"A Trick to stop your Metahuman crashing your Hololens2\" class=\"read-more\" href=\"https:\/\/lucyestela.com\/dev\/unreal\/a-trick-to-stop-your-metahuman-crashing-your-hololens2\/\" aria-label=\"More on A Trick to stop your Metahuman crashing your Hololens2\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[60,114,59],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","hentry","category-hololens-2","category-metahuman","category-unreal"],"_links":{"self":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/comments?post=973"}],"version-history":[{"count":5,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":1063,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/973\/revisions\/1063"}],"wp:attachment":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/media?parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/categories?post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/tags?post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}