{"id":516,"date":"2009-05-20T21:37:20","date_gmt":"2009-05-20T11:37:20","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=516"},"modified":"2009-05-20T21:37:20","modified_gmt":"2009-05-20T11:37:20","slug":"4-square-kilometers-of-terrain","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2009\/05\/20\/4-square-kilometers-of-terrain\/","title":{"rendered":"4 Square Kilometers of Terrain"},"content":{"rendered":"

\"4kmofterrain\"<\/a>So I’m a little baffled.\u00a0 With one very minor adjustment, suddenly my terrain rendering is flying at fantastic speeds.\u00a0 Here is a shot of the terrain.\u00a0 What you’re looking at here is approximately two square kilometers of land (the other two alluded to in the title are behind the camera).\u00a0 For those who play World of Warcraft, two square kilometers is approximately the size of Elwynn Forest, and my vertex density is approximately identical to that used in World of Warcraft (I’m using one vertex every four meters).<\/p>\n

Now obviously, there aren’t any trees or plants or players or any other props in this scene (actually, there is one prop in the scene, but it’s hidden behind the slope of the ground in the foreground.\u00a0 Sorry about that), so it’s not really fair to compare rendering rendering speeds, but see the horizontal red and green bar in the bottom left corner of the screen?\u00a0 That’s my information about CPU\/GPU utilisation.\u00a0 The little green part of the bar is how long this terrain is taking to render (the red part is waiting for vsynch).\u00a0 This is much<\/em> faster than I was expecting it to render, especially considering that I’m not performing any adaptive rendering to try to cut down the polygon count (check the wireframe inset;\u00a0 the polygons are so dense in those distant hills that they appear to be being drawn solid!);\u00a0 the code is just splurting all 262,144 vertices to the 3D card, lighting them in hardware, and drawing them to the screen.<\/p>\n

I’m now left wondering whether I should bother with adaptive terrain mesh, or whether I should just go with this for now, and instead move straight on to fixing up the texturing of the terrain.<\/p>\n","protected":false},"excerpt":{"rendered":"

So I’m a little baffled.\u00a0 With one very minor adjustment, suddenly my terrain rendering is flying at fantastic speeds.\u00a0 Here is a shot of the terrain.\u00a0 What you’re looking at here is approximately two square kilometers of land (the other two alluded to in the title are behind the camera).\u00a0 For those who play World…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-8k","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/516"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}