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
Vehicle Editor - Toolbar
Vehicle Editor - JBeam BeautifierVehicle Editor - JBeam Modifier Leaking VisualizerVehicle Editor - JBeam SpellcheckerVehicle Editor - JBeam Table VisualizerVehicle Editor - JBeam Variables CheckerVehicle Editor - Part ListVehicle Editor - Part Property ViewVehicle Editor - Part Text ViewVehicle Editor - Part TreeVehicle Editor - Static Render View

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 ExtensionseditorvehicleEditorstaticEditor

Vehicle Editor - Static Render View

Manages multiple independent render views for the static vehicle editor, with 3D/orthographic modes, axis gizmo navigation, grid overlays, and WASD camera control.

Manages multiple independent render views for the static vehicle editor, with 3D/orthographic modes, axis gizmo navigation, grid overlays, and WASD camera control.


Module Exports

ExportTypeDescription
M.createRenderViewUIfunctionCreates or shows a render view window
M.getMainRenderViewMouseRayfunctionReturns unprojected ray from hovered render view
M.destroyAllRenderViewsfunctionDestroys all render view objects
M.onPreRenderhookDraws grids and axis gizmos per render view
M.onEditorGuihookRenders all render view windows
M.onEditorHeadlessChangehookSaves settings and cleans up on editor exit
M.onEditorInitializedhookLoads saved render view configurations
M.onSerializehookSaves settings to disk
M.onDeserializehook(empty)
M.moveLeftfunctionCamera left movement (keybinding)
M.moveRightfunctionCamera right movement (keybinding)
M.moveForwardfunctionCamera forward movement (keybinding)
M.moveBackwardfunctionCamera backward movement (keybinding)
M.setCameraSpeedfunctionCamera speed multiplier (keybinding)

Key Internals

VariableTypePurpose
wndsDatatablePer-window render view data
hoveredWndIDnumberID of currently hovered window (-1 if none)
focusedWndIDnumberID of currently focused window (-1 if none)
settingsPathstring"settings/vehicleEditorStatic/staticRenderView.json"

View Modes

ConstantValueDescription
VIEW_MODE_3D1Free perspective camera
VIEW_MODE_LEFT2Orthographic -X view
VIEW_MODE_RIGHT3Orthographic +X view
VIEW_MODE_BACK4Orthographic -Y view
VIEW_MODE_FRONT5Orthographic +Y view
VIEW_MODE_BOTTOM6Orthographic -Z view
VIEW_MODE_TOP7Orthographic +Z view

Per-Window Data

Each window contains a main render view and an axis gizmo render view:

  • Main RV: full scene with configurable camera, clip planes, FOV, ortho mode
  • Axis gizmo RV: small overlay showing clickable axis arrows for quick mode switching

How It Works

Render Views

  • Created via RenderViewManagerInstance:getOrCreateView() with named texture targets
  • Camera matrix constructed from pos + rot quaternion
  • Frustum built with Frustum.construct(ortho, fov, aspect, near, far)
  • Images displayed via imUtils.texObj(textureName) and im.Image()

Axis Gizmo

  • Renders 6 colored axis arrows (±X, ±Y, ±Z) in a small overlay
  • Arrow picking via closestLinePoints() ray-line intersection
  • Clicking an arrow switches to the corresponding orthographic view mode
  • Arrows fade when aligned with the view direction

Camera Control

  • WASD movement via keybinding exports
  • Middle mouse drag rotates in 3D mode, pans in ortho mode
  • Scroll wheel zooms (FOV in ortho, position in 3D)
  • Fast speed multiplier via shift key

Grid

  • Drawn at origin with configurable size (10m) and block size (0.25m)
  • Red/green axis lines at center, gray grid lines elsewhere

Lua Code Example

-- Create a new render view
extensions.editor_vehicleEditor_staticEditor_veStaticRenderView.createRenderViewUI()

-- Get mouse ray from hovered render view (for node/beam picking):
-- local res, pos, dir = getMainRenderViewMouseRay()

-- View mode switching:
-- _enterViewMode(wndID, VIEW_MODE_TOP)
-- Sets ortho=true, nearClip=0.6, farClip=100, fov=150
-- Positions camera at offset from origin

-- Render view setup:
-- local rv = RenderViewManagerInstance:getOrCreateView(name)
-- rv.namedTexTargetColor = name
-- rv.cameraMatrix = mat
-- rv.resolution = Point2I(w, h)
-- rv.frustum = Frustum.construct(ortho, fov, aspect, near, far)

-- Camera movement (called from keybindings):
-- M.moveForward(1)   -- start moving
-- M.moveForward(0)   -- stop moving
-- M.setCameraSpeed(s) -- 0..1 maps to 1x..2.5x speed

-- Settings persisted to JSON:
-- jsonWriteFile(settingsPath, viewsSerialized, true)

-- Context menu (right-click) provides:
-- Mode submenu, Near/Far/FOV sliders, Add/Delete view

See Also

  • Vehicle Editor - JBeam Beautifier - Related reference
  • Vehicle Editor - JBeam Modifier Leaking Visualizer - Related reference
  • Vehicle Editor - JBeam Spellchecker - Related reference
  • World Editor Guide - Guide

Vehicle Editor - Part Tree

Hierarchical tree view of JBeam part data with interactive 3D node/beam picking, selection, visibility toggling, and integration with the AST text view.

Flowgraph Base Module

Base class factory for flowgraph modules. Modules are manager-level components that provide shared state and services to flowgraph nodes (e.g., button management, camera paths, file I/O).

On this page

Module ExportsKey InternalsView ModesPer-Window DataHow It WorksRender ViewsAxis GizmoCamera ControlGridLua Code ExampleSee Also