RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Editor AI TestsEditor AI VisualizationEditor – Assembly Spline ToolAsset BrowserAsset DeduplicatorAsset Management ToolSFX Previewer (Audio Events List)Audio Ribbon EditorAutoSaveBarriers EditorBiome ToolBuilding EditorBulk RenameCamera BookmarksCamera TransformCamera Path EditorCEF HelperCo-Simulation Signal EditorCrawl Data EditorCreate Object ToolDataBlock EditorDecal EditorDecal Spline EditorDocumentation HelperDrag Race EditorDrift Data EditorDrive Path EditorDynamic Decals Tool (Vehicle Livery Creator)Engine Audio DebugExtensions DebugExtensions EditorFFI Pointer Leak TestFile DialogFlowgraph EditorForest EditorForest ViewEditor Gizmo HelperEditor Ground Model Debug HelperEditor Headless Editor TestEditor Icon OverviewEditor ImGui C DemoEditor InspectorEditor Layout ManagerEditor Level SettingsEditor Level ValidatorEditor LoggerEditor Log HelperEditor MainEditor Main MenuEditor Main ToolbarEditor Main UpdateMap Sensor EditorMaster Spline EditorMaterial EditorMeasures Inspector HeaderMesh Editor (Base)Mesh Road EditorMesh Spline EditorMission EditorMission PlaybookMission Start Position EditorMulti Spawn Manager (Vehicle Groups)Navigation Mesh EditorEditor News MessageObject Tool (Object Select Edit Mode)Object To Spline EditorParticle EditorPerformance Profiler / Camera RecorderPhysics ReloaderPrefab Instance EditorEditor PreferencesRace / Path EditorRally EditorRaycast Test Editor ToolRenderer Components Editor ToolRender Test Editor ToolResource Checker Editor ToolRiver EditorRoad Architect EditorRoad DecorationsRoad Editor (Decal Road)Road Network ExporterRoad River Cache HandlerRoad River GUIRoad Spline EditorRoad Template EditorRoad UtilitiesScene TreeScene ViewScreenshot Creator BootstrapScript AI EditorScript AI ManagerSensor Configuration EditorSensor DebuggerShape EditorShortcut LegendSidewalk Spline EditorSites EditorSlot Traffic EditorSuspension Audio DebugTech Server ManagerTerraform ToolTerrain And Road ImporterTerrain EditorTerrain Materials EditorText EditorTool ManagerTool ShortcutsTraffic DebugTraffic ManagerTraffic Signals EditorUndo History ViewerVehicle Bridge TestVehicle Detail ViewerVehicle Editor MainEditor - VisualizationEditor Viz HelperEditor Water Object HelperEditor Windows Manager
Decal Spline PopulateDecal Spline Manager

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionseditordecalSpline

Decal Spline Populate

Handles the creation, placement, and removal of decal instances along a decal spline's path. Manages DecalData templates, round-robin/random component distribution, and per-component row/col propagati

Handles the creation, placement, and removal of decal instances along a decal spline's path. Manages DecalData templates, round-robin/random component distribution, and per-component row/col propagation.


Public API

FunctionSignatureDescription
M.populateDecalSpline(spline, splines)Creates decal instances along a spline's div points
M.tryRemove(spline)Removes all decal instances and unused templates for a spline
M.removeFolder()Deletes the shared template SimGroup folder
M.propagateRowsCols(spline, componentIdx)Syncs rows/cols across components sharing the same material

Population Pipeline

  1. Sample arc-length: geom.sampleSpline() along div points at decalLength + spacing intervals
  2. Compute component map: Assigns each position to a component (round-robin or weighted random)
  3. Create templates: One DecalData per unique material, registered in a shared SimGroup
  4. Place instances: editor.addDecalInstanceWithTan() with computed Frenet frame, jitter, pre-rotation

Component Map

Each position maps to:

PropertyDescription
pathMaterial name
preRotPre-rotation quaternion (0°/90°/180°/270°)
numRows / numColsTexture atlas grid
scaleDecal scale factor
frameAtlas frame index

Distribution Modes

ModeBehavior
Round RobinCycles through enabled components evenly
RandomWeighted sampling based on componentXRandomWeight, uses spline.randomSeed

Template Management

  • Templates stored in a shared SimGroup named "DecalSpline - Templates"
  • Instance counters track how many instances reference each template
  • Templates auto-deleted when their instance count reaches zero
  • Templates registered with scenetree.decalPersistMan for persistence

Notes

  • Assumed decal length: 4.0 meters
  • Jitter applied as Z-only random rotation via geom.computeRandomJitterQuat_ZOnly
  • Probability normalization ensures weights sum to 1.0 for random sampling
  • propagateRowsCols ensures shared materials have consistent atlas settings

See Also

  • Decal Spline Manager - Related reference
  • World Editor Guide - Guide

Crawl Editor Waypoints

Class-based waypoint/pathnode editor for the Crawl Editor. Manages pathnode selection, gizmo manipulation, segment visualization, and the pathnode detail inspector with custom fields.

Decal Spline Manager

Core data management module for decal splines. Handles CRUD operations, deep copy, serialization, undo/redo, profile copy/paste, spline splitting/joining, bitmap import, and dirty-state updates.

On this page

Public APIPopulation PipelineComponent MapDistribution ModesTemplate ManagementNotesSee Also