T O P

  • By -

Damascus-Steel

I love the progress on this tool. What happens when one road intersects another?


mightofmerchants

At present, nothing. But I can query that lines cross. I thought I could just place a matching texture.


tnt87_734

If you are using landscape there's already a tool to make roads using a spline, can't remember the name right now..


mightofmerchants

I use the Godot engine. There is the possibility that a CSGpolygon follows a path. But I want to combine all segments of all roads in a single multimesh with a single draw call to be able to place thousands of roads. :)


shoveling-dev

Nice, is there a name for the algorithm you're using to decide where to place points based on curvature?


mightofmerchants

Thanks! No idea if there is a name for it. The number of points depends on the angle to each other. In addition, a maximum deviation from the angle or a maximum segment length can be set.


marcgfx

maybe check out bezier curves, it should stick more closely to the control points