Blender GN Traffic simulator
This is a geometry nodes traffic simulator based on a curve, you draw a curve and you get a road with traffic
How to use it
- Add the object into your asset browser,
- drag it into your scene when ever you want to use it
Settings:
road settings
Curve resolution: determines the subdivisions in the road
lanes: total number of lanes
Opposite lanes: how many lanes go the opposite direction
Road Material: the material for the road, this uses some attributes for the road, if you prefer to use your own shaders, make sure to use the same attributes for uvs, texture scale and rotation
Road size: width of the road and lanes
road padding: extra with for the road
Car settings
Collection: if you have your own cars, use them here
car_rate: how many flames pass before adding more cars i.e rate of 10, a car will be added every 10 frames
initial count: if you want to start with traffic on the road, how many do you want
Additional cars/f: this works with the car_rate, when cars are added, how many should be added
car size: size of the car
speed: speed"
orientation: rotation of the cars
start offset: where should the initial cars start on the road
road_texture settings
road_scale: texture scale
road_texture: chose the road texture
road_rotation: texture rotation
scale_x: texture scale on x
scale_y: texture scale on y