Downtown Traffic System (DTS)

Mohamed Elsherif in Rigging


DOCUMENTATION TAB

Installation

  1. Download dts_traffic_system-x.y.z.zip from your Superhive library. Don't unzip it.
  2. In Blender go to Edit > Preferences > Get Extensions.
  3. Open the dropdown at the top right and choose Install from Disk…, then pick the zip.
  4. Make sure the add-on is switched on.
  5. In the 3D Viewport press N and open the Traffic tab.
Requires Blender 4.5 LTS or newer. Tested on Blender 4.5, 5.0, 5.1, 5.2 and 5.3.

The first time, the panel shows a Welcome card. Press Set Up Traffic. DTS creates the collections it needs (Traffic_Paths, Traffic_Intersections, Traffic_Barrels…) and the output objects.

To update, install the new zip the same way. It replaces the old version.

Five-minute start

  1. Roads tab: choose a road type (Straight, Cross, T-junction), set lanes and speed, press Generate. The road appears at the 3D cursor.
  2. Cars tab: press Load Sample Cars (or set your own Cars collection). Press Scan Cars again whenever you change the cars.
  3. Press the big Bake button at the top of the panel.
  4. Press Play (the ▶ button next to Bake, or the Space bar).

The status card under the logo always tells you what to do next.

Generate builds or refreshes the whole system. Bake runs the simulation and stores the result, so the animation plays fast and is identical every time.

What is in the package

Everything ships in one zip. Install that file in Blender and nothing else is needed.

Item What it is
Python files The add-on code.
assets/sample_cars.blend Ready-made sample cars (cars, buses, police, taxi, ambulance, truck) with separate wheels, lamp materials and left / right turn signal materials (Turn_L, Turn_R).
assets/textures/ The textures of those cars. They are found automatically when you press Load Sample Cars.
qcr/ Quick Car Rig, based on Rigacar by David Gayerie (GPL-3.0-or-later).
README.md, LICENSE The guide and the license.

The sample cars are optional. You can use your own cars at any time.

The panel at a glance

At the very top, two buttons switch between the Traffic tool and the QCR tool. In Traffic mode the top of the panel is always visible: logo, status card, Generate, Bake and play / pause. The same quick buttons can also sit in the header of the 3D Viewport (turn that off in Settings > Panel).

Tab What it is for
Roads Generate roads: straight, cross, T-junction, or several intersections in a row.
Edit Roads Click a lane in the viewport and change its speed, cars per minute, lanes and turn shares. Use your own curves as roads.
Junctions Detect intersections, signals, stop distance, hazard lights, traffic amount.
Barrels Obstacles: anything in the Traffic_Barrels collection blocks traffic.
Cars Your car models, wheels, turn signals, service cars, emergency lights, colors.
Night Headlights, lamp materials, sun and sky for night scenes.
Settings Frame range, variation, pre-roll, lane changes, speed by vehicle, body roll.
Tools Check Setup and Clear Bake.

Roads

Creates roads for you at the 3D cursor.

Group Settings
Shape Length, lane distance, lanes per direction (1 to 8), lane width, turn lanes, angle between roads, rotation.
Traffic Two-way or one-way, drive on the right or left, cars per minute, speed, and the share of cars that turn right or left at junctions.

Intersections in a Row

  1. In the Roads tab choose Intersections in a Row.
  2. Set Intersections (2 to 8) and Distance Between (centre to centre).
  3. Press Generate. The row is built around the 3D cursor; Rotation turns it.

The main road is one set of long lanes through every intersection, so a car that passes the first intersection really arrives at the next one. Arm Length is the reach of the side streets and of the row beyond its first and last intersection. Keep the distance larger than twice the turn radius plus the road width (the panel warns you). The lane buttons in Edit Roads work on the whole row.

Don't overlap two separately generated crosses to build a row. Each generated road starts and ends its own cars, so cars would appear and vanish where the arms meet.

Edit Roads

