Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RBR Track Exporter

RBR Track Exporter

This is a Blender extension for exporting tracks for Richard Burns Rally. The ultimate goal is to understand and support every feature available in RBR, and to supersede use of the custom export tool, Wallaby. Thank you to Wally for the creation of that tool, without it RBR would have probably died by now.

Thanks to WorkerBee for his tireless reverse engineering efforts. Without his help the development time would be several years longer.

Thanks to the many people who have tested the extension in the alpha stages, and continue to give great feedback. In particular those who have been around from the start: Jan Kadeřábek, Joona Karimaa, and aesthetic_sofa.

I hope you enjoy using the extension to create new stages for RBR.

-- Tom Smalley

Using these docs

I would suggest skim reading all of the docs to get an idea of what’s available through the extension before diving in to actually use it. Otherwise, start with Installation & Setup, and read through the RBR Glossary to understand the RBR specific terminology. Then work through the Quick Start to build a minimal stage end to end. After that, work through the rest of the docs as and when needed.

Installation & Setup

Requirements

  • Blender — the exact version depends on the extension version (see below).
  • A copy of RallySimFans RBR to export your stages into.
Extension versionBlender version
1.0.0-rc.4 and later5.3.x
1.0.0-rc.1 – rc.35.2.x

Releases are built for Windows x64, macOS arm64 and Linux x64.

Installing the extension

The extension is installed from its own Blender extension repository, which also keeps it up to date:

  1. Open Edit ▸ Preferences ▸ Get Extensions.

  2. Open the Repositories menu (top right), click + and choose Add Remote Repository.

  3. Enter this URL, tick Check for Updates on Startup, and click Create:

    https://richardburnsrally.github.io/blender-track-exporter/index.json
    
  4. Search for RBR Track Exporter in the extension list and click Install. Blender picks the build for your platform.

New versions then show up in Get Extensions like any other extension update. Pre-releases are published here too.

Installing a zip by hand

Every release’s zips are also on the releases page. Download the one for your platform and drag it into a Blender window, or use Edit ▸ Preferences ▸ Get Extensions ▸ Install from Disk…. A zip installed this way doesn’t update itself.

Setting up export directories

The exporter writes into your RBR installation’s maps directory. You register one or more named directories once, in the extension preferences, then pick one per stage.

  1. Open Edit ▸ Preferences ▸ Add-ons and expand the RBR Track Exporter preferences.
  2. Click Add RBR export directory.
  3. In the new row, type a name in the left field (this is the label you’ll choose from later) and set the right field to the folder you want to export into. The folder must already exist.
  4. Save your preferences.

Remove a directory with the − button at the end of its row.

You can register several — for example a live game install and a scratch folder — and switch between them per stage via Export To in the scene settings. See Exporting.

Files made with the old addon

When you open a .blend made with the old (v0.x) addon, Scene Properties ▸ RBR Scene Settings shows a warning box. Back up the file, then click Migrate. Exporting won’t work until the file is migrated.

If it was last saved with an addon older than v0.2.2, the box says so: open and save it with v0.3.3 first, then migrate.

If the file links in other .blend libraries made with the old addon, migrate those first and then reopen this file.

For what’s different in v1, see the 1.0.0-rc.2 changelog.

After migrating, a dialog offers Optional migrations: changes to geometry, animation or datablocks that are worth checking one by one. Tick the ones to run. Until you dismiss it, the scene panel keeps a box with Choose… to run them later. The console lists what was changed and anything that needs your attention.

RBR Glossary

We generally stick to the terms used by the original RBR developers.

Animation objects
Animations of deer crossing or spectators running from the road can be triggered at points along the driveline, with some element of randomness. (not yet authorable).
Brake wall
A soft wall around the stage which prevents the car from driving too far away from the road.
Cameras
Viewpoints triggered during replays.
Car location
The start position and orientation of the player car.
Clipping planes
Occlude geometry behind them from the cameras view, but aren’t directly visible themselves. Used to hide areas of the track which shouldn’t be visible in the distance.
Driveline
A spline of the racing line: used to trigger events, pacenotes, and controls where the car respawns.
Fences
Physically flexible fences: tape or plastic net supported by poles.
Geom blocks
Opaque static geometry: ground, buildings, etc.
Ground collision mesh
The physical mesh the car interacts with. Each face has a material map.
Interactive objects
Dynamic physics objects: signs, wooden fences, concrete blocks.
Material maps
16×16 grids of physical material IDs
Object blocks
Transparent textured geometry: usually foliage. Vertices are animated to give the appearance of swaying in the wind.
Reflection objects
Faked reflections: inverted geometry that exists under bodies of water.
Registration zone
The end-of-stage registration area. The stage automatically ends when the car stops here.
Shape collision meshes
Static, instanced collision meshes: e.g. tree trunks.
Super bowl
Background geometry: always drawn, so must have a low polygon count.
Surface age
How worn-in the racing line is: New, Normal, Worn.
Surface type
How wet the road surface is: Dry, Damp, Wet.
Tint set
A time of day lighting variation. Morning, Noon, Evening, Overcast. Each tint set is essentially a separate stage.
Water objects
Geometry which can use transparent textures and UV animation, especially used for planes of water (like lakes and rivers).
Weathers
A pairing of a Weather description and a Sky description. They control things like lighting parameters, sky appearance, and fog settings.
Wet/water surfaces
Simple quads which define water splash areas. Water surfaces always give water splashes, but wet surfaces only work under wet conditions.

Quick Start

This walks through the smallest stage that will load and drive in-game. It assumes the addon is installed and you have registered an export directory (see Installation & Setup).

All RBR settings live in the Properties editor, under the Scene, World and Object tabs, and in the RBR nodes of the Shader Editor.

1. Set the stage metadata

In Scene Properties ▸ RBR Scene Settings ▸ Export Settings:

  • Export To — choose the directory you registered.
  • Track ID — the track number (e.g. 71 for Rally School).
  • Track Name — required; it also names the exported folder.
  • Author, Country Code — descriptive metadata.
  • Particles — the particle set, relative to the game folder (defaults to Maps\ps_british).
  • Surface — the stage’s surface category: Tarmac, Gravel or Snow.

2. Choose conditions and tint sets

Still in Scene Settings:

  • Track Surfaces — tick which surfaces the stage supports (Dry, Damp, Wet); at least one is required. Active Surface picks the surface and age you preview in the viewport.
  • Tint Sets — tick the times of day you’ll build lighting for (Morning, Noon, Evening, Overcast); at least one is required. Active Tint Set picks the one you preview.

See RBR Glossary for what these mean.

3. Add a weather

Under Tint Sets ▸ {tint set} Weathers, click + to add a weather slot and assign a World to it. The World’s RBR World Settings hold the sky, fog and lighting for that condition — see World Settings.

4. Build the road and the driveline

  • Model the road and scenery as ordinary meshes, and give them materials built from an RBR Shader node (Geom Block type) with an RBR Texture — see Materials & Shading. Faces without an RBR material are not exported.
  • On the road’s RBR Shader, tick Generate Collision Mesh so the car has ground to drive on. Export fails without any collision geometry.
  • Add a Bézier curve running down the centre of the road, then set it as the Driveline under Scene Settings ▸ Track Objects. The addon fixes up the curve (single spline, 3D, Z-up, scale 1) and adds a render-distance helper.
  • Select the driveline and open Object Properties ▸ RBR Object Settings to set the timing Events (Start, Finish, …) and Pacenotes. See The Driveline.

5. Place the car start

Add an Empty and assign it as the Car Location under Track Objects. This is where the car spawns; the export fails without one.

6. Paint surface materials

Open an Image Editor, then click Edit Material Maps on the road’s RBR Texture node to paint the physical (collision) material maps that decide grip and particles per surface region. While editing, the RBR Material Picker is in the Image Editor sidebar.

7. Export

Click Export in Scene Settings ▸ Export Settings (or use File ▸ Export ▸ RBR Track (.trk, .lbs, …)). Any problems appear in the Errors and Warnings panels; click the magnifier beside a message to jump straight to the offending object or material. See Exporting.

Load the track in-game to test it.

Scene Settings

Found in Properties (area) ▸ Scene ▸ RBR Scene Settings. This is the hub for the whole stage. It has four sections.

If the file was made with the old (pre-1.0) RBR addon, a box at the top asks you to back the file up and Migrate it; exporting before that will not work. After migrating, an Optional migrations are available box offers Choose… (pick further migrations to run) and Dismiss.

Export Settings

  • Export To — the named export directory (your RBR Maps folder) to write into. Set these up in the addon preferences first (see Installation). The stage goes in a <Track ID>-<Track Name> folder inside it.
  • Track ID — the track number (e.g. 71 for Rally School). The export warns if another stage in the export directory already uses the ID.
  • Track Name — the stage’s display name (e.g. Rally School). Required. It can’t contain < > : " / \ | ? *, start or end with a space, or end with a dot, and every character must be in Windows-1252.
  • Author — your name.
  • Country Code — ISO 3166-1 alpha-2 country code (default GB).
  • Particles — the particle set used in the stage, as a path relative to the game folder (default Maps\ps_british).
  • Surface — the stage’s surface category: Tarmac, Gravel or Snow.
  • Compress textures (on by default) — compresses the textures archive (.rbz). Turning it off makes the export faster but the archive bigger.
  • Simplify shadows (experimental) (off by default) — deduplicates and atlases the shadow maps on export, with Dedup Threshold and Gradient Threshold shown while it’s on. See Shadows.
  • Export — runs the export. See Exporting.

After an export, Errors and Warnings sub-panels appear if there were any. Each message has a magnifier button that jumps the viewport (and shader editor) to the object or material it refers to.

Track Objects

Assign the scene’s special objects here:

  • Driveline — the Bézier curve the car follows. Validity problems (wrong scale, not a curve, not exactly one spline, not a Bézier spline) are flagged inline. See The Driveline.
  • Car Location — an Empty marking where the car spawns. Required.
  • Brake Wall — a curve defining the invisible boundary wall. See Fences & Brake Walls.
  • Registration Zone — an Empty.

Track Surfaces

  • Surfaces — tick the surface states the stage supports: Dry, Damp, Wet. At least one is required.
  • Active Surface — the surface type and age (New / Normal / Worn) you are previewing. This drives what the material editor and viewport resolve against. See RBR Glossary.

Tint Sets

  • Tint Sets — tick the times of day you’ll build: Morning, Noon, Evening, Overcast. At least one is required.
  • Active Tint Set — the tint set you are previewing/editing. Changing it updates viewport lighting and hides objects not assigned to it.
  • Baking Tools — helpers for baking shadows into textures or vertex colors for the active tint set. See Shadows.
  • {Tint Set} Weathers — the list of weathers for the active tint set. Add a slot and assign a World to it; the World carries the sky/lighting. Selecting a slot makes its World the scene’s world. Slots with no World are skipped on export. For the Overcast tint set each weather also has a Time (Morning, Noon or Evening). See World Settings.
  • Weather Settings — embeds the active weather’s World settings inline for convenience.

There is also a global Geom Block Glossiness control (default 12, range 0–20, shown in the World ground settings) — it applies across the whole stage rather than per weather.

World Settings

Each weather slot in a tint set is backed by a Blender World. Its settings live in Properties ▸ World ▸ RBR World Settings, and are also embedded inline under Scene Settings ▸ Tint Sets ▸ Weather Settings for the active weather.

On export each weather is written to TrackSettings<Track ID>.ini, keyed by its tint set, Weather and Sky (for Overcast, the slot’s Time too). If two weathers in a tint set share the same Weather and Sky, only one of them is exported.

