3 ms·
A simpler implementation off the top of my head, although I can not verify immediately how good the results would be: Instead of generating a convex hull, use
by gavanwoolery 13y ago
A simpler implementation off the top of my head, although I can not verify immediately how good the results would be:
Instead of generating a convex hull, use polar coordinates and generate points in a circle or ellipse with a random radius modifier (since these tracks don't have overlaps this method should work fine). You can pretty easily control the spacing and delta in the radius and theta, and then just use Bezier curves from there which should not have weird cusps that the author describes if your spacing is correct. With a few modifiers (like using Manhattan distance for the radial measurement) you can make some variations like more "square" tracks although this would introduce (potentially) new complications.
That said, the author's implementation works great regardless of complexity and would probably fair better with more complex track types.
- GhotiFish 13y agoI find it really funny that your suggestion is best implemented with Perlin noise.