Click any lane of a generated road or junction in the viewport, then edit it here: speed, cars per minute, number of lanes (– / +), lane distance, lane width and, for junctions, Turn Right % / Turn Left %. The turn shares can be changed after the road was generated; the turn curves are added or removed by themselves.

Section What it does
Selected Road Speed limit, cars per minute, spawn on / off and Lane Changes on / off for the curve you picked.
Whole Road The same settings for a generated road as a whole.
Your Own Curves Use any Bezier / NURBS curve as a road. Add Path or Use Selected Curves make a curve a road, Treat every curve as a road does it for the whole scene, Split into N Roads separates a curve that has several lines.

Press Bake again after changing road settings.

Junctions and signals

Option What it does
Detect Intersections Finds every place where roads cross or merge. Each junction becomes an Empty. Scale the Empty to make cars stop farther back (for example at a traffic light).
Stop Back (m) Cars wait this much farther back from every intersection. Use it when long vehicles (fire trucks, buses) stop on the zebra crossing. Bake again after changing it.
Intersection Mode Free Flow (first come, first served) or Timed Phases (each direction gets a green).
Green Time Length of each green. Give one junction its own value with a custom property green_time on its Empty.
Skip empty phases Stops cars waiting for a green nobody uses.
Hazard Lights at Obstacles A car that waits in front of an obstacle blinks both turn signals. Found in Cars > Signals. Bake again after changing it.
Live Traffic Under Play, no bake needed: shows only part of the baked cars, from 0 to all of them. Go from empty streets to a busy city while the animation plays.
Traffic to Bake (up to 10) Multiplies cars per minute on every road when you bake. It is the most traffic the scene can show, so bake it high and bring it down with Live Traffic.
A lane carries about 30–35 cars per minute at most; above that the road is simply full. The panel warns you when the busiest junction is over capacity and suggests a value.

Barrels and obstacles

Anything you put in the Traffic_Barrels collection is an obstacle: a cube, a cone, a broken-down truck, a crash. Cars stop in front of it while it blocks their lane, and the queue builds up behind it.

Option What it does
Appears Here / Gone Here / Always There Select the barrel, go to a frame, press the button. The barrel only blocks traffic between those frames. Use it for sudden events.
Blocks Within (m) How close to a lane's centre line an object must be to block it.

Press Bake again after moving barrels.

A barrel placed right inside a junction can hold up traffic from other directions too. Put obstacles on the straight part of a road for the most natural result.

Cars

Option What it does
Cars collection The collection that holds your car models. Each car can be an object or a sub-collection (body + wheels).
Scan Cars Measures length, width, wheelbase and wheel size of every car and tells you if something looks wrong.
Load Sample Cars Appends the cars that ship with DTS (wheels and textures included) and uses them as the Cars collection. The originals are hidden; the traffic shows copies.
Animate Wheels Wheels spin and the front wheels steer. Wheels are found by name (wheel, tire, tyre, rim).
Swap Cars (live) Reshuffles which model each car uses, instantly, with no bake. It only swaps between models of a similar size, so cars never overlap.
Origin & Spacing Where your models' origin sits (only used when wheels can't be found), plus the gap between stopped cars.
Car Colors Gives every car a color that stays the same for its whole trip.

Tips for your own cars

  • Put the model's origin on an axle.
  • Face the car along its own forward axis (+Y).
  • Name the wheels clearly.
  • A long vehicle such as a bus needs a Lane Distance of about 2.25 m or more; the panel warns you.

Turn signals

Cars indicate before they turn: the signal starts about 3 seconds (at least 25 m) before the turn and stops when the car has left it. Cars waiting at a junction keep blinking. It works day and night and every car blinks with its own timing. Signals are shown for real turns (about 35 degrees or more), not for gentle bends.

Materials

The add-on finds the lamps by material name. The name must contain turn, signal, indicator, blinker (or sein) and say which side with left / right or _L / _R, for example Turn_L or Indicator_Right. One material per side is enough; front and rear lamps of the same side can share it.

  • Only one material for both sides? Press Split Left / Right. It makes a left and a right copy and gives every lamp the one on its side of the car.
  • A lamp not found by name? Select it, pick its material and press Left or Right.