The two top-level fields classify the weather:

  • Weather — Crisp, Hazy, Light/Heavy Fog, No/Light/Heavy Rain, No/Light/Heavy Snow.
  • Sky — Clear, Part Cloud, Light Cloud, Heavy Cloud.

Below that the settings are grouped into collapsible panels.

Fog

Toggle Use Fog to enable the fog panel:

  • Color — fog colour.
  • Start / End — distances over which fog ramps in.
  • Superbowl Start / Superbowl End — fog distances for the skybox (“superbowl”).
  • Skybox Saturation — how much of the sky dome (sky and clouds) shows through the fog colour in the preview: 0 paints it entirely in the fog colour, 1 leaves it unfogged.

Track Settings

The main panel for sun and atmosphere.

  • Cloud Name — the cloud texture set. The preview reads the cloud textures from Clouds_textures.rbz in the export directory, for the active surface type, so it needs Export To set.
  • Sun — point this at a Sun light object to take the light direction from its rotation. Light Direction then follows the sun as you rotate it and is greyed out; otherwise set Light Direction by hand.
  • Sun Intensity — overall sunlight strength.

It contains three sub-panels:

Ground

Controls how bright the terrain reads. The Balance meter shows max(Reflectance Color) × Extinction × Sun Intensity × Reflectance Multiplier, and the box below it turns red when that is more than 0.2 away from 1.0:

  • Auto Balance (on by default) — sets Reflectance Multiplier to bring the balance to 1.0 whenever Extinction, Reflectance Color or Sun Intensity change, and greys the multiplier out.
  • Extinction, Reflectance Multiplier, Reflectance Color — terrain reflectance.
  • Specular Alpha, Specular Glossiness — terrain specular response.
  • Geom Block Glossiness — a global (whole-stage) specular glossiness for geometry blocks.
  • Superbowl Scale — scale of the skybox terrain.

Sky

Atmospheric scattering and skybox tuning: Greenstein Value, Inscattering, Mie Multiplier, Rayleigh Multiplier, Cloud Scale, Skybox Scale, Turbidity, Sun Offset.

Other

Lighting that doesn’t feed the sky shaders: Ambient, Car Ambient Lighting, Car Diffuse Lighting, Car Deep Shadow Alpha, Car Shadow Alpha, Character Lighting, Mip Map Bias, Particle Lighting.

Most of these map directly onto RBR’s per-weather lighting parameters. The defaults are reasonable starting points; tune them against the in-game look for each weather.

Object Settings

Per-object settings live in Properties ▸ Object ▸ RBR Object Settings. What you see depends on the object: a mesh, a curve, a camera, an empty, and the objects assigned a special role in Scene Settings each show different controls.

Special-role objects

If the active object is assigned in Scene Settings ▸ Track Objects, the panel just confirms its role:

  • Car Location — the car spawn point (an Empty). The addon sets it to an Arrows display with a fixed, locked scale; its world position and rotation are exported.
  • Brake Wall — the boundary wall curve (see Fences & Brake Walls).
  • Registration Zone — an Empty. The addon gives it a Sphere display and a uniform scale. Its world position is exported, with the empty’s display Size as the radius.
  • A child of the driveline shows as the Render Distance helper (see The Driveline).

Tint set visibility

Meshes, curves, cameras, empties and other plain objects show a Tint Sets block (Morning / Noon / Evening / Overcast); the special scene objects, such as the driveline, don’t. Untick a tint set to leave the object out of that time of day — both in the export and, when you switch the active tint set, in the Blender viewport.

An object is only exported in a tint set if its parents are too, and an instance only if both the instanced object and its instancer are. Hiding an object in the viewport doesn’t stop it exporting.

Instances

Instances (collection instances, geometry-nodes instances…) are exported as they are, and modifiers are always applied. Meshes and curves with no special type, empties and other plain objects also have:

  • Export real instances — the exporter runs Make Instances Real on this instancer for the export, exports the resulting copies, and removes them afterwards. Use it when the instanced objects need to differ via modifiers, since each copy evaluates its modifiers at its own position.

By data type

  • Mesh — shows a Mesh Type selector that unlocks collision, interactive objects, fences and water splashes. See Mesh Types.
  • Curve — a Curve Type selector (None or Fence), unless the curve is the driveline, which shows its own controls.
  • Camera — replay camera settings. See Replay Cameras.
  • Empty — tint sets, Export real instances, and Soft Collision.

Soft Collision

Tick Soft Collision on an empty to make it push the car away without a hard collision. The empty needs a Cube or Sphere display type, which gives the shape; the object’s scale gives the size (the empty’s outline matches the exported volume at a display size of 1). Any other display type is flagged in the panel and the empty is skipped on export with a warning.

It takes the same Physics Properties presets as a Static Shape Collision.

Mesh Types

For a mesh object, Object Properties ▸ RBR Object Settings shows a Mesh Type selector. The type decides how the mesh is exported and which extra controls appear.

None

Ordinary visible geometry — the roads, scenery and buildings of the stage. How it is exported depends on its materials. With this type you also get the general Export real instances option (see Object Settings).

Interactive Object

Instanced visual geometry for knock-down objects (cones, signs, fences…). It has both a visible mesh and an invisible collision mesh.

  • Collision Mesh — the mesh object to use as this object’s collision shape. Its local geometry is placed with this object’s transform; its own position is ignored.
  • Physics Properties — the physical behaviour, chosen from a preset list:
    • Traffic Cone — very soft; usable for small signs.
    • Heavy Concrete Block — very heavy, can easily kill the car.
    • Street Sign — very soft.
    • Banner Fence, Log, Log Pole, Wooden Fence Bar, Wooden Fence Pole.

Only faces whose material’s RBR Shader Type is Interactive Object Visual are exported as the visible mesh. An interactive object with none is skipped with a warning.

Static Shape Collision

An invisible collision shape (no visible geometry). The mesh is stored once and placed at every instance. Pick the Physics Properties preset:

  • Undefined, Bush, Bendable Tree, Tree, Tree Stump, Tree Trunk, Metal Barrier, Metal Pole, Rock, Spectator, Snow Wall.
  • Spectator — hitting it ends the stage as a spectator collision.

Some presets reveal more controls:

  • Bush shows a Bush Density (Very Sparse, Sparse, Leafy, Straggly, Dense, Very Dense; default Leafy).
  • Tree, Tree Trunk, Rock, and Bush with Leafy or Straggly density show a Size (Small / Medium / Large; default Medium).
  • Bendable combinations show an info note: Bendable Tree “Soft bendable collision”, Tree Stump “Hard bendable collision”, small Rock “Very soft bendable collision”.

The same presets are used by soft collision empties.

Collision shapes have hard complexity limits in RBR: at most 30 vertices, 84 edges and 56 triangles. This applies to static shapes and interactive object collision meshes alike; a mesh over the limit is an export error. Keep these meshes simple.

The export rejects a static shape whose object name contains CONE or BANNER_STAND, and an interactive object whose collision mesh’s name contains CONE (unless it is a Traffic Cone) or BANNER_STAND (unless it is a Banner Fence). Rename it.

Fence

An interactive fence generated by a geometry-nodes modifier. See Fences & Brake Walls for the full controls (fence kind, vertex colour, tile/pole textures, subdivide).

Water Splash

A water-splash particle emitter. Each quad face is exported as a splash surface; other faces are skipped with a warning. Choose when it is active under Weathers:

  • All weathers — for fords.
  • Wet only — for puddles that only appear in wet conditions.

It follows the object’s tint sets, and its modifiers are applied.

The Driveline

The driveline is a single Bézier curve running down the racing line. Assign it under Scene Settings ▸ Track Objects ▸ Driveline. When you do, the addon fixes the curve up for you: it keeps only the longest spline, makes it a non-cyclic 3D Bézier with Z-up twist, locks the scale to 1, and adds a Render Distance helper (a circle Empty parented to the curve). While you edit, it keeps each point’s handles aligned and of equal length.

The curve’s path is driven by the frame number, so scrubbing the timeline moves the helper along the line, one frame per metre. Keyframes on the driveline and on replay cameras use the same frames, so they are placed by distance along the line.

The driveline must have scale 1, be a curve with a single Bézier spline, and have no modifiers. Problems are flagged inline in the Scene and Object panels. On export it is an error if the driveline is missing, isn’t a curve, has no spline, its spline isn’t Bézier or has fewer than two points, or it bends back more than 180° between two points (subdivide there). Only the first spline is exported, with a warning if there are more.

Select the driveline and open Object Properties ▸ RBR Object Settings. It shows three panels.

Render Distance

How far the game draws geometry from the car along this point of the line.

  • Render Distance — the size of the helper circle (drag in the viewport or edit here). Supports keyframe animation, to vary it along the line.
  • Multiplier — scales the render distance. Only needed if Blender’s 1000 m limit on the helper is too small for the distance you want.

Events

The timing markers, given as distances along the line. A value of 0 leaves the event out.

  • Start
  • Split 1
  • Split 2
  • Finish
  • End of Stage

Viewport Distance controls how far away the pacenote and event labels drawn along the line in the Blender viewport stay visible before fading out (a display aid, not exported).

Pacenotes

The co-driver calls.

Pacenotes are best created with an external tool. The panel lists what is present and lets you tweak individual entries.

Each pacenote has a Location (distance along the line), a Pacenote id, and Flags. The recognised call is shown beside each row (e.g. Left Hairpin, Right Medium, Over Crest, Jump, plus the timing events), or Unknown. Use Add pacenote / the remove button to manage the stack. Pacenotes and events are also labelled along the line in the viewport.

Replay Cameras

A Camera object exports as a replay camera. Its controls are in Object Properties ▸ RBR Object Settings.

The Driveline must be set in Scene Settings first — camera controls are disabled until it is, because “look at car” and spline-following are defined relative to the driveline.

The camera’s world position (or its spline, see Follow Spline) and its world rotation without constraints are exported. Lens / Field of View and the Follow Spline offset support keyframe animation, so a camera can zoom and travel along its spline over the course of a replay. Frames are metres along the driveline. Other animation, such as keyframed location, isn’t exported.

Controls

  • Lens / Field of View — standard Blender camera framing.
  • Clip Start — near clip distance.
  • Look at Car — the camera tracks the car. Enabling it adds a Track To constraint aimed at the driveline’s render-distance helper; disabling it removes the camera’s Track To constraints.
  • Play Helicam Sound — plays the helicopter sound for this camera.
  • Camera Shake — how much the camera shakes (higher = more). Shown when Look at Car is on, and not visible in Blender.
  • Follow Spline — make the camera ride along a curve. When set, the camera’s location is reset and locked, it is pinned to the path via a Follow Path constraint, and an Offset slider appears to position it along the spline (also keyframeable). The curve’s spline with the most points is exported.

With Look at Car off, a Track To constraint you add yourself makes the camera look at its target object instead.

Camera switches

Which camera is live where comes from the timeline markers. Bind a camera to a marker (Blender’s Bind Camera to Markers) and that camera takes over at the marker’s frame, i.e. that many metres along the driveline. A marker with no camera ends the current camera’s section; the last camera runs to the end of the driveline.

Fences & Brake Walls

Fences

A fence is an interactive tape/net/wire barrier generated along a mesh or curve by a geometry-nodes modifier. Turn an object into a fence by setting its Mesh Type to Fence (for meshes) or Curve Type to Fence (for curves) in Object Properties ▸ RBR Object Settings. The addon adds and manages the fence modifier automatically, and re-adds it if you delete it from a fence mesh. The geometry it generates is a viewport preview; the export writes the fence from its posts and settings.

