{"author_name":"sinoth","cat":"LD #15 - Caverns - 2009","comments":[],"epoch":1251685440,"likes":0,"metadata":{"p_key":"72555","p_author":"sinoth","p_authorkey":"728","p_urlkey":"108377","p_title":"And the madness comes to an end","p_cat":"LD #15 - Caverns - 2009","p_event":"LD15","p_time":"1251685440","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"728","us_name":"sinoth","us_username":"sinoth","event_start":"1251417600","event_key":"1","event_name":"LD15"},"text":"<p>Well, couldn&#8217;t get a demo working in time.\u00a0 This is my second LD and my first fail.\u00a0 I&#8217;ll try to take away some of the sting by detailing what went wrong!<\/p>\n <p>I wanted a procedurally generated cavern that you could climb using a grappling hook.\u00a0 I wanted the grappling hook to be modeled as realistically as possible, so it would react like real rope and not stretch much, wrap around corners, etc.\u00a0 Turns out this is a pretty tough thing to do \ud83d\ude09<\/p>\n <p>I used the Bullet physics library because I&#8217;ve messed with it before, and also because I saw a demo for Softbody Rope which seemed exactly what I needed.\u00a0 Unfortunately, like EVERYTHING in that library, the rope was very sparsely documented.\u00a0 It took me almost 10 hours to get it working.\u00a0 This was something I hoped to get done in an hour or so.<\/p>\n <p><a href=\"http:\/\/sinoth.net\/img\/ld15_ss2.png\"><img class=\"aligncenter size-large wp-image-9737\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss2-550x425.png\" alt=\"ld15_ss2\" width=\"550\" height=\"425\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss2-300x232.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss2-550x425.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss2.png 1035w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n <p>Finally, at the end of my first day I got the rope behaving somewhat how I wanted.\u00a0 Good enough to proceed at least, so the second day I focused on cavern generation.\u00a0 I wanted to be able to create interesting geometry out of a huge block, so I decided to implement the &#8220;<a href=\"http:\/\/local.wasp.uwa.edu.au\/~pbourke\/geometry\/polygonise\/\">marching tetrahedrons<\/a>&#8221; algorithm for turning a volumetric dataset into polygons.\u00a0 This took longer than anticipated due to a silly small mistake that was hard to track down.\u00a0 It didn&#8217;t help that I was already bummed about losing so much time due to the rope issue \ud83d\ude1b<\/p>\n <p><a href=\"http:\/\/sinoth.net\/img\/ld15_ss.png\"><img class=\"aligncenter size-large wp-image-9735\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss-550x425.png\" alt=\"ld15_ss\" width=\"550\" height=\"425\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss-300x232.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss-550x425.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_ss.png 1035w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n <p>So after finally getting the rope working and a basic cavern generated, I tried to add the cavern mesh to Bullet and get some collisions going.\u00a0 Unfortunately this is when the deadline snuck up on me, and despite coding furiously I couldn&#8217;t finish in time.\u00a0 I do think I&#8217;ll continue with this concept until I get something playable.<\/p>\n <p>Despite the fail, I had a great time as usual.\u00a0 I&#8217;m happy about finally implementing the marching tetrahedron algorithm, as I have a few project ideas that will definitely benefit from it.\u00a0 And as much as I want to hate on Bullet right now, it is a fun library to play with.\u00a0 Just not the most fun when there is no documentation and precious little time to comb through source files trying to figure out how something works.<\/p>\n <p>I&#8217;ll end with some random shots of things going wrong <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>\n <p><img class=\"aligncenter size-large wp-image-9881\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random1-550x433.png\" alt=\"ld15_random1\" width=\"550\" height=\"433\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random1-300x236.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random1-550x433.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random1.png 651w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n <p><img class=\"aligncenter size-large wp-image-9882\" src=\"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random2-550x433.png\" alt=\"ld15_random2\" width=\"550\" height=\"433\" srcset=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random2-300x236.png 300w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random2-550x433.png 550w, http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2009\/08\/ld15_random2.png 651w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/post-mortem\/\" rel=\"tag\">post-mortem<\/a><\/p>","time":"August 30th, 2009 9:24 pm","title":"And the madness comes to an end"}