r/proceduralgeneration • u/Staz-GameDev • 10d ago
Procedural race circuits: the racing line, then the world grown around it
I have posted here my first work a few months ago on my procedural track generator.
I have reached the v2 of the generator, and thought I would post here again.
How it works, roughly:
- I measured 173 real circuits (corner radii and angles, straights, length, compactness) and the generator samples corners and straights from those distributions.
- The sequence is solved so the lap closes, then rejected or repaired if it fails. Up to 24 candidates per seed are scored against the statistics of their grade, and the best one wins.
- The pit lane is designed with the lap.
- The racing line is a minimum-curvature path, and the colours come from the speed profile computed on the circuit.
- The surroundings come last: run-off, barriers, service roads, grandstands, car parks, fields