This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/dialog-summaries/2026-05-26-kamaz5360-chaos-vehicle.md
2026-06-01 06:50:38 +03:00

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::CreateFromSkeletalMesh commandlet.
  • Wheel AdditionalOffset should stay zero.
  • Chaos wheel LocOffset is 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 METRIC with scale_length = 0.01; avoided incorrect extra 0.01 scale.
  • Forced the UE 5.7 legacy FBX importer with Interchange.FeatureFlags.Import.FBX 0 so automatic PhysicsAsset generation works.
  • Tuned wheel radius from measured Blender wheel diameter: 107.6 cm diameter, 53.78 cm radius.
  • 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 because 192.168.1.66:22 timed 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\kamaz5360 project received a copied MOZAVehicleInput plugin and minimal MOZA SDK from C:\git\Kamaz_Cleaner.
  • Default control is MOZA hardware; F9 toggles 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 HTTPServer asserts when binding FHttpPath(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/Tverskaya in C:\git\kamaz5360.
  • Downloaded Tverskaya/Moscow OSM data to Import/OSM/tverskaya.osm using Overpass bbox 55.7530,37.5800,55.7820,37.6250.
  • Implemented AKamazOsmStreetMapActor to generate real-scale roads, sidewalks, terracotta buildings, and road/sidewalk snow masks.
  • Added setup_tverskaya_level.py to duplicate the snow tile map, spawn OSM geometry, spawn ASnowTiledSurfaceManager, apply OSM snow masks, and place the KAMAZ near 55.76555, 37.60582.
  • Fixed OSM snow mask persistence by making SnowSurfaceMaskSegments a UPROPERTY; 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.md and problems/2026-06-01-kamaz-osm-snow-tile-visibility.md.