Blog 2.0
Dark Style Medium Style Light Style

Blog Statistics
First Previous Homepage Next Latest
RSS Feed

Triangulation and Blog 2.1

Last time I talked about my new landscape level of detail algorithm which I'm building for Myriad, I promised that I would talk about triangulation next - so here I am!

The triangulation algorithm comes in two distinct parts, both rather simple. The part is called GetInnerTriangles, this gets all the triangles which are inside a node on the Level of Detail quadtree, to get the triangulation of the entire algorithm you can simply run this method on the root node. If a node has no children, it simply returns two triangles making up a square. The exciting bit comes when a node does have children, firstly the algorithm gets the inner triangles of all four children, which will fill most of the space but might leave cracks in the landscape between child nodes with differing levels of detail; to fix this the second phase is to "weld" together edges of children which are at different levels of detail. Welding works by getting two lists of all the vertices down the two adjacent sides of the given nodes, and then putting in triangles to join together the edges.

So what's the end result of all this is our grand scheme of planet rendering? Now we have a way to render a flat surface at automatically varying levels of detail, without any cracks showing between different levels of detail. Using this we can render 6 flat surfaces (one for each face of a cube) and weld them together using the weld algorithm I already described.

The only thing we have left to do is to actually build our quadtree with the correct level of detail applied to each node, this is done with a Min-Max-Heap, which is something I'll be talking about next time.

The other thing I wanted to mention was that I'm currently working on a new layout for my blog, built on top of a new (far more efficient and responsive) blogging engine. You can find the preview here. Currently it's just the layout and background code which is mostly final, obviously colours are likely to change ;)

Posted on 2009-11-09 18:03:49.415016
This post : 140 views
Permalink: http://martindevans.appspot.com/blog/perma?agxtYXJ0aW5kZXZhbnNyEAsSCEJsb2dQb3N0GMrfAgw

Author:
Post:
Latest Entries:

Triangulation and Blog 2.1
2009-11-09 18:03:49.415016
Neglect
2009-11-05 21:54:34.749240
N
2009-09-13 01:55:27.993530
Virtual Textures
2009-09-02 09:11:37.076017
Hard working Laziness
2009-08-19 14:11:45.639809
Don't go into the long grass
2009-08-03 17:49:34.315912
Oops!
2009-07-08 00:56:45.557563
Landscaping
2009-07-01 12:06:04.994983
Web Development & Game Development
2009-06-18 18:27:18.057752
Furry Rendering
2009-06-10 20:02:15.395323