Posts sit on the line’s points:

  • Mesh — the vertices after the object’s other modifiers (such as a Shrinkwrap onto the terrain), joined by edges into open chains. Each chain is its own fence. Branches or stray vertices skip the whole mesh with a warning, and closed loops are skipped with a warning.
  • Curve — each spline’s control points. Each spline is its own fence; cyclic splines are skipped with a warning. Other modifiers on a curve fence aren’t exported, and the export warns about them.

A fence needs at least two posts.

Controls:

  • Fence Kind — Tape, Net or Barbed Wire.
  • Vertex Color — the colour applied along the fence, per post. You can drive it from a mesh colour attribute instead of a flat colour using the toggle beside it (new fence meshes use a vcol attribute if they have one).
  • Tile Texture — the texture for the fence’s spanning material.
  • Pole Texture — the texture for the posts.
  • Subdivide — higher resolution fence, used for rendering and collisions.

Each texture is either Built-in — a texture from the game’s fence.dat, picked from the ones offered for the current Fence Kind — or Custom, an image shipped with the stage. Custom images are written as DDS files to the stage’s CustomData/Textures folder, named after the image with characters other than letters, digits and - replaced by _. It is an export error if two custom images would get the same file name, or one would replace a built-in texture another fence uses. A fence with no tile or pole texture is skipped with a warning.

Brake Walls

The brake wall is the invisible boundary that stops the car leaving the stage. Assign a curve as the Brake Wall under Scene Settings ▸ Track Objects. On assignment the addon fixes the curve up (keeps the longest spline, makes it a cyclic poly spline, 3D, Z-up, scale locked to 1) and replaces the object’s modifiers and materials with the brake-wall geometry-nodes modifier and material. While you edit, it keeps the points at Z = 0.

Selecting the brake-wall object shows a simple confirmation in its Object panel; shape the curve itself. Each point is paired with a second one, offset sideways by the point’s Radius and turned by its Tilt; the viewport geometry shows the result.

Respawn Areas — a collection input on the brake-wall modifier. Wall segments whose middle lies inside one of the collection’s objects (a cube of the object’s empty display size, as transformed by the object) are flagged as auto-respawn.

On export, the brake wall needs at least three points, no two neighbouring points in the same place, and no point where it turns straight back on itself; it may have at most 8191 points. Breaking these is an export error. A wall that isn’t a single poly spline is skipped (or only its first spline exported) with a warning.

Materials & Shading

The addon ships custom RBR shader nodes so that material previews in Blender almost exactly match in-game rendering, while also carrying the extra data the export needs.

RBR shader nodes

In the Shader Editor, the Add menu has an RBR Nodes submenu:

  • RBR Shader — the main node for a surface. Its Surface output must reach the material’s EEVEE output (a Material Output targeting EEVEE or All). Materials that don’t are treated as ordinary Blender materials, and faces using them aren’t exported. Type picks the geometry type: Geom Block, Object Block, Reflection Object, Water Object, Super Bowl, Interactive Object Visual or Clipping Plane. Each type has its own inputs.
  • RBR Tint Set — routes a different input per tint set (Morning, Noon, Evening, Overcast). You can use this at any level, for textures, colours or values, because tint sets are entirely separate stages. Every tint set you export needs its input connected.
  • RBR Texture — the texture node for the shader’s texture inputs (diffuse and specular). Also holds physical material maps.
  • UV Velocity — scrolls a texture’s UVs over time for UV animation. Put it between a UV Map (or Attribute) node and an RBR Texture’s UV input and set UV Velocity; leave that socket unconnected. Exported for Geom Block, Reflection Object, Water Object, Super Bowl and Interactive Object Visual.
  • RBR Sky — used on the World, wired up automatically when you set up a weather (see World Settings). Allows previewing sky and cloud settings directly.

Colour and value inputs on the RBR Shader take an Attribute node (type Geometry), an RGB or Value node, or nothing (the socket value is used). Reroutes are followed. A Geom Block’s Shadow Texture takes a plain Image Texture node.

Geometry type options

  • Geom Block — Geom Block Type is Near, Far or Any. A Near geom block can Generate Collision Mesh (the ground the car drives on), and then optionally be Collision Mesh Only, which skips the visual geometry. Collision meshes get a Collision Shading input (default 0.5) that is written per vertex into the collision mesh.
  • Object Block — Object Block Type is Near, Far or Both.

For every type except Geom Block and Clipping Plane, the material’s Backface Culling setting is exported: turn it off for double-sided faces.

RBR Texture node

The top row picks the texture: browse existing textures, rename it, see how many materials share it (click the number to make a single-user copy), or unlink it. Below that:

  • Format — the DXT compression used on export: DXT1 (opaque) (the default), DXT1 (1-bit alpha), DXT3 (sharp alpha) or DXT5 (smooth alpha). The viewport previews alpha the way the chosen format will store it.
  • Mipmap Levels — 0 generates a full chain down to 1×1.
  • Pass through DDS — only shown when every image of the texture is a .dds file. Ticked, the files go into the export exactly as they are instead of being re-encoded. Mipmap Levels still applies: when the track loads, the game generates the levels a file lacks and drops any beyond it, so a .dds with no mipmaps works. Format still sets how alpha is drawn, and must match the files: a DXT1 Format for DXT1 files, DXT3 for DXT3, DXT5 for DXT5. The export reports an error if it doesn’t, if the files differ in format or size, or if an image has unsaved changes in Blender. Swap in an image that isn’t a .dds and the texture is re-encoded again.
  • Road Surface (diffuse only) — off, the texture has a Dry, Damp and Wet image. On, it has one per surface type and age (Dry/New … Wet/Worn), for textures that should change as the track wears. Only the surface types ticked in Scene Settings are exported, and each of them needs an image. A road texture missing some ages of a surface type gets a warning, and the game uses another age of that surface instead.
  • A Suggested size warning appears when an image isn’t a power of two.
  • Mirror / Clamp U / V — texture addressing instead of repeat. Only shown when the texture feeds an Object Block, Super Bowl or Interactive Object Visual shader. A second texture must use the same settings as the first.
  • Edit Material Maps — opens the physical material editor.

On export, textures whose images and settings are identical are written once. An image whose file is missing is reported as an error. The texture name rbr_blend_guard is reserved.

Previewing conditions

The active tint set and surface drive what these nodes display, so switching Active Tint Set or Active Surface in Scene Settings updates the preview.

Surface (collision) materials

Visual materials are separate from the physical materials that determine grip, sound and the particles the car throws up. Those are painted per texture with the material-map editor — see Physical Materials (Collision).

Physical Materials (Collision)

Physical materials decide how each patch of ground behaves: grip, the sound the tyres make, and the particles the car kicks up. They are painted per texture as material maps laid over the texture in the Image Editor, independent of the visual material. Every material using a texture shares its maps.

Only collision meshes use them: Near Geom Block materials with Generate Collision Mesh on (see Materials & Shading). Collision for objects such as trees, rocks, barriers and spectators is set per object with Physics Properties instead (see Mesh Types).

Opening the editor

  1. Have an Image Editor somewhere on screen.
  2. Click Edit Material Maps on an RBR Texture node in the Shader Editor. Every Image Editor switches to that texture’s image for the active surface, and the map editor takes over as a modal tool.
  3. The RBR Material Picker panel appears in the Image Editor sidebar (Tool tab).

The editor won’t edit a node that comes from a linked library — edit those in their source file.

The material picker

In the RBR Material Picker panel:

  • Material Map Transparency — how strongly the material overlay is drawn over the texture, so you can see both.

  • Material Palette — the material you paint with. Pick a category, then narrow it down:

    • Road — Tarmac (fine, medium, coarse or black ice; clean, sprinkled or covered), Gravel (US, fine, medium, coarse or British; shallow, deep or deeper), Snow (on gravel, on ice, or snowbank) and Cobble (cobble or sett). Most also have dry, damp or wet.
    • Ground — Water, plus Grass, Rough and Dirt with hardness or roughness and wetness.
    • Passthrough.

    Each material has a fixed identifying colour used in the overlay.

Editing

The editor works in modes. The current mode is shown in the lower-left corner of the Image Editor, and its controls in the status bar. Middle mouse pans and zooms in every mode.

  • Overview — shows the map regions over the texture. Click a region to move or resize it, right-click to create a new one, F to set the fallback material, Esc to exit the editor.
  • Create New Map — drag out the new region’s bounds. Esc goes back.
  • Move/Resize Map — drag the region or its handles. Click an overlapping region to switch to it, or empty space to go back. X / Y make the region span and repeat across the whole texture width / height. Delete or Backspace removes it. Tab edits its materials.
  • Edit Materials — paint the region’s 16×16 grid of cells. T cycles the tool between Paint, Bucket fill and Edit UV (which passes clicks through to the Image Editor). Right-click samples the hovered cell’s material. C / V copy and paste the whole grid, also between textures. Tab goes back to move/resize, Esc to overview.

Each region is a 16×16 grid of material cells covering a rectangle of the texture, so a single texture can carry several material areas at different resolutions. Regions may overlap.

How faces get their material

On export, each collision triangle takes the smallest region that wholly contains its UVs. A triangle that fits no region gets the texture’s fallback material, shown in the overview corner and set with F from the palette. On a material with a second texture, the triangle’s second material comes from that texture’s maps in the same way.

A collision mesh can use at most 256 distinct material maps (identical maps are merged); the export reports an error beyond that.

Conditions

Each region holds a separate grid, and each texture a separate fallback, for every surface type (dry, damp, wet) and age (new, normal, worn). The editor shows and paints the one for the Active Surface you set in Scene Settings. Switch the active surface to author or review the maps for different conditions.

A texture that isn’t a Road Surface only uses the New age: its grids follow the surface type alone, and only its New fallbacks are exported, so set those with the active age on New.

Shadows

RBR stages carry baked shadows, either into textures or into mesh vertex colours. The addon gives you helpers to bake them per tint set, and an export-time pass to keep the shadow data small.

Baking

Under Scene Settings ▸ Tint Sets ▸ Baking Tools there are two workflows, each a Prepare + Bake pair. Prepare sets up the selection and active targets for the active tint set; Bake runs Blender’s bake with the right settings (diffuse, direct + indirect).

  • Textures — Prepare finds materials whose RBR shader takes its shadow texture from the active tint set, selects those objects, and makes the shadow image the active bake target. Bake bakes into those image textures.
  • Vertex Colors — Prepare finds materials whose colour comes from a vertex-colour attribute for the active tint set, selects those objects and makes that colour layer active. Bake bakes into vertex colours.

Bake each tint set you support by switching the Active Tint Set and repeating.

What gets exported

Each shadow image is written as a greyscale shadow map in the tint set’s textures archive (.rbz), taking the brightest of each pixel’s red, green and blue. A shadow image that can’t be read (for example, its file is missing) is an export error.

Simplifying shadows on export

Shadow maps are bulky. Scene Settings ▸ Export Settings ▸ Simplify shadows (experimental) (off by default) makes the exporter deduplicate and atlas them for each tint set. It’s slower, and the result should be checked in game. With it off, shadow maps are written unchanged.

While it’s on, two thresholds appear, both as a fraction of full brightness:

  • Dedup Threshold (default 0.08) — how different two shadow triangles may be and still share one patch.
  • Gradient Threshold (default 0.04) — how far a shadow triangle may stray from a smooth gradient and still be collapsed to one.

The remaining patches are packed into atlases of at most 4096×4096; anything beyond that spills into further atlases.

See Exporting.

Exporting

Export writes your scene to RBR’s native track files in the chosen directory.

Running an export

Either:

  • Scene Properties ▸ RBR Scene Settings ▸ Export Settings ▸ Export, or
  • File ▸ Export ▸ RBR Track (.trk, .lbs, …).

