GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - martinopiaggi/Quality-Diversity-for-Racing-Track-Design: MSc thesis Prototype: Quality Diversity (MAP‑Elites) for procedural racing tracks. Voronoi/Convex Hull generators → spline tracks → headless TORCS sims → UMAP‑guided behavior space → web visualizer.

This repository was archived by the owner on Jun 25, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

275 Commits
275 Commits

Folders and files

NameName
Last commit message
Last commit date
data_analysis
data_analysis
 
 
mapelite
mapelite
 
 
src
src
 
 
web
web
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

Quality Diversity for Racing Track Design

MSc thesis project to evolve diverse, high‑quality racing tracks with MAP‑Elites, run headless sims, and analyze with a data‑driven stack. Take inspiration from the approach; it’s a thesis prototype, not a product. The full methodology, engineering trade‑offs, and TORCS quirks are in the thesis.

  • Blog article
  • Executive Summary & Full Thesis
  • Live visualizer

A fork with a continuation of this project can be found at: Novelty Search for Racing Track Design

What it is

  • MAP‑Elites search over a learned behavior space (not hand‑tuned features)
  • Voronoi and Convex Hull generators (genotype → spline → TORCS XML)
  • Headless, containerized simulations with custom telemetry
  • UMAP‑guided, interpretable diversity; web visualizer for real‑time browse/debug
  • Final output: a track layout represented by a closed spline, exported to TORCS‑compatible XML
  • Procedural gen is very interesting. QD makes it diverse. Voronoi makes it weird in the best way.

How it works (super concise)

  • Genotype → Phenotype: 2D seed points → Voronoi/Convex Hull → closed spline → TORCS track XML
  • Behavior space: sample splines → UMAP to 2D descriptors (similar shapes stay close)
  • MAP‑Elites: populate a grid over that space; mutate/crossover; replace cell champions if outperformed
  • Evaluate: headless races; telemetry (speed, curvature, overtakes, incidents, closure error)
  • Analyze: aggregate, cluster, export to visualizer

Borrowable bits

  • Voronoi genotype + crossovers (Random‑Line Partitioning, Relative Reconstruction)
  • Normalized overtakes (robust to geometry artifacts)
  • UMAP behavior space for QD (no “#turns” features)
  • Per‑sim container pattern for isolation and easy parallelism

Caveats

  • TORCS is dated (no elevation/banking).
  • Per‑sim containers add overhead by design.
  • Metrics need normalization and validity checks.

Roadmap (ideas to steal)

  • Modern engine (Unity/Unreal) for elevation, banking, richer geometry
  • Surrogate models to reduce sim cost
  • Designer‑in‑the‑loop for “fun”/aesthetics
  • Advanced QD (e.g., DCG‑MAP‑Elites), hybrid gradient methods
  • Stronger geometry validity (self‑intersection, curvature/grade limits)

License

MIT License.

About

MSc thesis Prototype: Quality Diversity (MAP‑Elites) for procedural racing tracks. Voronoi/Convex Hull generators → spline tracks → headless TORCS sims → UMAP‑guided behavior space → web visualizer.

blog.martino.im/Quality-Diversity-for-Racing-Tracks-Design

Topics

convex-hullevolutionary-algorithmsmap-elitesmapelitep5jspcgprocedural-generationquality-diversityrace-trackracing-gameracing-game-telemetryracing-tracksreinforcement-learningtorcsumapvoronoivoronoi-diagram

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.