Sign in to follow this  

QuadTree Chunked-LOD Neighbor

Recommended Posts

Hello  smile.png


So i've created a QuadTree using Patches (33x33) 

The Patches have one Index/VertexBuffer and translate with WorldMatrix to the correct Position/Size




So my Problem is now to Fix crack's between the LOD-Levels.


How can i do that?

First i should Find Neighbors (North, West, South, East)?!

But i have no Plan how i do that sad.png


Anyone can tell me more about the Situation?




Edited by montify

Share this post

Link to post
Share on other sites

Here is what I would do ....


1) give all nodes access to their neighbours on the same tessellation level


2) for the quad node you want to render, find the neighbours, then if the node is an internal node (next door to the parent nodes neighbour) then go into the 

    parent nodes neighbours until your node is not an internal node and if they are of the same level of subdivision then you should be fine (if they are rendering patches at the same level for example) however if they are of a lower level of subdivision like in your diagram then find the tessellation level of the neighbouring nodes.


Then make a hem surrounding each patch just like in tessellation shaders and match the outer tessellation so that they match seamlessly, its pretty easy to set with hard coded numbers, you should google for OpenGL tessellation shaders and Direct 3D hull and domain shaders. 

Edited by ray_intellect

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this