Before it will run you need to set Export To to one of the directories registered in the preferences, and that directory must exist on disk.

Export always uses the evaluated scene, so modifiers are applied. Objects hidden in the viewport are still exported; to leave an object out, put it in a collection that is excluded from the view layer. Export also sets the scene’s colour management view transform to Standard.

Options

These sit above the Export button in Export Settings:

  • Compress textures (on by default) — turn off for a faster export and a bigger textures archive. See Scene Settings.
  • Keep existing pacenotes (off by default) — takes the pacenotes from the .dls files already in the export folder instead of the driveline. Use this after editing pacenotes in another tool. Start, splits, finish and end of stage still come from the driveline, as does everything else in the .dls. The export warns if there’s no .dls to keep them from, if the driveline changed since the last export (kept pacenotes are placed by distance along it, so they may have shifted), or if kept pacenotes are past the end of the driveline.
  • Simplify shadows (experimental) (off by default) — makes the stage smaller at the cost of a slower export. See Shadows.

What gets written

Export creates a folder named <Track ID>-<Track Name> in the export directory, and writes into it:

  • Tracks<ID>.ini, TrackSettings<ID>.ini and TextureFilenameMap<ID>.ini.
  • For each enabled tint set, track-<ID>_<M|N|E|O> with the extensions .trk, .dls, .fnc, .lbs, .col, .mat and .ini, plus the textures archive track-<ID>_<M|N|E|O>_textures.rbz.
  • A CustomData folder, only if fences use custom textures.

Re-exporting overwrites these files.

Errors and warnings

The result is reported in the status bar, and any messages are collected into Errors and Warnings sub-panels under Export Settings (they only appear when there is something to show):

  • Errors mean the export failed — fix them and re-export.
  • Warnings are non-fatal; the export still completes.

Each message has a magnifier button. Clicking it jumps the viewport to the offending object (selecting it and framing it) and, where relevant, selects the faces, vertices or curve points involved, the material, and the specific shader node in the Shader Editor. If the object only exists as an instance, it jumps to the instancer instead. This is the fastest way to track down what a message refers to.

After a clean export, load the track in-game to test it.

If you come across a case where the exported stage causes the game to crash, please report it.

Troubleshooting

“rbr_blender_track_io binary is missing or failed to load”

The compiled core for your platform/Blender version isn’t loaded. Check that:

  • You’re on the Blender version your release supports (see Requirements): each release supports exactly one minor version.
  • You’re on a supported platform (Windows x64, macOS arm64, Linux x64).
  • You installed the release zip for your platform (which bundles the core), not just the Python sources.

The panels still load without the core, but export won’t run.

Export directory errors

  • “No export directory” — Export To is empty or names a directory that is no longer in the preferences.
  • “Export directory ‘…’ has no path set” — give that entry a folder in the preferences.
  • “Export directory doesn’t exist: …” — create the folder or point the entry at one that exists.

See Installation & Setup.

Track Name errors

Track Name is required, and it becomes the exported folder’s name, so it can’t contain < > : " / \ | ? *, start or end with a space, or end with a dot. Characters the game can’t show (outside Windows-1252) are errors too, and any non-ASCII character gives a warning.

“Track ID … is already used in the export folder”

Another folder or loose track files in the export directory use the same Track ID. The game only registers one stage per ID, so change the ID or remove the other stage.

“Must select at least one surface type” / “…tint set”

A stage needs at least one surface type (Dry/Damp/Wet) and at least one tint set (Morning/Noon/Evening/Overcast). Tick them in Scene Settings.

“texture … has no wet image, but the stage has that surface type”

Every texture needs an image for each surface type ticked in Scene Settings, or the game won’t find that texture in that surface’s folder. Add the image, or untick the surface type. Images for surface types that aren’t ticked are left out of the export.

“No collision geometry”

No exported mesh has a material whose RBR Shader has Generate Collision Mesh ticked, so the car would have nothing to drive on. See Materials & Shading.

“Missing car location object”

Set an Empty as the Car Location under Scene Settings ▸ Track Objects; it’s where the car spawns.

Driveline errors

The driveline must be a curve with a Bézier spline of at least two points, scale 1, and no modifiers. Only the first spline is exported; extra splines give a warning. A segment that bends more than 180° is an error; subdivide it. The Scene and Object panels flag most problems before you export. See The Driveline.

“Must have an image editor on screen” (material maps)

The physical-material editor runs inside an Image Editor. Open one before clicking Edit Material Maps. It also refuses to edit nodes from a linked library — edit those in their source file. See Physical Materials.

“This file was made with the old RBR addon”

Export won’t work until the file is migrated. Back it up and click Migrate in the scene panel. See Installation & Setup.

“Texture node is missing its address sockets; refresh the RBR shaders”

The file’s RBR node trees are older than the addon. Run Recreate RBR node trees, which rebuilds them from the installed addon. It isn’t in a menu, so first turn on Developer Extras (Edit ▸ Preferences ▸ Interface), then find it with Edit ▸ Operator Search; plain F3 search only lists operators that are in menus.

Tracking down an export message

Use the magnifier button next to any error/warning in the Export Settings panels — it jumps straight to the object (and shader node) the message is about. See Exporting.

Camera settings are greyed out

Replay-camera controls are disabled until the Driveline is set in Scene Settings, because they’re defined relative to it.

Terrain looks too bright or too dark

Use the Track Settings ▸ Ground ▸ Balance meter in the World settings; aim for a value near 1.0, with Auto Balance on to set the reflectance multiplier for you.

1.0.0-rc.4

Changes since 1.0.0-rc.3.

Changed

  • Requires Blender 5.3. Blender 5.2 is no longer supported; stay on 1.0.0-rc.3 for 5.2. See Requirements.

1.0.0-rc.3

Changes since 1.0.0-rc.2.

New

  • Keep existing pacenotes export option, for pacenotes edited outside Blender. See Exporting.

Changed

  • Only the texture images for the surface types ticked in Scene Settings are exported.
  • A texture with no image for a ticked surface type is now an export error. A road texture missing some ages of a surface type gets a warning instead.
  • Pass through DDS textures now use Mipmap Levels: the game generates the levels a .dds lacks and drops any beyond it, and a texture’s .dds files no longer need the same mipmap count. Migrated textures keep the count the old addon exported. See Materials & Shading.
  • Picking the Brake Wall keeps its existing setup, including its respawn areas, instead of resetting it.
  • The Brake Wall field shows that it takes a curve, and the Sun field’s tooltip says which objects it lists.

Fixed

  • Exporting failed when the brake wall had no respawn areas set.
  • A brake wall linked from another .blend gave an error when picked, and lost its respawn areas on export.

1.0.0-rc.2

Version 1 is a rewrite of the addon. Most concepts from v0.x carry over, but a lot works differently. To bring an old .blend across, see Files made with the old addon: the Migrate button handles most of the changes below for you.

New

  • Installs as a Blender extension from its own extension repository, so updates show up in Blender. See Installation & Setup.
  • Much faster exports. Exporting runs in a compiled core, with work such as texture encoding spread across all CPU cores.
  • Several tint sets in one stage. Tick each of Morning, Noon, Evening and Overcast that the stage supports; each has its own weathers. The RBR Tint Set shader node routes a different input per tint set. See Scene Settings.
  • Shadows. Baked shadow textures are exported, with Baking Tools to bake them per tint set and an option to simplify them on export. See Shadows.
  • Textures are encoded to DDS on export, from any image Blender can open (PNG, TGA, JPEG, …), using each RBR Texture’s Format and Mipmap Levels. There’s no need to make .dds files by hand. Existing .dds files can still be exported as they are with Pass through DDS. See Materials & Shading.
  • Texture addressing: Mirror and Clamp per axis, for object blocks, super bowl and interactive object visuals.
  • Clouds are previewed in the viewport sky, from the game’s cloud textures. See World Settings.
  • Auto Balance keeps the terrain’s reflectance balanced as you change the lighting. See World Settings.
  • Fences are previewed in the viewport by a geometry nodes modifier, can be drawn along curves as well as meshes, and can use custom tile and pole textures. See Fences & Brake Walls.
  • Instances (collection instances, geometry nodes instances) export as they are. The Export real instances option is only needed when each copy’s modifiers must be evaluated at its own position. See Instances.
  • Export errors and warnings are listed under Export Settings, each with a button that jumps to the object, faces or shader node it refers to. See Exporting.
  • An option to compress the textures archive. See Exporting.

Changed

  • Object types are gone. What an object exports as depends on where it is set:
    • Geometry types (geom blocks, object blocks, water and reflection objects, super bowl, clipping planes, interactive object visuals) are set on the material, with the RBR Shader node’s Type. See Materials & Shading.
    • Mesh types (static shape collision, interactive objects, fences, water splashes) are set on the mesh. See Mesh Types.
    • The driveline, car location, registration zone and brake wall are picked in Scene Settings ▸ Track Objects.
    • The sun is picked per World. See World Settings.
  • What gets exported is decided by the view layer: every object in it is exported, including objects hidden in the viewport. To leave objects out, put them in a collection excluded from the view layer. See Exporting.
  • Shader inputs only read Attribute, RGB, Value and RBR Tint Set nodes, and textures only come from RBR Texture nodes. To use a colour attribute (vertex colours), read it with an Attribute node; the Color Attribute node isn’t read any more (the migration swaps them for you). The old addon baked shader node maths into vertex colours on export; anything more involved now belongs in geometry nodes: compute it there, store it as an attribute, and read that attribute in the material. The optional migration moves existing shader node maths into a geometry nodes modifier for you.
  • Collision shading is a shader input on collision geom blocks, instead of the fixed RBR_SHADOW vertex colour layer.
  • Driveline events: start, the two splits, finish and end of stage are their own fields on the driveline, not pacenotes. See The Driveline.
  • A camera following a spline is positioned with an Offset along it, instead of an offset in frames. See Replay Cameras.
  • Static shape collision meshes take their Physics Properties preset on the mesh. Soft collision volumes are empties with Soft Collision ticked, instead of empties parented to a collision mesh. See Object Settings.
  • An interactive object points at its collision mesh from its own mesh settings, instead of having it as a typed child.
  • Wet/water surfaces are now the Water Splash mesh type, with a Weathers option for all weathers or wet only. See Mesh Types.
  • The brake wall is a curve, with respawn areas given by a collection, instead of a mesh with inner and outer vertex groups. See Fences & Brake Walls.

Removed

  • The per-object Exported toggle, and hiding objects to keep them out of the export: use the view layer instead (see above).
  • Face map levels of detail on object blocks.

Downloads

Installation

Just download the zip file, and install it directly in Blender’s preferences pane. You don’t need to unzip it. If you had an old version installed, you must restart blender after installing the new version. The addon should handle migrations between versions when you open a blend file using an older version.

Releases

v0.3.3 ⭳ (zip)

What’s Changed

  • Requires blender 4.5.5
  • Fixes material map editor issues
  • Fixes phantom file size increase (caused by above bug - if you’re affected, the first load of your project may take some time - just wait for it to complete)

v0.3.2 ⭳ (zip)

What’s Changed

  • Add support for blender 4.5 (may work in 4.4, untested)

v0.3.1 ⭳ (zip)

What’s Changed

  • Modifiers are now applied correctly during export

v0.3.0 ⭳ (zip)

What’s Changed

  • Major version bump to reflect the requirement for blender 4.0
  • Fix ‘key “Factor” not found’ error when baking during export

v0.2.11 ⭳ (zip)

What’s Changed

  • Add support for blender 4.0
  • Fix errors caused by numpy 1.23
  • Support baking for the new unified mix node (color + float only)

