{"id":401,"date":"2011-04-30T15:01:07","date_gmt":"2011-04-30T14:01:07","guid":{"rendered":"http:\/\/shadowcovenant.com\/blog\/?p=401"},"modified":"2011-04-30T21:46:58","modified_gmt":"2011-04-30T20:46:58","slug":"level-loading-and-rendering","status":"publish","type":"post","link":"http:\/\/shadowcovenant.com\/blog\/2011\/04\/30\/level-loading-and-rendering\/","title":{"rendered":"Level loading and rendering&#8230;"},"content":{"rendered":"<div>\n<p>This is not going too well, loads of small things in the 3d system going wrong (why do I insist on trying 3d for this!!!!)\u2026 this one ended up just being a small problem in the redundant renderstates checking (was initializing the value with the wrong number)\u2026<\/p>\n<p>Anyway, I can now load a level from a DDS file:<\/p>\n<p><a rel=\"attachment wp-att-46952\" href=\"http:\/\/shadowcovenant.com\/blog\/?attachment_id=46952\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/04\/TestLevel.jpg\" alt=\"\" width=\"32\" height=\"32\" \/><\/a><\/p>\n<p>And create level geometry\u2026 already had the idea of having just one huge level (works well with my idea) so I already prepared this so it has some clustering done (NxN blocks per mesh, so I can do culling easily)\u2026<\/p>\n<p><a rel=\"attachment wp-att-46955\" href=\"http:\/\/shadowcovenant.com\/blog\/?attachment_id=46955\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/04\/screen01-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" \/><\/a><\/p>\n<p>Also added texturing so this doesn\u2019t look so ugly\u2026 Only use one texture for the whole level, but it has a kind of atlas that I can setup easily:<\/p>\n<p><a rel=\"attachment wp-att-46960\" href=\"http:\/\/shadowcovenant.com\/blog\/?attachment_id=46960\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2011\/04\/screen02-300x234.jpg\" alt=\"\" width=\"300\" height=\"234\" \/><\/a><\/p>\n<p>My graphic skills suck so badly\u2026<\/p>\n<p>I\u2019m having 3d billboard as \u201ccharacters\u201d in the game, so no modelling is required\u2026<\/p>\n<p>So, my current task list is:<\/p>\n<ul>\n<li><del>Framework working<\/del><\/li>\n<li><del>Loading a level data (from a DDS image)<\/del><\/li>\n<li><del>Rendering the level (3d generated from the level data)<\/del><\/li>\n<li>Drawing the character<\/li>\n<li>Rendering character<\/li>\n<li>Design levels\/items so I know what to implement<\/li>\n<li>\u2026.<\/li>\n<\/ul>\n<p>Now I need to get a story going, so I know what to draw as a main character\u2026<\/p>\n<\/div>\n<div id=\"tweetbutton401\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2011%2F04%2F30%2Flevel-loading-and-rendering%2F&amp;text=Level%20loading%20and%20rendering%26%238230%3B&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2011%2F04%2F30%2Flevel-loading-and-rendering%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>This is not going too well, loads of small things in the 3d system going wrong (why do I insist on trying 3d for this!!!!)\u2026 this one ended up just being a small problem in the redundant renderstates checking (was initializing the value with the wrong number)\u2026 Anyway, I can now load a level from [&hellip;]<\/p>\n<div id=\"tweetbutton401\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2011%2F04%2F30%2Flevel-loading-and-rendering%2F&amp;text=Level%20loading%20and%20rendering%26%238230%3B&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2011%2F04%2F30%2Flevel-loading-and-rendering%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-401","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\/401","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=401"}],"version-history":[{"count":4,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions"}],"predecessor-version":[{"id":419,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions\/419"}],"wp:attachment":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/media?parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/categories?post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/tags?post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}