Settings

Starts Before Turn needs a bake. Signal Glow and Blink Speed are instant.

Lamp materials need a Principled BSDF or an Emission node. If a material has separate EEVEE and Cycles outputs, make sure the one you render with is connected to the lamp.

Service cars

Police cars, ambulances, fire trucks, buses, taxis and utility vehicles. The add-on finds them by the name of the car: police, cop, ambulance, fire truck, bus, taxi, service / truck / van.

A car with another name? Add the custom property service to the car: POLICE, AMBULANCE, FIRE, BUS, TAXI, UTILITY, or NONE for a normal car.

Where What it does
Live, no bake The Service Cars slider shows or hides the service cars the bake made (0 = none, 1 = all). Below it, every kind that was found has its own slider. A hidden service car becomes a normal model of about the same size or shorter, so a bus that goes leaves a gap, never an overlap.
In the bake Service Cars in Bake (default 0.3) is the share of cars the bake makes as service cars, i.e. the most the live slider can show. Raise it and bake again for more.

Emergency lights

Police and ambulance light bars flash. The pattern is fixed and nothing is random: a double flash per lamp color, with red, white and blue interleaved. Every car has its own fixed starting point, so two emergency cars side by side are not in sync.

Materials

The car model needs lamp materials named Emergency_Red, Emergency_Blue and Emergency_White. Use only the colors the vehicle has. A name that says emergency, siren, lightbar, beacon or strobe together with red, blue or white also works. The add-on wires them by itself every time you press Bake, or press Find Emergency Lights to wire them without a bake.

Different timing on one car: lamps that use the same material flash together (except for Lamp Variation). Make more materials of the same color (Emergency_Red, Emergency_Red.001, Emergency_Red.002…) and every number starts its flash at another moment, so the left and right lamps of a bar can alternate.

Settings (no bake needed)

Setting What it does
Emergency Lights On / off for all cars.
Only at Night Off by default: the lights flash by day as well.
Cars With Lights On Share of the emergency cars that have their lights on. The same cars stay on, so the result is the same every time.
Lamp Variation Every lamp lens of a color flashes at its own moment. 0 = all together.
Lamp Glow / Flash Speed Brightness and speed of the flash.

A lamp not found by name? Select it, pick its material and press Red, Blue or White.

Night mode

Option What it does
Night Mode ON / OFF Switches everything below on or off. Turning it off restores your sun and sky.
Find Lamp Materials Scans your cars for headlamp and tail-lamp materials.
Headlights Real lights, one or two per car (Spot or Point), with strength, beam width, tilt, height and optional shadows. To keep it fast, only the cars nearest the camera are lit. Use Max Lit Cars and Only Within to balance quality and speed.
Beam Softness Makes the edge of every beam fade out smoothly.
Head and Tail Lamps The glowing lamp materials of the cars. Rear lamps get brighter when the car brakes or stands still. If a lamp is missed, select it, pick its material and press Headlamp or Taillight.
Road Reflection How much the headlights reflect on a wet road. Lower it if the road sparkles or the light pools look like white patches.
Sun and Sky Dims the sun and world while night mode is on.
For clean night renders in Cycles: Light Paths > Filter Glossy 1.0, Clamp Indirect about 3, and keep the same noise seed in every frame. Headlights cost render time, so keep Max Lit Cars modest and Shadows off for animations unless you need them.

Settings

