4.4 KiB
4.4 KiB
2026-05-26 KAMAZ 5360 Chaos Vehicle Dialogue Summary
Project: garage
Machine: qore
Local Unreal project: C:\git\kamaz5360
Summary
The user worked with an open Blender KAMAZ 5360 model and asked the agent to prepare it for Unreal Engine 5 Chaos Vehicles. The workflow evolved from a complex municipal snow-removal truck with plow and brushes into a simpler four-wheel Chaos Vehicle rig without snowplow/rear brush, because the attachments and old armature caused unstable imports and physics behavior.
Durable Decisions
- Blender is the source of truth for mesh scale, orientation, armature, wheel positions, and bind pose.
- If Unreal behavior is wrong because of model/export, fix Blender and reimport cleanly instead of adding Unreal runtime hacks.
- Unreal should create the PhysicsAsset through normal import settings; do not use a custom
FPhysicsAssetUtils::CreateFromSkeletalMeshcommandlet. - Wheel
AdditionalOffsetshould stay zero. - Chaos wheel
LocOffsetis normal suspension travel and should stay in the vehicle animation. - The current prototype uses four Chaos wheels; rear twin wheels remain visual.
Solved Problems
- Corrected front/back orientation by rotating model/bones 180 degrees around Z during Blender/export preparation.
- Verified Blender units are
METRICwithscale_length = 0.01; avoided incorrect extra0.01scale. - Forced the UE 5.7 legacy FBX importer with
Interchange.FeatureFlags.Import.FBX 0so automatic PhysicsAsset generation works. - Tuned wheel radius from measured Blender wheel diameter:
107.6 cmdiameter,53.78 cmradius. - Tuned suspension so the vehicle no longer jumps/floats and still has visible brake dive.
- Added runtime CSV diagnostics for wheel contact, wheel bottom Z, suspension offsets, speed, pitch, and roll.
Current State
- Local KAMAZ project is a git repository at commit
449d72e Initial Kamaz Chaos vehicle setup. - Remote is configured as
ssh://qore@192.168.1.66/srv/git/kamaz5360.git, but push failed on 2026-05-26 because192.168.1.66:22timed out from this session. - Current tuned values and reconstruction notes are in
projects/garage/kamaz5360-chaos-vehicle.md. - Global solved problem entry:
problems/2026-05-26-ue57-chaos-vehicle-blender-wheel-suspension.md. - Reusable pipeline skill:
skills/unreal-chaos-vehicle-blender-pipeline.md.
Later 2026-05-26 Hardware/Telemetry Integration
- The standalone
C:\git\kamaz5360project received a copiedMOZAVehicleInputplugin and minimal MOZA SDK fromC:\git\Kamaz_Cleaner. - Default control is MOZA hardware;
F9toggles between MOZA and keyboard fallback. - Keyboard driving input is gated off in MOZA mode; MOZA writes are gated off in keyboard mode.
- A lightweight C++ telemetry server was added. Dashboard URL:
http://127.0.0.1:8765/dashboard; JSON URL:http://127.0.0.1:8765/api/telemetry. - Buzina/CAN joystick docs, tools, firmware source, RawInput config, and a passive Unreal component were copied from
C:\git\joystick. It is not yet connected to plow control. - PIE initially crashed because UE 5.7
HTTPServerasserts when bindingFHttpPath(TEXT("/")); the dashboard route was changed to/dashboard. - Detailed notes are now appended to
projects/garage/kamaz5360-chaos-vehicle.md; reusable crash note:problems/2026-05-26-ue57-httpserver-root-route-crash.md.
2026-06-01 OSM Tverskaya Snow Tile Work
- Added a separate OSM test level
/Game/kamaz5360/Maps/TverskayainC:\git\kamaz5360. - Downloaded Tverskaya/Moscow OSM data to
Import/OSM/tverskaya.osmusing Overpass bbox55.7530,37.5800,55.7820,37.6250. - Implemented
AKamazOsmStreetMapActorto generate real-scale roads, sidewalks, terracotta buildings, and road/sidewalk snow masks. - Added
setup_tverskaya_level.pyto duplicate the snow tile map, spawn OSM geometry, spawnASnowTiledSurfaceManager, apply OSM snow masks, and place the KAMAZ near55.76555, 37.60582. - Fixed OSM snow mask persistence by making
SnowSurfaceMaskSegmentsaUPROPERTY; otherwise the mask was lost after saving/loading the level. - Added a two-layer snow visibility approach: coarse distant OSM background snow plus detailed nearby procedural tiles. Dirty unloaded tiles leave low-poly far visual copies so cleared snow and snowdrifts remain visible from a distance.
- Documented the solution in
projects/garage/kamaz5360-chaos-vehicle.mdandproblems/2026-06-01-kamaz-osm-snow-tile-visibility.md.