v0.2.10 ⭳ (zip)

What’s Changed

  • More lenient export for specular textures with respect to different DDS settings/sizes
  • Small internal fixes, e.g. removing mat check for ground material export

v0.2.9 ⭳ (zip)

What’s Changed

  • Fix a bug in the material exporter that didn’t account for non-“road-surface” textures using new material maps for all of new/normal/worn combinations. Typically this means that non-“road-surface” textures exported prior to this version would have the correct material maps for new but the incorrect ones for normal/worn (likely using the blank default undefined material). Thanks to NaroGugul for finding this bug.
  • Deduplicate material maps during export. This means it’s much less likely for you to run into the 256 material map limit, because the common case of using fallback maps will often be deduplicated (among others). The deduplication happens for each set of dry/damp/wet/ and new/normal/worn combinations, for example if you have two separate textures which use pixel-for-pixel identical material maps for every combination of dry/damp/wet and new/normal/worn (all 9 of them for road surface textures, 3 for non road surface), they will be deduplicated. But if just one pixel differs, they will still be separate material maps. Note that the position and size of the material map does not matter, just the content of the pixels.
  • Remove some leftover debug logging from the fence exporter.

v0.2.8 ⭳ (zip)

What’s Changed

  • Add new “Sett” material. This is like cobble, but a bit grippier. It can be found as a sub-type of cobble in the addon material menu.
  • Check that the number of wet/water surfaces is less than the maximum supported by the game. 512 is the combined limit, more surfaces will not work in game.
  • Tweak “car ambient lighting” minimum value in the blender UI. It can now go lower than 1.0.
  • Add missing “car deep shadow alpha” entry to the tracksettings ini exporter.
  • Make driveline events orange to stand out among pacenotes.
  • Check that there are a maximum of 2 split events on the driveline when exporting.

v0.2.7 ⭳ (zip)

What’s Changed

  • Remap mat file when exporting. Previously the addon exported every material map it could find, even if they weren’t used, which meant stages could easily exceed the limit for the material map count (256), which wasn’t being checked. With this version, the limit is checked, and we only export material maps which are used in a collision mesh somewhere.
  • Fix shading_type warning. This was removed some time ago, but I’d missed a reference so it would print spurious warnings in blender.

v0.2.6 ⭳ (zip)

What’s Changed

  • Exportable wet and water surfaces. There’s a new RBR object type, “Wet Surface”, which is expected to be a simple mesh consisting of only quads. Each quad is made into a wet surface object. This plane defines the visual water splash effect and gives information to the physics engine about the depth of the water, so it should be placed at the surface of the water. It can be used either for water splashes (active in all weathers, dry/damp/wet), or for puddles (active only in wet weather).
  • Fix fallback material bug. Previously it was possible to open a new material editor without closing the previous one, and setting a fallback material would set the material for all active editors. Now it is impossible to open more than one editor - you must close the open editor before opening another.
  • Raise max pacenote position from 10k to 100k. So 10km+ stages will have an easier editing experience.
  • Be more delicate when setting up sky node automatically. Now it automatically sets up the sky node for the Eevee output, leaving the user nodes for the Cycles output untouched. This makes it easier to switch between skyboxes without losing Cycles baking setups.
  • Fix issue with blender shaders causing the colour to become black when the blending/alpha value is 0.
  • Remove the RBR/Blender shader mode switch. It’s now always in RBR mode. The blender mode was intended for helping baking, but it’s better to use a separate cycles only output node for that.

v0.2.5 ⭳ (zip)

What’s Changed

  • Exportable fences (for the fnc file). There’s a new object type, “Fence”, which allows exporting simple meshes to in-game fences. The mesh must be very simple: each vertex is the base of a pole, and the edges between the vertices define the tape or netting. A simple string of edges works best - try creating the fence as a “poly” curve, then convert it to a mesh later. You can also define a vertex colour shading layer which allows defining a multiplicative shading per fence pole. It must be a “Vertex Byte Color” type.
  • Use faster convex mesh check (thanks aesthetic_sofa).

v0.2.4 ⭳ (zip)

What’s Changed

  • Add fallback materials to the material map editor. These can be set from the “overview” mode in a given texture by pressing the F key. This will use the currently selected material (in the material palette panel). Note that this is per condition (dry/damp/wet, new/normal/worn). For simple textures you don’t even need to draw material maps now, just set the fallback material and that will be used everywhere. The fallback material is equivalent to having an infinitely large material map with the previous addon version - it’s used as a last resort.
  • Make convexity check for shape collision meshes and interactive objects more robust.
  • Fix helicam export.

v0.2.3 ⭳ (zip)

What’s Changed

  • Rework exporter cleanup to be much more robust. The exporter should never leave any extra data behind after export. Previously it would do a reasonable job cleaning up objects but leave lots of duplicated meshes and materials behind. Now it should be totally reliable in cleaning up any duplicated data.
  • Source object names are propagated through the exporter better. This should improve a number of error messages, which would reference objects which were duplicated (hence the names changed). Not all error messages have been switched to this yet.
  • Rework interactive objects (see below)
  • Add ‘Instancer’ object type. Objects set to this type will have the “Make instances real” operator auto applied (with ‘use hierarchy’=True) before detecting other RBR object types for export. You should check that this produces the right thing before blindly exporting using this object type.
  • Improve export of materials with multiple output nodes. Cycles nodes will now always be ignored.

Interactive object rework

  • Rework interactive objects. Your file will auto migrate to the new structure, which is very similar to the old structure. The collision mesh object must still be a child of the interactive object, but the RBR object type is now “Interactive Object Collision Mesh”, not “Shape Collision Mesh”. The object kind is now set on the collision mesh object, not the interactive object.
  • Interactive objects can now have modifiers applied upon export (there is a checkbox in the RBR object settings for this). This will cause the object mesh to be cloned for each instance of the object (and they will no longer be instanced in the RBR files). The collision meshes do not get modifiers applied because there are strict limits on the counts. The kind of modifiers that will be useful here are ones which alter colour information, for example to transfer shading data from the ground mesh. If you have hundreds of objects using this setting, export will be fast if they only use a single blender material, and slow if they use more than one. This is a blender limitation, the operators to “separate by material” are slow when there are lots of objects.
  • Fix a bug for resolving interactive object and shape collision mesh data by name. Now you can use interactive objects from libraries reliably.
  • Enforce that scale is pre-applied before export for interactive objects and shape collision meshes. Scaling does not work properly in game.
  • Check that collision meshes (shape colmesh and interactive object colmesh) are convex when exporting. They will have no collision in game if they are not.

v0.2.2 ⭳ (zip)

What’s Changed

  • One tint set (morning, noon, evening, overcast) per scene. This is a big change to the addon, since previously we had multiple tint sets in a single scene. When you load up your blender file, the addon will make linked duplicates of your scene for each of the tint sets you were using (the ones which had weathers), and migrates the weathers for each one. Your original scene is not touched! You should verify that the newly created scenes export as expected before removing your old scene. This change means you can now have different cameras and drivelines for each tint set, and arranging those cameras makes sense because they each have their own timeline.
  • Individual weather settings have been moved to World. These were previously all stored in the scene, but moving them to the world means that you can now link them between tint set scenes or files. Each weather you have has a World object associated with it, and each Scene links to these weathers in a similar way to the old weather system.
  • Add support for exporting vertex colours from new style attributes
  • Add support for exporting UV maps from new style attributes
  • Fix infinite recursion bug for weirdly degenerate geometry in the collision mesh
  • Add the remaining TrackSettings.ini options. These won’t be visible in blender, they change things like shading on the car and script characters.
  • Fix sky shader for blender 3.2. There was an undocumented change in the camera data node.

v0.2.1 ⭳ (zip)

What’s Changed

  • Support RSF folder structure
    The addon preferences pane now has an options for “Original” and “RSF”. The guide has been updated to reflect this.
    “RSF” stages will be automatically placed into their own folder (and will be immediately loadable with no tweaking of ini files).
    “Original” stages will be placed into the /Maps directory (this is the behaviour of addon version v0.2.0).
  • Export Tracks.ini
    There are new options in the export pane, e.g. stage name, author, track surface, etc. For non-RSF installations you will still have to copy the contents of Tracks<track-id>.ini over to the main Tracks.ini file, the same as before (and the same as the tracksettings file).
  • Warn user when driveline scale is not 1, this could lead to pacenotes in the wrong places.
  • Fix click and drag behaviour in the material map editor for blender 3.2
  • Pixel perfect tweaking of material map highlighted square

v0.2.0 ⭳ (zip)

The first public beta release. This is not a finished product, there are still missing features and bugs to fix, but it’s good enough to export tracks.

Requires blender version 3.1 or 3.2.

Guide

This is not a full track creation guide, just the very basics to get started exporting stages to RBR. Eventually we’ll have a full guide on best practices and techniques, but until then it’s expected that you already know what you’re doing or you can learn from others via the track building Discord server.

Note that since the addon is still in beta, things are subject to change.

Please note that your blender language must be set to English in order for the addon to work correctly. Eventually, when this bug is fixed, this restriction will be lifted. But for now, use English or you’ll run into all sorts of problems.

Addon Setup

After installing the addon, you should set up your RBR export directories. Find the RBR track addon in your list of addons in the blender preferences pane, and at the bottom click “Add RBR export directory”.

Addon preferences

You can add as many as you like for different RBR installations. Name them something suitable with the left hand field, and make sure the directory points to the Maps directory of the RBR installation. Set the RBR distribution type appropriately - for RSF stages will be placed into their own subdirectory automatically, but Original will just be placed into the Maps directory.

When you’re done, save the preferences. If you just close the window without saving, it won’t work.

Save preferences

“Hello World”

We’ll go over the minimum set of things you need to export your first track for RBR. Naturally this will only use a couple of features (also known as RBR object types), for a more comprehensive overview see Features.

This is not a blender tutorial - just a tutorial on how to export a track.

Create a new blend file and clear out any objects so you have a blank canvas.

Ground

Let’s start by creating the ground mesh. Go to Add > Mesh > Grid to create a simple flat ground plane, and scale it up by 10 so it’s big enough to drive on.

In the object properties panel, find the section named “RBR Object Settings”. Change the type to “Geom Block”, and enable “Generate Collisions”. This is the object type you should use for your ground mesh and buildings. Leave it set to “Near”.

Grid object settings

Now we’ll set up a simple textured material. Create a new material for your object from the “Material Properties” panel. Open up the shader editor:

Shader editor

Remove the “Principled BSDF” shader node. For exporting to RBR, you must use the shader nodes provided by the addon. Add -> RBR Nodes -> RBR Shader will add the main shader node which you can use for any RBR object mesh, although not all features are supported for all object types. Enable “Diffuse Texture 1” to use a texture for this material.

Add an RBR Texture node, and click “New” to create a new RBR texture. Rename it to something suitable, and connect your nodes up as such:

Node setup

The RBR Texture node handles dry/damp/wet and new/normal/worn conditions. new/normal/worn are available for textures marked as “Road Surface” - this can only be used in diffuse texture slots, and it enables the texture image to vary based on road condition. We’ll just use dry for now. Select an image to use for dry conditions. All textures must be DXT1/3/5 - we use DXT1 which is best for opaque textures. The sizes of the texture must be a power of two, e.g. 512, 1024, 2048, etc - but it does not need to be square.

Switch to material preview mode to view what it will look like in game.

Material preview mode

Your mesh will appear totally black - we’re missing a couple of things!