Setting What it does
Range The bake covers the scene's frame range.
Variation The seed of the traffic pattern (when cars appear, which sizes, how fast). Change it and bake for a new pattern. To change only the car models use Swap Cars.
Pre-roll Simulated time before frame 1 so the roads are already full when the animation starts. 0 = automatic (up to 240 s).
Lane Changes On by default. A car stuck behind something much slower (a bus, a van) looks at the lane next to it. If there is room it switches on its turn light, waits about 1.7 s and moves over smoothly (about 3 s), then goes back to its own lane when the way is free.
Speed by Vehicle The road's Speed is the top speed. Normal cars drive 76–100 % of it, police and ambulances a little faster, vans and trucks slower, buses slowest. Bus Top Speed (default 50 km/h) and Van & Truck Top Speed (default 70 km/h) are hard limits. Speed Variety 0 = everybody drives about the road speed. Lane Stagger (default 0.3) sets how often cars of neighbouring lanes enter one after the other.
Motion Body Roll / Pitch is the chassis lean in turns and the nose-dive when braking (0 = off). Corner Grip limits how fast cars take a turn: lower values make them slow down more, whatever the road speed is.
Panel Header buttons and logo size.

Lane changes only happen between lanes that run the same way and end at the same place, never close to an intersection or an obstacle, and never across two lanes at once. Switch them off for the whole scene here, or per lane in Edit Roads > Selected Road. When both lanes are packed with cars there is no room to move over, so very busy roads show few lane changes. The message after a bake says how many lane changes happened.

Bake again after changing any of these.

Tools

Button What it does
Check Setup Checks the scene and lists what is wrong (missing cars, broken paths…) in plain words.
Clear Bake Removes the stored simulation.

At the very bottom, three links: Find More, Community and YouTube.

Quick Car Rig (QCR)

Press QCR at the top of the panel to switch to the Quick Car Rig page (press Traffic to go back). It rigs your own vehicle so its wheels spin, the front wheels steer and the body reacts to bumps. It is independent from the traffic bake: use it for hero cars, trucks or anything you animate by hand or along a path.

Rig tab

  1. Fastest way: select the body and the wheels and press Auto-Detect Parts.
  2. Or use the live blueprint: a top-down picture of the vehicle with a button for every part (FL, FR, RL, RR and BODY). Select the part in the viewport and click its button. The part lights up in the picture, so you see what is still missing.
  3. Trucks: switch Vehicle to Truck and use Add Axle for extra rear axles. Front of the vehicle = lower Y side, left = +X.
  4. Options: Center Wheel Origins (needed for correct spin) and Brake Discs (optional extra bones).
  5. Press the big Rig Vehicle button. Wheels keep their exact place. The result is one armature called QCR Rig ; use Select Rig / Remove Rig to find it or undo everything.

Tuning tab

Real-time wheel spin on or off, spin multiplier, pitch / roll of the body, working headlights and tail lights.

Motion tab

Create a test drive without any traffic: pick a path (an automatic oval track or your own curve), set speed, laps, drift and steering strength, press Create Motion, play, then Bake to Keyframes so the wheel spin and steering are stored as plain keyframes.

QCR is built on Rigacar by David Gayerie (GPL-3.0-or-later), adapted for Blender 4.5+ and renamed (dts_qcr.*) so it never clashes with a separately installed Rigacar.

Typical workflow

  1. Generate a road or draw your own curves.
  2. Add or load cars, then Scan Cars.
  3. Detect Intersections (done automatically after Generate if enabled).
  4. Adjust speeds, cars per minute and signals.
  5. Drop barrels if you want an incident.
  6. Bake, then Play.
  7. Switch on Night Mode for night scenes.
  8. Render. Headlights follow the camera during rendering.

When do I need to bake again?

Bake again No bake needed
Roads, junctions, barrels, car sizes, Variation, Pre-roll, Body Roll, Corner Grip, Lane Changes, Speed by Vehicle, Stop Back, Traffic to Bake, Starts Before Turn, Hazard Lights Swap Cars, Live Traffic, Service Cars slider, Emergency Lights settings, Night settings, Car Colors, Signal Glow, Blink Speed

Panel messages tell you when the roads changed since the last bake.

Troubleshooting

First press Tools > Check Setup. It lists what is wrong in plain words.

