{"id":1477,"date":"2011-10-02T22:28:25","date_gmt":"2011-10-02T21:28:25","guid":{"rendered":"http:\/\/positech.co.uk\/cliffsblog\/?p=1477"},"modified":"2011-10-02T22:29:38","modified_gmt":"2011-10-02T21:29:38","slug":"shadow-maps-make-me-happy","status":"publish","type":"post","link":"https:\/\/www.positech.co.uk\/cliffsblog\/2011\/10\/02\/shadow-maps-make-me-happy\/","title":{"rendered":"Shadow maps make me happy"},"content":{"rendered":"<p>I&#8217;ve been watching some WW2 footage, some war movies, some video game footage, etc, in a bid to up the visuals in GTB. A lot of it can&#8217;t be seen in a screenshot, it&#8217;s moving-picture stuff really. UI&#8217;ve also been re-visiting how I make the shadow maps, and massively boosting their resolution. What PC&#8217;s can&#8217;t handle a 2048 square texture these days? None, I suspect.<\/p>\n<p style=\"text-align: center;\">Anyway here is a very sparse GTB screenshot:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/with_shadowmap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1478\" title=\"with_shadowmap\" src=\"http:\/\/positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/with_shadowmap.jpg\" alt=\"\" width=\"600\" height=\"375\" srcset=\"https:\/\/www.positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/with_shadowmap.jpg 600w, https:\/\/www.positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/with_shadowmap-300x187.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">And here is the same frame, but without the shadowmap.<\/p>\n<p align=\"center\">\n<a href=\"http:\/\/positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/without_shadowmap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1479\" title=\"without_shadowmap\" src=\"http:\/\/positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/without_shadowmap.jpg\" alt=\"\" width=\"600\" height=\"375\" srcset=\"https:\/\/www.positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/without_shadowmap.jpg 600w, https:\/\/www.positech.co.uk\/cliffsblog\/wp-content\/uploads\/2011\/10\/without_shadowmap-300x187.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>I think the shadowmap wins by a huge margin. (It&#8217;s more apparent full screen, when moving and zooming etc. Combining a grayscale shadowmap with tileable textures not only makes it look less 2D, but it also means you can detect the repeating tile patterns a lot less. I am using a tile-based system to afford easy level design for players. I&#8217;m also toying with the idea of automatically generating the shadow maps from the player-designed paths. I think it&#8217;s quite doable, although non trivial, and better than expecting players to use photoshop etc.<\/p>\n<p>Comments?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been watching some WW2 footage, some war movies, some video game footage, etc, in a bid to up the visuals in GTB. A lot of it can&#8217;t be seen in a screenshot, it&#8217;s moving-picture stuff really. UI&#8217;ve also been re-visiting how I make the shadow maps, and massively boosting their resolution. What PC&#8217;s can&#8217;t<\/p>\n<p class=\"text-right\"><span class=\"screen-reader-text\">Continue Reading&#8230; Shadow maps make me happy<\/span><a class=\"btn btn-secondary continue-reading\" href=\"https:\/\/www.positech.co.uk\/cliffsblog\/2011\/10\/02\/shadow-maps-make-me-happy\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[114,4],"tags":[],"class_list":["post-1477","post","type-post","status-publish","format-standard","hentry","category-gratuitous-tank-battles","category-programming"],"_links":{"self":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/1477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/comments?post=1477"}],"version-history":[{"count":2,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/1477\/revisions"}],"predecessor-version":[{"id":1481,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/posts\/1477\/revisions\/1481"}],"wp:attachment":[{"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/media?parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/categories?post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.positech.co.uk\/cliffsblog\/wp-json\/wp\/v2\/tags?post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}