Switch to the “Scene Properties” panel, and scroll down to find “RBR Track Settings”. This governs the supported surface types for your stage (dry/damp/wet) and the weather settings supported by the stage. By default, we are exporting a morning “tint set” (and the resulting track data is stored in files with _M suffix). One track can have multiple tint sets, and in blender each tint set requires a new scene. For now, we’ll just leave it as morning and only export one tint set.

RBR Track Settings

Click the + button to add a weather type to the stage.

This will create an empty slot for putting a new weather type in. In Blender, weathers are represented by World objects, and you can select the default world from the dropdown box which appears:

RBR Track Settings

The default is “crisp clear” weather. We’ll leave everything as default, but you can tweak the values by going to the World panel (the button immediately below the scene panel button) and finding the “RBR Track Settings” panel there.

RBR Track Settings

The addon provides a real time preview which exactly matches the way your stage will appear in game with the same weather settings. In the 3D editor view, click Add > Light > Sun, and set the “RBR Object Type” to “Sun”. The sun direction will be taken from this object.

With that, your texture should now be visible on your object:

Tarmac

We’re not quite done with the ground yet, we need to do physics mapping so the addon knows what materials our mesh is made from. Open the UV or image editor in one pane, and the shader editor beneath it. To physics map a particular texture, click “Edit Material Maps” in the RBR texture node. The image will open up in the image editor:

Material editor

The controls of the material editor are displayed at the bottom of the screen.

From “Overview” mode, right click to start creating a new map. Note that the controls at the bottom will update depending on the editor mode! In “Create New Map” mode you can click and drag to define a new material map area. When you release the button you’ll be back in overview mode, where you can select your map to resize and move it:

Material editor

Tap the X key and the Y key to mark the map as repeating in X and Y directions. This will lock the map to the texture dimensions, and allow the addon to be smarter when exporting if your UV map does not fit within the texture bounds. Tap Tab to enter material painting mode, then T to switch to fill mode. Click anywhere within the map to fill the area with a material. By default it’s clean, dry tarmac, but you can pick the material from the scene panel under the “RBR Material Map Editor” heading:

Material editor

“Repeating” material maps like the one above can only work with UV triangles that are less than half the width and height of the image (the technical reason for this is that RBR does not support UV wrapping on the collision mesh). For the larger triangles, we need a “fallback material” which will be used anywhere the fine grained maps don’t cover.

Tap Esc to go back to the overview mode. The “Fallback Material” is displayed in the bottom left. Tap the F key to set the fallback material from the currently selected material in the material palette.

Material editor

This fallback material and the materials painted within each material map can be different for each dry/damp/wet and new/normal/worn combination. You can select which one you are currently editing from the scene panel “Viewport” properties.

Surface types

Tap Esc a few times to back out of the material map editor, and switch back to the 3D viewport.

Driveline

Click Add > Curve > Bezier and set the “RBR Object Type” to “Driveline”. This curve defines the path the car is expected to take through the stage. It also drives the pacenotes, which you can add in the “RBR Driveline Settings” panel in the object properties pane. A few pacenotes are special events defining the start line, two splits, the finish line, and the end of the stage. The end of the stage will immediately end the stage when the car reaches it.

Scale the driveline curve up to fill the area. Make sure you apply the scale (see Object > Apply > Scale), or the pacenotes won’t appear in the correct places. Add the special events and space them out along the driveline:

Driveline

Technically these aren’t needed just for quickly testing, but they are needed for your stage to function correctly. Try to ensure the driveline covers from before the start of the stage until after the end to avoid accidental penalties.

Car Location

Click Add > Empty > Arrows and set the “RBR Object Type” to “Car Location”. This is the place the car spawns when the stage is loaded. It should be slightly behind the start line, or the driver will get a penalty when the stage starts.

The car spawns pointing along the Y axis of the arrows, with the rear axle aligned with the X axis.

Export Settings

Go to the scene panel and find “RBR Export Settings”. This is where you pick the directory you want to export to, and give your stage an ID for testing. The ID you choose depends on your installation - you need to choose an ID which isn’t already in use (or you’ll overwrite those files). Check your maps folder and pick a sufficiently large number - for me, track 101 is free.

Export

With that, click “Export” and your stage should be created in your export directory.

I suggest opening the console Window > Toggle System Console because the addon will log what it is doing, useful for when exports fail or when exports take a few minutes if your stage is complicated. When exports do fail, the addon should emit error codes like E0101. See Errors for explanations of error codes emitted by the addon. If you don’t get an error code, please let me know, because that’s probably a bug.

Testing

Actually driving the stage requires different steps depending on your RBR installation. For RSF, you should be able to find your stage in the Test stages category without having to edit any other game files. For other plugins, e.g. the Czech plugin, you’ll need to manually append the contents of:

  • Tracks<track-id>.ini to Tracks.ini
  • TrackSettings<track-id>.ini to TrackSettings.ini

After that, launch your game, and drive your new stage!

Conclusion

Hopefully that gives you a quick overview of where to start with the track exporter addon. I must emphasise that this is the bare minimum needed to get a stage to load in RBR. For a more comprehensive overview of object types see Features.

Features

Features are listed by their name in RBR, with comments summarising the level of support for each format. If anything is outdated or wrong on this page, let me know.

🌍 Geom blocks

Used for opaque static geometry (i.e. the world). This geometry is split into chunks, and these chunks are only rendered when they are within the “render distance” circle, which is variable along the driveline. The mesh can have vertex colours, two diffuse textures (blended by the vertex colour alpha channel), a specular texture, and a shadow texture. The diffuse and specular textures can be animated (UV animation, useful for water). There are 3 levels of detail: near, any, and far.

These levels of detail work as such:

  • Near: High detail mesh which is visible when the chunk is closer than 600m
  • Any: Mid-low detail mesh which is always visible
  • Far: Very low detail mesh which is only visible when the chunk is further than 550m away

For RenderQuality=low there are some differences:

  • The distances the game switches between near and far geometry is much closer
  • The far geometry is always used for car reflections

Typically the geometry the player can drive on is high detail, and marked as “near” geometry, and it has a corresponding very low polygon copy placed as “far” geometry. This is the primary LOD mechanism of RBR, and while very simple, it works well. Geometry further than 40m away from the stage is lower poly (because the player can’t get to it since the brake wall blocks them) and marked “any”.

Blender AddonWallaby
No shadow support yet [0]Named “Ground meshes”
One diffuse texture
No specular texture
No level of detail [1]
Partial shadow support [2]
No animated texture UVs

[0] Shadow texture generation is not yet complete, but will be soon
[1] Everything is marked “near”, so even if zfar was set correctly, which it isn’t, the maximum view distance would be 600m.
[2] Partial shadow generation via a web service. There is a limit on the size of the track.

🌲 Object blocks

Used for static geometry with transparent textures, usually foliage. This geometry is split into the same chunks as the geom blocks. It only has one diffuse blended textures - no specular or shadow textures. This geometry can sway in the wind: each vertex has individual control over the amplitude, frequency, and phase offset of the oscillation. There is some support for levels of detail, geometry can be put into a low quality buffer or a high quality buffer. This cuts down on geometry rendered when far away, but also is altered by the user settings for high/low quality (although I suspect the setting is always high these days). Import the vanilla stages to see the difference between buffers.

Blender AddonWallaby
Full supportNamed “General meshes”
Partial sway support [0]

[0] This feature was a simple toggle in version 0.28, and it made all of the “general meshes” sway in a predetermined way. It was removed in later versions.

🌊 Water objects

Geometry which can use transparent textures, especially used for planes of water (like lakes). This geometry is always transparent, no matter the low/high settings of the user. [TODO: check this]

Blender AddonWallaby
Full supportNot supported

🌊 Reflection objects

Used for faking reflections - inverted geometry that exists under bodies of water. Has vertex colours and two diffuse blended textures.

Blender AddonWallaby
Full supportNot supported

🏔 Super bowl

This is for background geometry: terrain that is so far away the user could never reach it. Useful for distant mountains, for example. This geometry is always drawn, no matter the camera settings or how far away the camera is, so keep the polygon count low. Like reflection objects, it has vertex colours and up to two diffuse blended textures per polygon.

Blender AddonWallaby
Full supportNamed “Scenery”
Single diffuse texture per polygon

✂ Clipping planes

Simple “transparent” geometry, usually large rectangular planes, which occlude geometry behind them from the cameras view, but aren’t directly visible themselves. Useful to cut down on the number of triangles being rendered. Available in two flavours:

  • Directional planes which block only in one direction
  • Omnidirectional planes which block in both directions
Blender AddonWallaby
Full supportFull support?

🛑 Brake wall

A soft wall around the track which prevents the car from driving too far away from the stage. There’s only one, so if your stage is a circuit, it must be on the outside - you can’t have one on the inside of a loop. The inner wall defines where the slowing effect starts, and the outer wall is impenetrable.

Blender AddonWallaby
Full supportNot supported

💧 Wet/water surfaces

Simple quads which define water splash areas. Water surfaces always give water splashes, but wet surfaces only work under wet conditions.

Blender AddonWallaby
Full supportNot supported

🌐 Ground collision mesh

The ground collision mesh is an optimised structure, entirely separate to the visual geometry of the world (at least in the game files). It contains information about surface materials, and each polygon can have two materials blended together, much like the two diffuse textures of geom blocks. It also has some lighting information baked in, and this is used for shading the car and dust.

Blender AddonWallaby
Full support (generated)No blending
No shading information [1]

[0] The addon does not expose export of this directly, instead it is generated from your “near” or “any” geom blocks, if you check the “generate collision mesh” checkbox on an object. The primary reason for this is simplicity (track creators only need to care about the material mappings for each texture), but also this makes it easy to support material blending which matches the texture blending of the geom block.
[1] Wallaby writes fixed values here instead, which causes a faint flickering on the car as you travel across polygons.

💥 Static shape collision meshes

While some tracks have made use of the ground collision meshes for things like tree trunks, it’s not really suited for that: the car can get stuck inside the tree trunk. These “shape collision meshes” are simple [0] closed meshes which are instanced: there’s a “root mesh” stored in the files, and then all of the uses of that mesh just contain position, rotation, and scale information. The mesh has a physical material, and can also have a soft volume which acts physically like a bush or a snowwall.

Blender AddonWallaby
Full support [1]Partial support for soft volume [2]
Time consuming to place in the editor [3]

[0] Max of 30 vertices, max of 84 edges, and max of 56 faces.
[1] Instancing is determined by the underlying mesh data of each collision mesh object. Duplicates must be linked in order for instancing to work. Soft volumes are added as “empty” child objects of the main collision mesh, either boxes or spheres. In the case of entirely soft objects like snow walls, the parent mesh should be empty too. Import vanilla RBR stages to see how the snow walls are set up.
[2] It’s possible to create bushes if you know the correct material ID.
[3] You can’t grab the objects and move them with the mouse, you must enter new coordinates manually.

🚩 Interactive objects

Closely related to static shape collision meshes (the collision meshes are stored together and share the same limitations), interactive objects are dynamic physical objects which can be pushed around by the car. This is often used for signs, fences, and concrete blocks. The choices of object are relatively few, and their mass and inertia are baked in and not user customisable, so it may require experimentation to find the right setting. The visual mesh data can have vertex colours and two diffuse textures. Note that these objects are “sleeping” until interaction with the car, so they can be used to construct destructable fences like the vanilla stages.

Blender AddonWallaby
Full support [0]Single texture

[0] The visual geometry (the “interactive object”) is the parent object, and the collision mesh should be a direct child object. Has the same instancing constraint as static shape collision meshes.

🚧 Dynamic fences/tapes

Sections of coloured tape or flexible orange plastic fences which can be interacted with.

