I am currently trying to reduce the tessellation levels on front facing triangles, but I also want to keep tessellation levels high on edges (so when the view vector is orthogonal to the triangle normal).

Some background information. My terrain system tessellates the terrain and displaces the newly created triangles using the heightfield texture. That means that each triangle edge must always have the same tessellation levels as the other triangles that share the same edge, otherwise holes will be created in the terrain.

I can't find a way to keep the calculations consistent for shared edges.

edit: I have been trying to use non-divergent data by sampling the heightfield to calculate the normal for the edges. That way regardless of the triangle. The edge tessellation levels will always be the same, but I seem to be having issues.

  • $\begingroup$ Nevermind I fixed this issue by sampling the heightmap to get the edge normals. That way the data isn't divergent and it won't cause cracking. However if anyone has anything useful to add, for any users in the future, then feel free! $\endgroup$ – Brady Jessup Aug 24 '18 at 17:20
  • 2
    $\begingroup$ Glad to hear you fixed your own problem. If you'd like to, self answers are encouraged and that would help future readers (and doesn't stop others adding alternative answers later too). $\endgroup$ – trichoplax Aug 25 '18 at 22:02
  • 1
    $\begingroup$ Good suggestion! I will do a write-up this week with pictures so I can help anyone who has issues in the future :) $\endgroup$ – Brady Jessup Aug 27 '18 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.