{"id":523,"date":"2011-03-18T05:59:52","date_gmt":"2011-03-18T12:59:52","guid":{"rendered":"http:\/\/www.shadowdawngenesis.com\/devblog\/?p=523"},"modified":"2015-12-17T16:54:50","modified_gmt":"2015-12-18T00:54:50","slug":"revisiting-the-graphics-engine","status":"publish","type":"post","link":"https:\/\/www.shadowdawngenesis.com\/devblog\/?p=523","title":{"rendered":"Revisiting the Graphics Engine"},"content":{"rendered":"<figure id=\"attachment_524\" aria-describedby=\"caption-attachment-524\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.shadowdawngenesis.com\/devblog\/wp-content\/upLoads\/2011\/03\/shadowdawn-screenshot-74.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-524\" title=\"shadowdawn screenshot 74\" src=\"http:\/\/www.shadowdawngenesis.com\/devblog\/wp-content\/upLoads\/2011\/03\/shadowdawn-screenshot-74-1024x576.jpg\" alt=\"Arashi standing in tiled water\" width=\"600\" height=\"337\" srcset=\"https:\/\/www.shadowdawngenesis.com\/devblog\/wp-content\/upLoads\/2011\/03\/shadowdawn-screenshot-74-1024x576.jpg 1024w, https:\/\/www.shadowdawngenesis.com\/devblog\/wp-content\/upLoads\/2011\/03\/shadowdawn-screenshot-74-300x168.jpg 300w, https:\/\/www.shadowdawngenesis.com\/devblog\/wp-content\/upLoads\/2011\/03\/shadowdawn-screenshot-74.jpg 1280w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-524\" class=\"wp-caption-text\">Arashi standing in tiled water<\/figcaption><\/figure>\n<p>Several months\u00a0ago I discussed my issues with the water engine and how I wanted it to look, but failed completely.\u00a0 I decided this week it was time I came back to it after abandoning the direction I was going and tried an entirely\u00a0new method &#8211; one that I wasn&#8217;t sure I even had the ability to program.\u00a0 This time, I had to learn a bit about alpha masking to create a proper refraction effect, along with proper &#8220;render target&#8221; settings.\u00a0\u00a0I&#8217;m still not quite sure if this is exactly what I want, but it&#8217;s closer at the very least.\u00a0 One thing I am really going for is the fact water isn&#8217;t usually blue on its own, it is merely reflecting the sky.\u00a0 To make a truly great-looking water effect requires many layers of graphics than I realized and my poor ancient computer can barely keep up with the code, but with a bit more of a push this will probably be the best looking effect in the game.\u00a0 At least in its current state, I&#8217;m much happier than where it was before!\u00a0 I may tint the water a bit more vibrantly, but we&#8217;ll see how things go once I add the sun\/moonlight layer tonight.<\/p>\n<p>I also had to re-code the particle generator engine earlier this week to accommodate skills.\u00a0 The variables used in generating particles were a bit too static, and there was no depth sorting or directional motion, all things I needed to gut out of the old design and rebuild.\u00a0 One of my goals for the upcoming demo\/playtest is to have at least the three &#8220;Basic&#8221; level skills available for players to experiment with by the time they get to the first boss, and with Blade Spark fully coded (including its variations), I&#8217;m 1\/3 of the way there!\u00a0 I probably need to paint the back-burst effect a bit more thickly, but otherwise I really like how the shockwave of Blade Spark looks in motion \ud83d\ude42<\/p>\n<p>Hopefully this weekend I can focus on more animations, and I <em>really<\/em> need to paint some more map items, I&#8217;m still missing a lot of variety in rocks and other loose forest-y items like twigs and small plants.\u00a0 The more variety in objects to decorate the map with, the\u00a0more &#8220;alive&#8221; the maps\u00a0will look \ud83d\ude42 Plus, I need to start plotting out the other sections of the Kasumi Forest, so I can really get this demo done, so I&#8217;ll need some way to give each submap its own personality.<\/p>\n<div name=\"googleone_share_1\" style=\"position:relative;z-index:5;float: right; margin-left: 10px;\"><g:plusone size=\"tall\" count=\"1\" href=\"https:\/\/www.shadowdawngenesis.com\/devblog\/?p=523\"><\/g:plusone><\/div>","protected":false},"excerpt":{"rendered":"<p>Several months\u00a0ago I discussed my issues with the water engine and how I wanted it to look, but failed completely.\u00a0 I decided this week it<a class=\"moretag\" href=\"https:\/\/www.shadowdawngenesis.com\/devblog\/?p=523\"> [&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39,27,21,78,25,7,6,18,80,110,13,70,17,153,309,154,4,84,152,151,35,15,33,90,67],"class_list":["post-523","post","type-post","status-publish","format-standard","hentry","category-game-development","tag-2d-animation","tag-2d-tiles","tag-action","tag-action-rpg","tag-arashi","tag-development","tag-game","tag-independent","tag-indie-game","tag-indie-rpg","tag-jrpg","tag-lighting","tag-pc","tag-refraction","tag-rpg","tag-shader","tag-shadowdawn","tag-shadowdawn-genesis","tag-tiled-water","tag-water","tag-weather","tag-xbox-360","tag-xbox-live","tag-xbox-live-indie-games","tag-xna"],"_links":{"self":[{"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts\/523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=523"}],"version-history":[{"count":0,"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts\/523\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shadowdawngenesis.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}