{"id":2420,"date":"2015-04-09T20:44:00","date_gmt":"2015-04-09T20:44:00","guid":{"rendered":"http:\/\/www.spellcasterstudios.com\/?p=2420"},"modified":"2015-03-31T13:48:41","modified_gmt":"2015-03-31T13:48:41","slug":"ice-planet-work","status":"publish","type":"post","link":"https:\/\/www.spellcasterstudios.com\/?p=2420","title":{"rendered":"Ice planet work"},"content":{"rendered":"<p align=\"justify\">Today I\u2019m working on the ice planet polish\u2026<\/p>\n<p align=\"justify\">First I wanted to make an ice shader, which means a reflection\u2026 Best way to get a cheap reflection is to use a prebaked cube map, but for that I have to add support for cube maps on Cantrip\u2026 For Direct3D, that\u2019s already done, for OpenGL maybe tomorrow\u2026<\/p>\n<p align=\"justify\">The shader just mixes the base texture of the ice with the lookup of the cubemap, and modulate both of them based on the alpha of the base texture (so we have more reflective areas than others)\u2026 I may add some sort of perturbation to the normal map, but I think that might be overkill for the purpose\u2026<\/p>\n<p align=\"justify\">Adding snow was pretty easy as well, as well as grass:<\/p>\n<p align=\"justify\"><a href=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/03\/screen531.jpg\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" title=\"screen531\" 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=\"screen531\" src=\"http:\/\/www.spellcasterstudios.com\/wp-content\/uploads\/2015\/03\/screen531_thumb.jpg\" width=\"830\" height=\"482\" \/><\/a><\/p>\n<p>Now I need to finish the skybox (the reflection is an overcast sky, so it should match), add scorch marks to the ice (it currently behaves like water, with a spray), and port all of this to OpenGL\u2026 A lot of work, but it\u2019s going nicely\u2026<\/p>\n<p><em>Now listening to \u201cKi\u201d by \u201cDevin Townsend\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I\u2019m working on the ice planet polish\u2026 First I wanted to make an ice shader, which means a reflection\u2026 Best way to get a cheap reflection is to use a prebaked cube map, but for that I have to add support for cube maps on Cantrip\u2026 For Direct3D, that\u2019s already done, for OpenGL maybe [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,147,8],"tags":[114,242],"class_list":["post-2420","post","type-post","status-publish","format-standard","hentry","category-development","category-chrome-hunter","category-technology","tag-ice","tag-polish"],"_links":{"self":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/2420","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=2420"}],"version-history":[{"count":1,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/2420\/revisions"}],"predecessor-version":[{"id":2421,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=\/wp\/v2\/posts\/2420\/revisions\/2421"}],"wp:attachment":[{"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spellcasterstudios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}