Blender AddonWallaby
Full supportFull support [0]

[0] Click to place, but altering fence positions after placing requires manual entry of coordinates

🦌 Animations

Animations of deer crossing or spectators running from the road can be triggered at points along the driveline, with some element of randomness.

Blender AddonWallaby
No support yetUse of existing animations [0]

[0] Small bugs like animations having incorrect rotations in the preview

🐦 Sound Triggers

Spheres which cause the bird sounds to play in replays.

These are not used by the game

Blender AddonWallaby
Full supportFull support [0]

[0] Manual coordinate entry

🎥 Cameras

Replay cameras are placed along the road and are triggered at particular points along the driveline. They can be steady cameras, or handheld (i.e. shakey). The FOV and position of the cameras can be animated by bezier splines according to driveline position, and the position animation can be used to create helicams (along with the helicam noise setting).

Blender AddonWallaby
Full supportNo position animation
Buggy [0]

[0] Adding markers/triggers between existing ones can result in having to delete them all and recreate them. Additionally, placing cameras correctly requires all geometry to be active, but this lower FPS substantially.

⤴ Driveline

The driveline is a bezier spline which determines when pacenotes are read out, when events are triggered (start/finish/checkpoints), position animations of cameras, and the render distance. It’s also used to determine where and in which direction to place the car when a driver calls for help.

Blender AddonWallaby
Full support [0]No camera position animations
No render distance [1]

[0] Pacenote support is limited to native RBR notes, and they are added in the driveline object directly. Animations are handled by blender, we treat the time in the timeline as the distance along the stage. When editing the driveline, you’ll notice the addon will reset your handles to keep the spline compatible with RBR: the handles must be equal length and facing in opposite directions. For the render distance, create an empty object of type circle, and make the driveline spline the parent object. Set the RBR object type to render distance, and set X rotation to 90 degrees so that the circle lies flat on the ground. You can alter the empty display size to control the render distance, and this can be animated over time. Import vanilla stages to see examples of how it’s often animated: it’s kept to the minimum size possible without causing geometry to pop in or out. If you need a display size > 1000m, you can do this by scaling the object, the exported render distance is a multiplication of the scale and the empty display size.
[1] Wallaby doesn’t write the render distance at all, and this would cause the value to be unpredictable when starting a stage - it would use the last known value from a previously driven stage. A FixUp patch fixed this recently, so it’s always reset at the start of a stage.

🖼 Texture

RBR textures are packaged into a .rbz file (zip format) and a .ini file controlling texture options.

Blender AddonWallaby
Autogeneration of .rbz and .iniManually created
Guards against slow loading [0]

[0] RBR likes textures with width and height being integer powers of two (2^N). If a texture isn’t this size, it’s rescaled to be this size while the stage loads, and this process is really slow. Just one badly sized texture can change loading times from almost instant to painstakingly slow.

Assets

Start Clock ⭳ (zip)

Unzip it somewhere sensible, and in your stage file go to File > Append and select both of the objects. Do not rename them, the game uses the name to make the countdown timer work automatically.

Bisanne ⭳ (7z)

A rip of the native stage Bisanne, which you can use to understand approximately how the objects should look. Note that this is was produced by the importer, which does not yield an exportable stage. Nor is this file “perfectly structured” because all geometry is pre-merged, the ground collision mesh is separate to the ground visual mesh, etc - so take it with a grain of salt and ask questions in the Discord if you’re confused about something.

East-West ⭳ (7z)

As above, but a native gravel stage.

Errors

These are the error codes emitted by the addon. This is intended as a reference.

E0001

This error indicates that your brake wall object has too many vertices.

RBR has a hard limit on the number of points a brake wall can have, equal to 214 (16384 individual points).

Lower the density of your brake wall mesh to fix this.

E0002

When specifying your brake wall object, you must set vertex groups to tell the addon which side of the brake wall is the inside and which side is the outside, and optionally which sections of the wall should cause the car to respawn when it comes to a stop within them.

This error means the addon was not able to find one of the vertex groups in your brake wall mesh. Check your RBR object settings and mesh, ensure the vertex groups exist in the mesh data, and ensure that the object settings are pointing to the correct vertex groups.

E0003

Each brake wall vertex must be assigned to either the inner or the outer vertex group.

Check the vertex at the given position is assigned to one of the two groups. It must be assigned to exactly one of them.

E0004

This error indicates that your brake wall object has no vertices, so it could not be exported. Either disable exporting this object, or add some brake wall points around your stage.

E0005

Each inner vertex of the brake wall must have exactly one pairing outer vertex, and the vertex groups of each should reflect this.

The addon was not able to pair up inner and outer vertices, because there are different numbers of each.

E0006

The brake wall object must be a strip of rectangles surrounding the stage. This implies two rules for each individual vertex:

  1. Each inner vertex must have three edges.
  • One connecting to the corresponding outer vertex
  • Two connected to the adjacent inner vertices on either side
  1. Each outer vertex must have three edges.
  • One connecting to the corresponding inner vertex
  • Two connected to the adjacent outer vertices on either side

Check the vertex at the given world position and ensure it matches the above rules. If it looks correct, try cleaning up the mesh manually (deleting the edges around this vertex and recreating them) or automatically (using the operator Mesh > Clean Up > Merge by Distance).

E0007

This error is emitted when parsing an invalid .col file, or a .col file which is not really a .col file (perhaps a bad renaming, or you just selected the wrong one).

E0008

The addon could not read the .col file due to a bad collision tree data type.

E0009

The addon could not read the .col file due to a bad collision tree type.

E0010

The .col file contained an unexpected collision tree data type.

E0011

The .col file contained vertex data in an unexpected position, so the file could not be read.

E0012

Padding bytes contain non-zero data in water surfaces, which indicates parsing has gone wrong somehow.

E0013

Could not unpack the col file data due to a bad root file node offset within the file.

E0014

Found unexpected collision tree type in the col file root, meaning unpacking was not possible.

E0015

Found non empty branch traversal structure in the col file root tree.

E0016

Trying to unpack the brake wall at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0017

Trying to unpack the wet surfaces at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0018

Trying to unpack the water surfaces at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0019

Trying to unpack the vertices at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0020

Trying to unpack the root tree at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0021

Trying to unpack the sub tree nodes at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0022

Trying to unpack a subtree at a bad offset, this indicates either a bug in the parsers or an invalid col file.

E0023

Trying to unpack a subtree but encountered a bad subtree type. The addon can only unpack relative addressed subtrees.

E0024

Trying to unpack subtree vertices but encountered a bad offset.

E0025

Encountered an unexpected type when unpacking a subtree.

E0026

Trying to unpack subtree collision tree but encountered a bad offset.

E0027

Did not unpack all bytes of the col file. The entire col file should be consumed by the parser.

E0028

A binary parser overflowed its bounds. The format might be bad, or this might be a bug in the addon.

E0029

A binary parser overflowed its bounds when unpacking raw bytes. The format might be bad, or this might be a bug in the addon.

E0030

A binary parser overflowed its bounds when unpacking raw bytes at some particular offset.

E0031

The parser attempted to skip some padding bytes, but the bytes were non-zero. We expect them to be zero so we can ensure round tripping by default, and this may indicate a bug in the parser, or a badly formatted file.

E0032

The parser tried to unpack a length prefixed array, but the length found in the file was not evenly divisible by the expected item size.

E0033

When unpacking a size or length value from a binary file, the addon encountered a number so high that it would indicate something has gone wrong (for example a length indicating billions of items in a list).

E0034

Couldn’t parse a 3 length vector value from the given ini string.

E0035

The DDS file header has an incorrect “magic” value, indicating that this might not be a DDS file or it is somehow corrupted.

E0036

The DDS file is missing some flags which are required by the DDS specification. Check your file is actually a valid DDS file.

E0037

The DDS file has an unexpected value for pixelformat size.

E0038

The selected DDS file is uncompressed. You must re-export your texture using DXT1/3/5 compression.

E0039

The selected DDS file is compressed but has an unexpected codec. You should export using DXT1/3/5 compression, or if you really require non-DXT compression, open a ticket so this constraint can be relaxed.

E0040

Something went wrong when parsing the given DDS file. See the sub error code for more details.

E0041

The DLS parser encountered an invalid trigger kind when parsing the sig trigger data.

E0042

The DLS parser encountered an invalid trigger kind when parsing the boolean channel data. Only activation triggers are supported.

E0043

The DLS parser encountered some boolean channels, but they are currently unsupported because none of the native tracks have this data. If you run into this, please open a ticket.

E0044

The DLS parser encountered an invalid trigger kind when parsing the real channel data.

E0045

The real channel data contains a non-zero ‘time-based’ value, but the addon expects it to be zero. If you run into this, please open a ticket.

E0046

The animation channel descriptors have a fixed size in all native stages, but when parsing this DLS file we encountered a different size. If you run into this, please open a ticket.

E0047

When unpacking a spline interpolation type, the parser left some bits behind. This could be a bug in the addon, or an invalid file.

E0048

The DLS trigger data parser expected the redundant unused ID to equal the real ID of the trigger data. All native tracks obey this principle.

E0049

The DLS file header was invalid, indicating this might not actually be a DLS file.

E0050

The DLS file parser missed some bytes when parsing a certain section type.

E0051

The DLS file does not contain a required section, and is therefore invalid.

E0052

The FNC file contains an unexpected fence type value.

E0053

The FNC file contains an invalid version, or the file is not an FNC file.

E0054

The FNC file has an unexpected number of texture names.

E0055

A material in the MAT file has a bad bitmap size. The file might be invalid, or not a MAT file.

E0056

The shadow.dat parser missed bytes at the end of the file.

E0057

Some mesh data is missing the ‘render state’ track object flag.

E0058

Object data contains different vertex size than the expected size given the object flags.

E0059

Object data has no diffuse textures but has specular data, which should be impossible.

E0060

The LBS geom block triangle index must be divisible by 3, but the value in the file is not.

E0061

The LBS file render chunk data has an unexpected pixel shader ID for the given render type. The render type restricts the possible pixel shader ID, and this combination must be invalid.

E0062

Some of the redundant (and unused) data contains an unexpected value in the LBS file.

E0063

The shadow texture values in the LBS render chunk data are invalid or unexpected (i.e. the native tracks do not have values like this).

E0064

The specular texture values in the LBS render chunk data are invalid or unexpected (i.e. the native tracks do not have values like this).

E0065

The diffuse texture values in the LBS render chunk data are invalid or unexpected (i.e. the native tracks do not have values like this).

E0066

The LBS file render chunk data has an unexpected vertex shader ID for the given render type. The render type restricts the possible vertex shader ID, and this combination must be invalid.

E0067

This render chunk data is marked as having no UV velocity, but the UV velocity values are not null.

E0068

Object block data is missing the ‘render state’ track object flag, so it cannot be parsed.

E0069

Object block data contained a non-zero ‘init’ value, but the parser expects this to always be zero.

E0070

Object block data contained a vertex size which does not match the expected vertex size of the track object flags.

E0071

The LBS segment header was an unexpected size, so the parser could not handle it.

E0072

The LBS segment category does not match the expected value given by the segment type.

E0073

The LBS file is missing a required section.

E0074

The driveline format has some redundant unused data which is expected to be zero by the parser, but the parser encountered some non-zero values.

E0075

The shape collision mesh field ‘use local rotation’ value is expected to be boolean, i.e. 1 or 0, but some other value was encountered by the parser.

E0076

The TRK segment header was an unexpected size, so the parser could not handle it.

E0077

The TRK segment category does not match the expected value given by the segment type.

E0078

The TRK file is missing a required section.

E0079

