Log inGet started
World

Car Forge: Procedural Car Generator and Traffic Fleet Kit

Branchmain
Branchesmain
Commit98552b9f03

README.md

similarity

How alike two Car Forge cars look, and a set of seeds whose cars all look different. Sim.distance(a, b, spread) is 0 for identical cars and 1 for cars of a different style, look or role; within one style, look and role it weighs paint (main colour and accent), body shape (every shape setting, measured against Sim.spread(cars), the variety of the cars being compared), the detail options and the wheel style. It was calibrated by eye: two courier vans or two pickups below about 0.30 read as the same vehicle side by side. Sim.distinctSeeds(preset, n, { start, threshold = 0.33 }) walks the seeds in order and skips any whose car is too close to one already kept, so a gallery, a showroom or a car picker shows n cars that all look different; the list is the same on every machine. The showcase gallery takes its preset views from it, and Cars.lookDistance / Cars.distinctSeeds reach it from the api.