I've been running into walls for the past week or so on my toy project in UE4. My goal is to draw procedural roads on a procedural landscape (eventually getting to intersections and buildings). The landscape is generated with libnoise and the roads are generated with a slightly modified version of the algorithm found here.
But I'm having issues draping the roads on the landscape and I can't find any straightforward algorithmic way of doing it. You can see my problem below: the geometry of the road intersects the geometry of the landscape.
In short, given:
- The landscape index buffer
- The landscape vertex buffer
- Every road segment's
How do I modify the underlying vertex/index buffer so that the landscape "wraps around" the roads?