Collision mesh tree node header has unexpected vertices offset, so parsing was aborted.

E0080

Collision mesh tree root node has triangle data, but we don’t expect triangle data at the root.

E0081

Collision mesh tree root tree at unexpected offset. The parser has unpacked the header, and the header is pointing to a different position in the file than we expect. This is a little strict, and the file may be loaded by the game, but the addon parsers do not handle it.

E0082

Collision mesh tree subtree at unexpected offset. See E0081 for more information.

E0083

While unpacking the world geometry chunks, the parser encountered differing numbers of blocks for different geometry types. These lists of blocks must be the same length because they are associated to each other by index.

E0084

See E0083, but specifically for “visible object vecs”.

E0085

Couldn’t unpack the brake wall because the parser found an odd number of vertices. We expect the brake wall to consist of pairs of vertices, so the number should be even.

E0086

When unpacking a brake wall index, we expected an even offset but got an odd offset. See E0085.

E0087

Parser is at the wrong offset when unpacking a brake wall branch.

E0088

Parser is at the wrong offset after unpacking the brake wall header.

E0089

Parser is at the wrong offset when unpacking the brake wall tree.

E0090

Parser is at the wrong offset after unpacking the brake wall.

E0091

Encountered unexpected number of visible object vecs.

E0092

Found second diffuse texture in object data, but there is no first diffuse texture.

E0093

Found specular texture in object data, but there is no diffuse texture.

E0094

This shape collision mesh does not have the correct type given its name. Shape meshes with “CONE” in the name will be changed to interactive objects of type “Traffic Cone” silently by the game. Either rename your object or change the type to match.

E0095

This shape collision mesh does not have the correct type given its name. Shape meshes with “BANNER_STAND” in the name will be changed to interactive objects of type “Banner Fence” silently by the game. Either rename your object or change the type to match.

E0096

A shape collision mesh has too many vertices. Reduce the density of the mesh to fit within the limit. Bear in mind that shape collision mesh objects should be very simple, like cuboids for tree trunks. Do not join your shape collision mesh objects into one giant object, they must be separate.

E0097

A shape collision mesh has too many edges. See E0096.

E0098

A shape collision mesh has too many faces. See E0096.

E0099

There are too many shape collision meshes to export. RBR has a hard limit for the number of unique meshes you can export. In general if you are anywhere close to this limit you have probably structured your file incorrectly: these are instanced objects, so if you have 2000 trees the tree trunks should only take up a single mesh slot because each of the tree trunks should be using the same underlying mesh data. In blender this is achieved by using the same mesh for each of your tree trunks (by linking the collision mesh data for each of your tree objects).

E0100

Encountered unexpected surface type string. Valid values are dry/damp/wet.

E0101

Encountered unexpected surface age string. Valid values are new/normal/worn.

E0102

A track name in the track settings file could not be parsed.

E0103

A track specification in the track settings file could not be parsed.

E0104

An object marked for RBR export is using a material which does not contain a valid RBR shader node tree. Check the material node tree and ensure it uses an RBR material setup.

E0105

The selected export directory is missing from your addon preferences. Either add that named directory to the addon preferences or change the export target to a different directory.

E0106

The ‘car location’ object could not be found when exporting. Create an ‘empty’ object of type ‘arrows’ and position it where you want the car to be when the stage is started. The Y axis points forwards, Z upwards. Set the RBR object type to car location, and try exporting again.

E0107

[This error should no longer be emitted by the addon now that fallback materials exist. If you see it post v0.2.4, please report it.]

One of the textures you are using for collision mesh generation does not have suitable material maps. Some of the UV triangles ended up outside of the bounds of your material map definitions. Note that the addon moves your UV triangles towards the image area, you may need to account for that. You can also use repeated material maps to automatically cover triangles outside of the image area, but those triangles must be less than half the width and height of the image itself.

E0108

One of the materials used for collision mesh generation does not have an RBR diffuse texture associated with it, meaning the physical material could not be mapped. Check the material and add a diffuse texture (and corresponding material maps).

E0109

The world collision mesh is a required part of the RBR files, but no objects for collision mesh generation were found in blender. Check that the objects are enabled for export, or that your “Near” geom block ground object is marked “Generate Collisions”.

E0110

The addon found a missing attribute in the mesh. The mesh is using a material which has a vertex colour or attribute node set to a non-existent layer. Either change that node attribute or create the attribute in your mesh.

E0111

While baking values for export, the addon encountered a clamp node which is not set to min/max mode. Currently only min/max mode is supported, so switch your node to that if possible. If you require other modes, contact the addon maintainers.

E0112

While baking values for export, the addon encountered a color ramp node which is not set to “RGB”. If you require other modes, contact the addon maintainers.

E0113

While baking values for export, the addon encountered a color ramp node which is using an unsupported interpolation mode. Currently supported modes are “Linear” and “Constant”. If you require other modes, contact the addon maintainers.

E0114

A loop was detected in the given shader tree. Check your material definition and remove loops.

E0115

One of your RBR materials uses a geometry shader node, but is using an unsupported output socket. If you need this socket to be exportable, contact the addon maintainers.

E0116

One of your RBR materials uses an unsupported node. If you need this node to be exportable, contact the addon maintainers.

E0117

One of your RBR materials is not using the main RBR shader, so the addon can’t find any information to export. Check the material is defined correctly with a single RBR shader node.

E0118

One of your RBR materials cannot be baked due to another error. Check the error message and related error code for more details.

E0119

One of your RBR meshes has no materials for baking. Check the object has at least one RBR material.

E0120

One of your materials is using a texture but has a missing UV map. Ensure you’ve connected UV map nodes and set the correct layer.

E0121

An image used in an exported texture has been packed into the blend file. Exporting requires unpacked DDS files.

E0122

An image used in an exported texture does not have a power of 2 size. Sizes should be a power of 2, e.g. 512, 1024, 2048… but not necessarily square. Resize your image file to fit these requirements.

E0123

An image used in an exported texture could not be found at the specified path. Check that the image file exists where blender expects it.

E0124

The images used within an exported texture have different DDS settings to each other. This might cause issues because some settings are shared between all variants of a texture. Re-export these from your image editor using the same settings.

E0125

No images have been selected for an exported texture. You must select images for each of the supported track variants. Check your material definitions and set the images appropriately.

E0126

No images have been selected for an exported specular texture. You must select images for each of the supported track variants. Check your material definitions and set the images appropriately.

E0127

An exported object does not have a texture, but the object type selected requires at least one.

E0128

An object block object is using a material which is not set to an alpha blend mode. These objects must use an alpha blend mode (blend or hashed will give the best preview).

E0129

An object block object is using a material with an invalid texture setup. Object blocks must have exactly one diffuse texture and no specular texture.

E0130

[This error is no longer emitted by the addon]

Your file has interactive objects which are missing their corresponding shape collision meshes. Each interactive object must have a child shape collision mesh object.

E0131

There is more than one zfar object in your track, so it’s ambiguous which one should be used. Delete all but one of the zfar circles.

E0132

In order for correct visualisation in blender, the parent of the render distance circle must be the driveline. Check your render distance object obeys this rule.

E0133

In order for correct visualisation in blender, the render distance object must be an empty of type “circle”.

E0134

There must be exactly one exportable driveline object in order to export for RBR. Ensure you have one (and only one) object marked as “Driveline”.

E0135

The driveline object must be a bezier spline in order to be exported. If you’ve constructed a mesh poly line, you can convert it to a curve (ensure it is a bezier spline).

E0136

The driveline object has a hard cap on the number of points it can have in total. Reduce the density to get below the specified limit.

E0137

The driveline curve must obey a few rules in order to function properly in game.

In this case, any adjacent handles must not be rotated beyond 180 degrees of each other. For example, see the image below. Curve 1 is illegal, since the curve handles are more than 180 degrees apart (see they splay away from each other at the top). This can be fixed by either subdividing that segment (like curve 2) or tweaking the handles so they point slightly towards each other at the top (like curve 3).

Curve examples

The addon is strict about this condition, because the game will interpolate the segment backwards in case 1, which could lead to corner cutting penalties.

Check the world position given by the error message, this will point you to the bad section of your driveline. Fix that segment according to the rule above, and try to re-export.

E0138

One of the materials used in an RBR object is not using a node tree, which means it is not using the RBR material shaders. The addon can only export RBR shaders. Update this material so it fits the expected material node layout.

E0139

An RBR shader node has an unconnected texture socket. All of the texture sockets must have connections to RBR texture nodes. If you don’t need a particular texture socket, uncheck it in the shader node options and it will be removed.

E0140

An RBR shader node has a texture socket which is not connected to an RBR texture node. Ensure your texture nodes are connected directly to the shader sockets (i.e. with nothing inbetween).

E0141

An RBR material contains texture nodes with no UV map input connected. Connect either a UV map node to each of your textures or a UV velocity node (for animated textures).

E0142

An RBR material contains texture nodes with an unsupported UV map input. Connect either a UV map node to each of your textures or a UV velocity node (for animated textures).

E0143

An RBR material contains a UV velocity node with a connected UV velocity input. Disconnect the UV velocity input on your UV velocity node. You can set the UV velocity with the input boxes.

While the UV velocity input could just be inputs without a socket, implementing them as a socket input means all UV velocity nodes can share a node tree.

E0144

An RBR material contains a UV velocity node with a disconnected UV map input. Ensure a UV map node is connected to the UV map input of your UV velocity node.

E0145

An RBR material contains a UV velocity node with an unsupported UV map input. Ensure a UV map node is connected to the UV map input of your UV velocity node. There cannot be any nodes in between the UV map node and the UV velocity node.

E0146

While importing the material maps, we encountered mismatched numbers for different surface conditions. This is probably a bug in the stage data.

E0147

A mesh is using an RBR material which requires a particular UV map layer, but that UV map layer is missing in your mesh data.

E0148

In order to export the cameras or render distance objects, a driveline is necessary. Make sure you have a single driveline object active.

E0149

Some vector math nodes operations are not supported for export. They can be added if needed, please create a ticket for the operation you need.

E0150

A material in an exported object is using a material which is linked to the object, not to the data (i.e. the mesh). Check the material in question and mark it as linked to the data. The button for this is on the right of the text box where you can rename the material.

E0151

One of your exported materials is using an attribute node as an input to a UV socket. This is supported in limited circumstances: the attribute referenced must be a Vector stored in the “Face Corner” (aka CORNER) or “Vertex” data (aka POINT) .

E0152

An interactive object is scaled, but the addon cannot automatically apply the scale because these objects can be instanced. Apply the scale on this object manually.

E0153

A shape collision mesh is scaled, but the addon cannot automatically apply the scale because these objects can be instanced. Apply the scale on this object manually.

E0154

An interactive object has multiple child collision meshes, but it can only have one. Remove all but one of the collision meshes.

E0155

An interactive object has no child collision meshes, but it must have one. Add a simple mesh as a child object, and give it the type “Interactive Object Collision Mesh”.

E0156

A collision mesh is not convex. Shape collision meshes and interactive object collision meshes must be convex or they will not work in game. Try to apply the “Convex Hull” operator on your mesh.

E0157

A wet surface object contains faces which are not quads. All faces of wet surfaces must be quads: no trianges or other n-gons.

E0158

There are too many material maps being exported. The maximum number is 256, try to merge some of your materials together to reduce the count.

E0159

There are too many wet and water surfaces being exported. The maximum combined number is 512. Try to simplify your water surface meshes to fewer quads or remove some water surfaces the car is unlikely to hit. The native stages use water surfaces roughly the same area as the car.

E0160

There are too many checkpoint/split events on the driveline. There should be two splits between the start and finish events.