{"id":25971,"date":"2015-02-18T18:45:47","date_gmt":"2015-02-18T23:45:47","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=25971"},"modified":"2015-02-18T18:45:47","modified_gmt":"2015-02-18T23:45:47","slug":"half-life-2-episode-1-ep6-the-room-of-sadness","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=25971","title":{"rendered":"Half Life 2 Episode 1 EP6: The Room of Sadness"},"content":{"rendered":"<p><table class='nomargin' cellspacing='0' width='100%' cellpadding='0' align='center' border='0'><tr><td><iframe loading=\"lazy\" width=\"1024\" height=\"576\" src=\"https:\/\/www.youtube.com\/embed\/NXYumcXREXM\" frameborder=\"0\" allowfullscreen class=\"embed\"><\/iframe><br\/><small><a href='http:\/\/www.youtube.com\/watch?v=NXYumcXREXM'>Link (YouTube)<\/a><\/small><\/td><\/tr><\/table><\/p>\n<p>At the two minute mark Josh says, &#8220;What&#8217;s up with the lighting on this thing?&#8221; He&#8217;s looking at a closed door that mysteriously has bright light flowing through it. The image doesn&#8217;t make sense until the zombie breaks the door. I know Chris already explained it a bit, but let me go over it in more detail:<\/p>\n<p>This is a side-effect of the old 1990&#8217;s style baked-in lightmaps. Computers weren&#8217;t fast enough to recalculate lights on the fly, so the shadows are calculated by the artist before the game ships. This means the shadows can&#8217;t move. The shadows that do move &#8211; the shadows cast by the NPCs and objects in the scene &#8211; use a completely different technology. As Alyx walks around, the game picks the nearest light source and creates a silhouette of her from the viewpoint of that light. It then projects that silhouette onto the ground<span class='snote' title='1'>It might do this for the nearest two or three light sources, depending on the game and your graphics settings.<\/span>. The drawback is that these shadows don&#8217;t really match the baked-in shadows. They&#8217;re crisper, and so the shadows cast by the level geometry (walls and floors and such) look blurry by comparison. <\/p>\n<p>Also, the two different lighting systems don&#8217;t react to each other properly. If I&#8217;m standing under the midday sun, then I&#8217;ll have a shadow at my feet. If I step under an umbrella, then my shadow will vanish behind the shadow on the umbrella. But Alyx&#8217;s shadow doesn&#8217;t work that way. It&#8217;s always there, regardless of where she&#8217;s standing in relation to the light. <\/p>\n<p>This was why Carmack was so excited about the idea of &#8220;unified lighting&#8221; in Doom 3. There was no longer one system of lighting for the level and another for all the characters and props. There was one lighting system shared by everything, and it all worked together.<\/p>\n<p>Half-Life 2 has aged really well, but I guess there&#8217;s limits on everything. It was 2006 when this game came out, and its lighting model was already pretty far out of date. Valve wouldn&#8217;t really solve this issue for good until Portal 2, five years later.<\/p>\n<p>Also, while Valve does seem to love their seesaw puzzles a little too much, I just can&#8217;t bring myself to get mad about them in a world where Ubisoft makes me climb a hundred and fifty identical towers in every stupid game. <\/p>\n<p>The next episode is the end of Episode One. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Link (YouTube) At the two minute mark Josh says, &#8220;What&#8217;s up with the lighting on this thing?&#8221; He&#8217;s looking at a closed door that mysteriously has bright light flowing through it. The image doesn&#8217;t make sense until the zombie breaks the door. I know Chris already explained it a bit, but let me go over [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[188],"tags":[23],"class_list":["post-25971","post","type-post","status-publish","format-standard","hentry","category-spoilerwarning","tag-half-life"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/25971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25971"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/25971\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}