{"id":1262,"date":"2014-09-08T21:16:00","date_gmt":"2014-09-08T21:16:00","guid":{"rendered":"http:\/\/www.spellcasterstudios.com\/?p=1262"},"modified":"2014-09-05T17:22:26","modified_gmt":"2014-09-05T17:22:26","slug":"finished-the-tentacle-shader","status":"publish","type":"post","link":"https:\/\/www.spellcasterstudios.com\/?p=1262","title":{"rendered":"Finished the &ldquo;tentacle&rdquo; shader"},"content":{"rendered":"<p align=\"justify\">Finally!<\/p>\n<p align=\"justify\">Had to give up on the idea of using a ray-marching style algorithm, or most of the algorithms that generated the texture on the fly\u2026 The amount of iterations most of them require would require a high-end machine, and then I\u2019d need to have a fallback, etc\u2026<\/p>\n<p align=\"justify\">For such a low tech game, I think it would have been a waste of time, so I fell back into using a plane and some nifty animation effects in the UV mapping\u2026 The end result:<\/p>\n<p align=\"justify\"><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/09\/screen220.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen220\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"screen220\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/09\/screen220_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p align=\"justify\">As usual, it\u2019s much more interesting while moving! <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none\" alt=\"Smile\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2014\/09\/wlEmoticon-smile3.png\" \/><\/p>\n<p align=\"justify\">Next step, to animate this\u2026 Won\u2019t be pretty, I think\u2026<\/p>\n<p align=\"justify\"><em>Now listening to \u201cMagnisphyricon\u201d by \u201cSons of Seasons\u201d<\/em><\/p>\n<p align=\"justify\"><em>Link of the Day: Most of the shaders I found while learning how to make raymarching shaders was GLSL, and since I\u2019m currently still using D3D9 I went looking for something to convert from GLSL to HLSL\u2026 Didn\u2019t find it (ended up not needing it, it\u2019s similar enough to take the educational value), but found a HLSL to GLSL converter, which some might find useful: <a title=\"https:\/\/github.com\/Thekla\/hlslparser\" href=\"https:\/\/github.com\/Thekla\/hlslparser\">https:\/\/github.com\/Thekla\/hlslparser<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally! Had to give up on the idea of using a ray-marching style algorithm, or most of the algorithms that generated the texture on the fly\u2026 The amount of iterations most of them require would require a high-end machine, and then I\u2019d need to have a fallback, etc\u2026 For such a low tech game, I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3,147],"tags":[77],"class_list":["post-1262","post","type-post","status-publish","format-standard","hentry","category-art","category-development","category-chrome-hunter","tag-effect"],"_links":{"self":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1262"}],"version-history":[{"count":1,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1263,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/1262\/revisions\/1263"}],"wp:attachment":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}