Problem Fix
The Traffic tab is missing Press N in the 3D Viewport and check the add-on is enabled in Preferences.
No cars appear Press Generate, then Load Sample Cars (or set your Cars collection), Scan Cars, then Bake.
Wheels don't spin Name the wheels clearly (wheel, tire, tyre, rim) and press Scan Cars.
Turn signals don't blink Check the lamp material names (Turn_L / Turn_R) or use Split Left / Right. Lamp materials need a Principled BSDF or Emission node.
Emergency lights don't flash Name the materials Emergency_Red / Blue / White and press Find Emergency Lights.
A bus or fire truck stops on the zebra crossing Raise Stop Back (m) in the Junctions tab, then bake again.
Cars overlap each other Use Scan Cars to check car sizes. Long vehicles need Lane Distance of about 2.25 m or more.
Cars appear and vanish where roads meet Roads were generated separately. Use Intersections in a Row instead of overlapping crosses.
The road is full and cars barely move Lower Traffic to Bake or Cars / Minute, or increase Green Time.
No headlights at night Switch Night Mode ON, press Find Lamp Materials, and raise Max Lit Cars / Only Within.
The road sparkles at night Lower Road Reflection. In Cycles set Filter Glossy to 1.0 and Clamp Indirect to about 3.
Few lane changes Normal on very busy roads. A lane change needs a free gap in the next lane.

Links

The bottom of the panel opens Find More, Community and YouTube.

When you ask for help, mention your Blender version and send a screenshot of the Tools > Check Setup result.

FAQ TAB

Frequently asked questions

Which Blender versions are supported?
Blender 4.5 LTS and newer. It is tested on Blender 4.5, 5.0, 5.1, 5.2 and 5.3. Older versions are not supported.
Do I need to bake?
Yes. Bake runs the traffic simulation and stores the result, so the animation plays fast and is identical every time. Many things are live and need no bake: Live Traffic, Swap Cars, Service Cars slider, night settings, car colors and signal settings.
Are cars included?
Yes. Load Sample Cars adds ready-made cars (cars, buses, police, taxi, ambulance, truck) with separate wheels, lamp materials and turn signal materials. They are optional.
Can I use my own cars?
Yes. Put them in a collection, set it as the Cars collection and press Scan Cars. Put the origin on an axle, face the car along +Y and name the wheels clearly.
Do I have to use the Roads generator?
No. You can use any Bezier or NURBS curve as a road (Edit Roads > Your Own Curves), so you can run traffic on roads made with other tools.
Do cars stop at intersections?
Yes. Cars stop, wait and turn at junctions. Choose Free Flow or Timed Phases, where each direction gets a green.
Do cars change lanes?
Yes. A car stuck behind something much slower, like a bus, can move to the free lane next to it with its turn light on. You can switch it off for the whole scene or per lane.
Do cars turn and lean like real cars?
Yes. Wheels spin and steer, the body rolls in turns and nose-dives when braking. Corner Grip and Body Roll / Pitch in Settings control how fast cars take turns and how much they lean.
Can I put obstacles on the road?
Yes. Anything in the Traffic_Barrels collection blocks traffic, and a queue builds up behind it. You can make an obstacle appear and disappear at chosen frames.
Does it work at night?
Yes. Night Mode adds real headlights, glowing head and tail lamps, brake lights and a darker sun and sky. Only the cars nearest the camera get lights, to keep it fast.
Will it slow down my viewport?
The traffic is a baked animation, so playback is fast. Use Live Traffic to show fewer cars while you work.
Can I rig a single hero car?
Yes. Quick Car Rig rigs your own vehicle so wheels spin, front wheels steer and the body reacts to bumps. It works on its own, without the traffic bake.
Does it work with Downtown Generator?
Yes. Both work in the same scene, and any curve can become a road.
Can I use it in commercial projects?
Yes. The animations and renders you make are yours to use in your work. The add-on's code is GPL-3.0-or-later.
Where can I get help?
Ask in the Discord community or write on the Superhive product page. Please mention your Blender version and send a screenshot of the Tools > Check Setup result.
$23$14.95

Have questions about this product?
Login to message

Details
Blender Extension Compatible Yes
Published about 5 hours ago
Blender Version 4.5 - 5.3
Extension Type Add-on
Render Engine Used Cycles, Eevee
License GPL