{"id":28,"date":"2014-05-12T06:05:07","date_gmt":"2014-05-12T06:05:07","guid":{"rendered":"https:\/\/blogs.scummvm.org\/lukaslw\/?p=28"},"modified":"2022-05-22T06:07:34","modified_gmt":"2022-05-22T06:07:34","slug":"heros-shadow-drawing","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/lukaslw\/2014\/05\/12\/heros-shadow-drawing\/","title":{"rendered":"Hero\u2019s shadow drawing"},"content":{"rendered":"<p>So here we have next weekly update:<\/p>\n<p>I finally made progress with shadow drawing last night. Position of hero\u2019s shadow is changing in different locations and shape of the shadow depends on a hero position right now. Shadow is also correctly zooming when hero is resizing. I also manage to fix some memory leak problems in this functions.<\/p>\n<p>I still have problems with shadow color palette so I\u2019m using black color to fill the shadows and to check if the shape is good. There is a part of code that needs to be implemented that allows to change the shadow\u2019s shape when it\u2019s drawing on a wall of a building and I\u2019m going to work on this part right now. Actual code still needs some tweaks and clean up which I\u2019m also going to do this week.<\/p>\n<figure id=\"attachment_30\" aria-describedby=\"caption-attachment-30\" style=\"width: 580px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-30\" src=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1-1024x380.jpg\" alt=\"\" width=\"580\" height=\"215\" srcset=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1-1024x380.jpg 1024w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1-300x111.jpg 300w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1-768x285.jpg 768w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1-1200x445.jpg 1200w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1.jpg 1295w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><figcaption id=\"caption-attachment-30\" class=\"wp-caption-text\">ScummVM (left) \/ Original game (right)<br \/>Location no. 1<\/figcaption><\/figure>\n<figure id=\"attachment_31\" aria-describedby=\"caption-attachment-31\" style=\"width: 580px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-31\" src=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2-1024x381.jpg\" alt=\"\" width=\"580\" height=\"216\" srcset=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2-1024x381.jpg 1024w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2-300x112.jpg 300w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2-768x286.jpg 768w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2-1200x447.jpg 1200w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2.jpg 1297w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><figcaption id=\"caption-attachment-31\" class=\"wp-caption-text\">ScummVM (left) \/ Original game (right)<br \/>Location no. 2<\/figcaption><\/figure>\n<figure id=\"attachment_32\" aria-describedby=\"caption-attachment-32\" style=\"width: 580px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-32\" src=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7-1024x379.jpg\" alt=\"\" width=\"580\" height=\"215\" srcset=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7-1024x379.jpg 1024w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7-300x111.jpg 300w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7-768x285.jpg 768w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7-1200x445.jpg 1200w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc7.jpg 1290w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><figcaption id=\"caption-attachment-32\" class=\"wp-caption-text\">ScummVM (left) \/ Original game (right)<br \/>Location no. 7<\/figcaption><\/figure>\n<figure id=\"attachment_33\" aria-describedby=\"caption-attachment-33\" style=\"width: 654px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1_bad_palette.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-33\" src=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1_bad_palette.jpg\" alt=\"\" width=\"654\" height=\"514\" srcset=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1_bad_palette.jpg 654w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc1_bad_palette-300x236.jpg 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/a><figcaption id=\"caption-attachment-33\" class=\"wp-caption-text\">My actual shadow palette &#8211; loc no. 1<\/figcaption><\/figure>\n<figure id=\"attachment_34\" aria-describedby=\"caption-attachment-34\" style=\"width: 649px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2_bad_palette.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-34\" src=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2_bad_palette.jpg\" alt=\"\" width=\"649\" height=\"510\" srcset=\"https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2_bad_palette.jpg 649w, https:\/\/blogs.scummvm.org\/lukaslw\/wp-content\/uploads\/sites\/27\/2014\/05\/loc2_bad_palette-300x236.jpg 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a><figcaption id=\"caption-attachment-34\" class=\"wp-caption-text\">My actual shadow palette &#8211; loc no. 2<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>So here we have next weekly update: I finally made progress with shadow drawing last night. Position of hero\u2019s shadow is changing in different locations and shape of the shadow depends on a hero position right now. Shadow is also correctly zooming when hero is resizing. I also manage to fix some memory leak problems [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/posts\/28\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/lukaslw\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}