{"id":10459,"date":"2011-01-21T14:40:59","date_gmt":"2011-01-21T19:40:59","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=10459"},"modified":"2011-01-21T14:42:37","modified_gmt":"2011-01-21T19:42:37","slug":"lets-code-part-8-9","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=10459","title":{"rendered":"Let&#8217;s Code Part 8 &#038; 9"},"content":{"rendered":"<p>The Craft of Craftcraft project continues.  Here is <a href=\"http:\/\/www.sea-of-memes.com\/LetsCode8\/LetsCode8.html\">part 8<\/a>, which is followed, according to the ancient traditions, by <a href=\"http:\/\/www.sea-of-memes.com\/LetsCode9\/LetsCode9.html\">part 9<\/a>.  My own coding work has been shelved.  I <em>really<\/em> want to get back to it, but the time just isn&#8217;t there right now. So I&#8217;m living vicariously through Michael&#8217;s work.<\/p>\n<p>I think it&#8217;s really interesting what he&#8217;s doing.  He&#8217;s doing a Minecraft-like game, but the &#8220;world&#8221; is actually a series of asteroids floating in space.  <\/p>\n<p>Goodfellow has been doing just fine without my advice, but I thought I&#8217;d throw some out there and do a little armchair game design.  This is probably more for my benefit than his, but verbal restraint is a cross-class skill for me&#8230;<\/p>\n<p><!--more--><\/p>\n<h3>The Horizon<\/h3>\n<p>If this was my game, I&#8217;d want a horizon to give a sense of orientation and break up the visual monotony of the sky.  EVE online does this with ridiculous and unrealistic nebulae.  It even draws the nearby sun with a huge horizontal lens flare to approximate the horizon.  It looks fantastic.  It can also help orient you visually.  &#8220;North&#8221; is the red clouds and &#8220;south&#8221; is the cyan \/ purple clouds, and so on.  His idea for setting it in a planetary ring \/ asteroid belt is a good way of accomplishing all of this, although he&#8217;s still working on making it look right.<\/p>\n<p>(You could even take this one step further and have these asteroids appear to float around a planet.  White clouds below.  Blue sky above. It would explain the presence of gravity and atmosphere. This would make the rocks easier to make out against the sky. (Right now they are hard to spot.)   The downside is that the current &#8220;space&#8221; look is very unique and there&#8217;s no real reason to abandon it.)<\/p>\n<h3>Plant Life<\/h3>\n<p>Michael introduces the idea of plants.  (Ferns, bushes, grass, whatever.)  This is something I think is really missing from Minecraft.  Of course, once you add this, people will want to do landscaping.  They will want to remove some plants.  Move others.  Cultivate ones they like and uproot ones they don&#8217;t.  That adds a lot of complexity, as well as gameplay. Minecraft has, basically, two flowers and two mushrooms, and you can only find them &#8211; you can&#8217;t grow more on your own.  I really like the farming aspects of the game, and I&#8217;d love a game that featured more of that.<\/p>\n<h3>Level of Detail<\/h3>\n<p>He&#8217;s talking about how to render the asteroids in the distance without needing to render EVERYTHING.  I have no idea how he&#8217;ll accomplish this.  Standard level-of detail-techniques will NOT work well with a block-style world.  The blocks ARE the detail, and merging them will make a mess of things, I think.  (Consider: Players are going to want to build bridges between these, even if you give them other modes of transport.  How do you detail-reduce a single-bock walkway that stretches on hundreds of meters, without simply obliterating it? The way people build in these games will lead to worst-case-scenario structures on a regular basis.) <\/p>\n<p>This is a problem that not even Mincraft author <a href=\"http:\/\/notch.tumblr.com\/\">Notch<\/a> has solved.  Check out this screenshot from Minecraft:<\/p>\n<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/minecraft_xray.jpg' class='insetimage'   alt='minecraft_xray.jpg' title='minecraft_xray.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>Here I&#8217;m using a texture pack that makes stone block into windows, so you can see through walls.  I&#8217;m staring into a dead end tunnel here, with my nose just a short distance from the featureless wall.  Yet you can see the game is drawing, basically, everything.  It&#8217;s drawing the lava chambers in the distance.  A system of caves beyond that.  And up above, it&#8217;s drawing all of the terrain topside.  I have a sense that this is solvable, although I also sense that this is one of those problems that will be way harder than it seems like it should be.  <\/p>\n<p>And maybe it&#8217;s not worth solving.  From some vantage points, the game will need to draw this many polygons.  If the game can&#8217;t handle it, then the game won&#8217;t run right anyway.  You could spend a lot of time optimizing the game so that the framerate will sometimes skyrocket (like in my dead-end situation above) but it wouldn&#8217;t really make the overall game that much faster.  You could blow a week on a problem like this and discover that the overall benefit is minimal, situational, and only worthwhile to the bottom 10% of the machines running the game.  I don&#8217;t know.  I&#8217;ve never used an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Octree\">octree<\/a> (which is odd, given the work I&#8217;ve done in the past, but there you go) so I&#8217;m working on this in my head conceptually, which is a lot less useful than experience. <\/p>\n<p>And even if you found a solution that worked really well and was a great benefit in Minecraft, it might be useless on CoCC, because of the &#8220;open asteroid&#8221; design.  <\/p>\n<p>Interesting project.  Looking forward to seeing where this will go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Craft of Craftcraft project continues. Here is part 8, which is followed, according to the ancient traditions, by part 9. My own coding work has been shelved. I really want to get back to it, but the time just isn&#8217;t there right now. So I&#8217;m living vicariously through Michael&#8217;s work. I think it&#8217;s really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[],"class_list":["post-10459","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/10459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10459"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/10459\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}