{"id":756,"date":"2012-04-21T13:37:11","date_gmt":"2012-04-21T12:37:11","guid":{"rendered":"http:\/\/shadowcovenant.com\/blog\/2012\/04\/21\/voxel-engine\/"},"modified":"2012-04-21T13:37:11","modified_gmt":"2012-04-21T12:37:11","slug":"voxel-engine","status":"publish","type":"post","link":"http:\/\/shadowcovenant.com\/blog\/2012\/04\/21\/voxel-engine\/","title":{"rendered":"Voxel engine"},"content":{"rendered":"<p>Just finished implementing a simple voxel engine\u2026<\/p>\n<p>Was complicated getting all the conditions working properly, specially because I was trying to get some subdivision code working properly in the process, as you can see below\u2026 For the record, the image below should only be a plane at the bottom\u2026 <img decoding=\"async\" style=\"border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none\" class=\"wlEmoticon wlEmoticon-smile\" alt=\"Smile\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/wlEmoticon-smile1.png\" \/><\/p>\n<p><a href=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/voxel01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"voxel01\" border=\"0\" alt=\"voxel01\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/voxel01_thumb.jpg\" width=\"469\" height=\"364\" \/><\/a><\/p>\n<p>The full rebuild process is a bit slow yet (at least in debug mode), but I\u2019ll optimize it later if it warrants.<\/p>\n<p>Anyway, it works now:<\/p>\n<p><a href=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/voxel02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"voxel02\" border=\"0\" alt=\"voxel02\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/voxel02_thumb.jpg\" width=\"466\" height=\"362\" \/><\/a><\/p>\n<p>That\u2019s just a random \u201cheight-field\u201d.<\/p>\n<p>Now I need to add different materials\u2026<\/p>\n<p>Still hoping inspiration hits me\u2026 <img decoding=\"async\" style=\"border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none\" class=\"wlEmoticon wlEmoticon-openmouthedsmile\" alt=\"Open-mouthed smile\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2012\/04\/wlEmoticon-openmouthedsmile.png\" \/><\/p>\n<div id=\"tweetbutton756\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2012%2F04%2F21%2Fvoxel-engine%2F&amp;text=Voxel%20engine&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2012%2F04%2F21%2Fvoxel-engine%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Just finished implementing a simple voxel engine\u2026 Was complicated getting all the conditions working properly, specially because I was trying to get some subdivision code working properly in the process, as you can see below\u2026 For the record, the image below should only be a plane at the bottom\u2026 The full rebuild process is a [&hellip;]<\/p>\n<div id=\"tweetbutton756\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2012%2F04%2F21%2Fvoxel-engine%2F&amp;text=Voxel%20engine&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2012%2F04%2F21%2Fvoxel-engine%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,6,29],"tags":[],"class_list":["post-756","post","type-post","status-publish","format-standard","hentry","category-development","category-games","category-ludumdare"],"_links":{"self":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":0,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"wp:attachment":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}