Log inGet started
World

Car Forge: Procedural Car Generator and Traffic Fleet Kit

Branchmain
Branchesmain
Commit98552b9f03

README.md

carForgeBody

The surface every Car Forge car is drawn with: a whole car body (or wheel) in one draw call. The mesh's vertex colours carry each part's colour and their alpha says which part it is, so painted panels, a second paint tone for two-tone schemes and liveries, tinted glass, chrome, glossy and rough trim, and seven separately switched lamps (head, tail with brake, left and right indicators, reverse, and two alternating roof beacons) all live on one mesh. Paint colour, metallic flake, clear coat, wear (hazed coat and paint chips), road dirt (built up from the sills), damage scratches and a brush-stroke "painted" look are material properties, so cars that share a body mesh differ only in their material. The lamp inputs are meant to be bound to the car's named values (car.headlights, car.brake, car.indicatorL, …). Inner faces render as dark cabin trim and the glass opens from inside, so the cabin reads correctly from the driver's seat.