{"id":1410,"date":"2025-05-15T09:26:56","date_gmt":"2025-05-15T09:26:56","guid":{"rendered":"https:\/\/sites.wsagames.com\/ib8g23\/?p=1410"},"modified":"2025-05-15T09:26:56","modified_gmt":"2025-05-15T09:26:56","slug":"mirror","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/ib8g23\/2025\/05\/15\/mirror\/","title":{"rendered":"Mirror"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When adding the mirror above the mantleshelf in Unity, I didn&#8217;t want to just add in a grey-blue texture and pretend it was a reflection &#8211; I wanted it to <em>function<\/em>. <br><br>I used <a href=\"https:\/\/www.youtube.com\/watch?v=g8tumVAgbB4\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=g8tumVAgbB4\">this tutorial<\/a>, making a plane and a child camera, giving it a custom render texture and added it under output in the camera inspector. Then I adjusted the camera and the plane until I could see properly!<br><br>The first time I did this, the player character rat was reflected in the mirror&#8217;s image. Unfortunately due to a merge conflict I had to get rid of my progress before the exhibition, and when I attempted it again afterwards, the rat no longer showed up in the reflection &#8211; even though the child who follows you does. I have no idea why this is, even after going through the tutorial a couple more times. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18-1024x609.png\" alt=\"\" class=\"wp-image-1411\" srcset=\"https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18-1024x609.png 1024w, https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18-300x178.png 300w, https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18-768x457.png 768w, https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18-1536x914.png 1536w, https:\/\/sites.wsagames.com\/ib8g23\/wp-content\/uploads\/sites\/7\/2025\/05\/image-18.png 1837w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When adding the mirror above the mantleshelf in Unity, I didn&#8217;t want to just add in a grey-blue texture and pretend it was a reflection &#8211; I wanted it to function. I used this tutorial, making a plane and a child camera, giving it a custom render texture and added it under output in the [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-1410","post","type-post","status-publish","format-standard","hentry","category-modelling"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/posts\/1410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/comments?post=1410"}],"version-history":[{"count":2,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":1413,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/posts\/1410\/revisions\/1413"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/ib8g23\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}