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 - KaloyanG17/Simulated-Motorsport: BSc dissertation (University of Exeter): a 3D race where 20 AI cars steer themselves (YUKA) and a Brain.js neural network decides pit stops and tyres. Three.js.

BranchesTags
Open more actions menu

Latest commit

 

History

48 Commits
48 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
docs
docs
 
 
indexLow
indexLow
 
 
info
info
 
 
mapping
mapping
 
 
node_modules
node_modules
 
 
public
public
 
 
qualifying
qualifying
 
 
race
race
 
 
src/pages
src/pages
 
 
track
track
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
survey.pdf
survey.pdf
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

Simulated Motorsport: a 3D race in the browser where AI drives 20 cars and a neural network picks the strategy. BSc dissertation, University of Exeter

Live demo Three.js Brain.js YUKA BSc dissertation, University of Exeter

My final-year Computer Science dissertation at the University of Exeter (Sep 2023 – May 2024). It's a 3D motorsport race in the browser where AI controls both the driving and the race strategy. Most racing-management games let the AI drive while you make the strategy calls. Here the AI makes those calls too, and you watch the race unfold like a broadcast.


01 · What it does

  • Up to 20 AI cars race on four selectable circuits, rendered in 3D with Three.js.
  • Qualifying sets the starting grid.
  • A live timing tower shows each car's position, speed, tyre compound and tyre wear.
  • 2D and 3D views of the same race.

02 · How the AI drives

Each car is a YUKA vehicle that follows a predefined racing line using steering behaviours: path following to stay on the line, and obstacle avoidance to race around the other cars. Three.js renders the cars and tracks from glTF models.

03 · How the AI picks the strategy

A neural network trained with Brain.js decides, for each car, when to pit and which tyre compound to fit: soft, medium, hard or wet. It bases the decision on tyre wear and track conditions.

  • Training happens offline. Node.js scripts (src/pages/node) generate race data and train the network.
  • The trained model runs in the browser. It's saved as trained_network.json and loaded by the race page, so no server is needed.

04 · Evaluation

The dissertation evaluated the simulation with a user survey. The survey is included as survey.pdf.

05 · Stack

Layer Tools
Rendering Three.js, glTF models with Draco compression
Driving AI YUKA steering behaviours
Strategy AI Brain.js neural network, trained offline in Node.js
Build and hosting Vite, Vercel

06 · Run it locally

git clone https://github.com/KaloyanG17/Simulated-Motorsport.git
cd Simulated-Motorsport
npm install
npx vite

Designed and built by Kaloyan Gaydarov · LinkedIn

About

BSc dissertation (University of Exeter): a 3D race where 20 AI cars steer themselves (YUKA) and a Brain.js neural network decides pit stops and tyres. Three.js.

simulated-motorsport.vercel.app

Topics

aibrainjsjavascriptmotorsportracingsimulationthree-jsyuka

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

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.