Document KAMAZ 5360 Chaos vehicle workflow

This commit is contained in:
Codex qore 2026-05-26 15:31:18 +03:00
parent 84135113a8
commit 20c006942b
13 changed files with 482 additions and 0 deletions

View file

@ -0,0 +1,35 @@
# 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`.

View file

@ -15,6 +15,7 @@
- Role: source computer for existing local repositories and scattered project parts.
- Final runtime role: not established; currently treated as a source of existing work, not the simulator runtime computer.
- Discovered repositories: `/srv/git/StereoWallND.git`, `/srv/git/Kamaz_Cleaner.git`.
- Proposed/needed repository as of 2026-05-26: `/srv/git/kamaz5360.git` for the standalone KAMAZ 5360 Chaos Vehicle prototype. It was not verified because `192.168.1.66:22` timed out from `qore` during that session.
## Access
@ -131,6 +132,17 @@ Use a different email only if the user provides an official email for this ident
- Risk: `main` at `465385495` looks like a telemetry commit but deletes almost the entire previous snapshot. Use `telemetry-only-main` for the isolated telemetry state until `main` is intentionally repaired or accepted.
- 2026-05-24 setup pass: repository existence and group-writable permissions were verified/repaired as root; directories are setgid for group `stereowallnd`; ACLs grant group write where supported; `qore`, `wuu`, `pump`, and `airM1` passed dry-run push permission tests.
### `/srv/git/kamaz5360.git`
- Type: intended bare Git repository.
- Status: not verified on 2026-05-26 because `192.168.1.66:22` timed out from `qore`.
- Intended local source: `C:\git\kamaz5360` on `qore`.
- Intended remote URL: `ssh://qore@192.168.1.66/srv/git/kamaz5360.git`.
- Current local HEAD before remote push: `449d72e Initial Kamaz Chaos vehicle setup`.
- Role: standalone Unreal 5.7 KAMAZ 5360 Chaos Vehicle prototype and reconstruction baseline.
- Related project notes: `projects/garage/kamaz5360-chaos-vehicle.md`.
- Next verification: when SSH returns, run `git ls-remote ssh://qore@192.168.1.66:22/srv/git/kamaz5360.git HEAD`; if missing, create a shared bare repo under `/srv/git` using the same group/setgid/sharedRepository pattern as the existing repos.
## Access Notes
- User `airM1` is a member of group `stereowallnd`.

View file

@ -92,8 +92,11 @@ Observed locally on 2026-05-24:
- Local path:
- `C:\Users\post\Documents\Codex\2026-05-24\private-github-https-github-com-krustophski\agent-knowledge-base`
- Current local clone used on 2026-05-26:
- `C:\git\agent-knowledge-base`
- Branch: `main`.
- Push dry-run verified after switching to SSH.
- 2026-05-26 GitHub SSH note: the working key for `krustophski/agent-knowledge-base` is `C:\Users\post\.ssh\id_devman`; use `GIT_SSH_COMMAND="ssh -i C:/Users/post/.ssh/id_devman -o IdentitiesOnly=yes"` if default `git@github.com` fails with `Permission denied (publickey)`.
## Remote Control

View file

@ -0,0 +1,88 @@
# UE 5.7 Chaos Vehicle From Blender Floats, Drives Backward, Or Wheels Do Not Animate
Date: 2026-05-26
Project: `garage` / `kamaz5360`
Environment: Blender 5.1, Unreal Engine 5.7, Windows `qore`
## Symptoms
- KAMAZ truck spawned above the floor or appeared lifted above its wheels.
- Earlier iterations jumped on start, stood on its rear, or drove off/fell through the floor.
- Throttle drove the vehicle backward after import.
- Wheels did not visually rotate and steering wheels did not visually turn.
- User wanted no Unreal-side hacks; model/export should be corrected in Blender and reimported cleanly.
## Root Causes
- Blender/Unreal forward axis was wrong until the model and bones were rotated 180 degrees around Z during Blender/export preparation.
- UE 5.7 Python import can route through Interchange; Interchange ignored `create_physics_asset`, so automatic PhysicsAsset creation did not happen unless the legacy FBX importer was forced.
- The correct wheel radius was already known from Blender (`107.6 cm` diameter, `53.78 cm` radius). Floating was not caused by wrong wheel diameter.
- Large suspension drop/preload values caused Chaos to settle with excessive visual suspension travel.
- Removing Chaos wheel `LocOffset` from the vehicle animation made visual wheels stay at bind pose instead of following suspension.
## Verified Solution
1. Make Blender the source of truth for units, orientation, armature, and wheel bone positions.
2. In Blender/export, verify `METRIC` and `scale_length = 0.01`; do not blindly apply export scale `0.01`.
3. Rotate mesh vertices and wheel bones 180 degrees around Z during Blender/export preparation so Unreal forward matches truck forward.
4. Keep wheel bones named exactly:
- `wheel_front_left`
- `wheel_front_right`
- `wheel_rear_left`
- `wheel_rear_right`
5. Import with standard Unreal FBX import, but force legacy importer:
```powershell
UnrealEditor-Cmd.exe <project>.uproject -run=pythonscript -script=<import-script>.py -ExecCmds="Interchange.FeatureFlags.Import.FBX 0"
```
6. Use `create_physics_asset = true` in `FbxImportUI`; let Unreal create the PhysicsAsset normally.
7. Keep `AdditionalOffset = FVector::ZeroVector` for all wheels.
8. Keep `WheelData.LocOffset` in the custom vehicle anim instance; it is the normal Chaos suspension travel.
9. Tune suspension instead of wheel radius. Working KAMAZ values:
Front:
```cpp
WheelRadius = 53.78f;
SuspensionMaxRaise = 24.0f;
SuspensionMaxDrop = 14.0f;
SpringRate = 8500.0f;
SpringPreload = 0.0f;
SuspensionDampingRatio = 0.78f;
MaxBrakeTorque = 28000.0f;
```
Rear:
```cpp
WheelRadius = 53.78f;
SuspensionMaxRaise = 20.0f;
SuspensionMaxDrop = 16.0f;
SpringRate = 10500.0f;
SpringPreload = 0.0f;
SuspensionDampingRatio = 0.82f;
MaxBrakeTorque = 18000.0f;
```
## Verification
The final diagnostic run wrote `C:\git\kamaz5360\Saved\Logs\KamazRuntimeDebug.csv`.
Known-good values:
- wheel bottoms settle near the floor, around `0.006 cm`;
- all four wheel contacts are stable for most frames (`1111`);
- vehicle drives under throttle;
- front wheels steer and wheels visually rotate;
- brake dive is present without returning to the old floating/jumping behavior.
## Avoid
- Do not compensate with UE pawn rotation or nonzero wheel `AdditionalOffset` before fixing Blender/export.
- Do not use `FPhysicsAssetUtils::CreateFromSkeletalMesh`; the user explicitly rejected this workaround.
- Do not remove wheel animation `LocOffset`.
- Do not assume floating means wheel radius is wrong; check Blender wheel diameter first.
- Do not leave auto-debug input enabled after diagnostics.
Detailed project-specific reconstruction notes: `projects/garage/kamaz5360-chaos-vehicle.md`.

View file

@ -19,3 +19,4 @@ Current entries:
- `2026-05-24-kamaz-cleaner-telemetry-commit-mass-deletions.md`
- `2026-05-24-local-git-server-bare-repo-group-permissions.md`
- `2026-05-25-depthai-poe-pipeline-switch-crash.md`
- `2026-05-26-ue57-chaos-vehicle-blender-wheel-suspension.md`

View file

@ -1,5 +1,16 @@
# Garage Agent Log
## 2026-05-26 - qore KAMAZ 5360 Chaos Vehicle Prototype Stabilized
- Machine: `qore`.
- Agent: Codex.
- Summary: Prepared and stabilized a standalone Unreal 5.7 `kamaz5360` Chaos Vehicle prototype from a Blender KAMAZ 5360 model. The final useful state has correct forward direction, automatic PhysicsAsset import, visible wheel rotation/steering, wheel contacts on the floor, tuned suspension, and mild brake dive.
- Files changed in knowledge base: Added `projects/garage/kamaz5360-chaos-vehicle.md`, `problems/2026-05-26-ue57-chaos-vehicle-blender-wheel-suspension.md`, `skills/unreal-chaos-vehicle-blender-pipeline.md`, and `dialog-summaries/2026-05-26-kamaz5360-chaos-vehicle.md`; updated project status, repository map, technical spec, decisions, and indexes.
- Project files on `qore`: `C:\git\kamaz5360` was initialized as git and committed at `449d72e Initial Kamaz Chaos vehicle setup`; local rollback checkpoint exists at `C:\git\kamaz5360\Saved\Checkpoints\KamazChaosSuspension_2026-05-26_1515`.
- Verified: UE build succeeded with `Build.bat kamaz5360Editor Win64 Development`; runtime CSV showed wheel bottoms near floor, stable contacts, working drive, and suspension offsets from Chaos rather than `AdditionalOffset`.
- Not verified: Push of `C:\git\kamaz5360` to `ssh://qore@192.168.1.66/srv/git/kamaz5360.git` failed because `192.168.1.66:22` timed out from this session.
- Next handoff: When local Git server access returns, create/verify `/srv/git/kamaz5360.git` and push commit `449d72e`; future agents must read `projects/garage/kamaz5360-chaos-vehicle.md` before touching Blender/FBX/Chaos settings.
## 2026-05-24 - wuu ProjectionMapping Kinect Manual Calibration Pass
- Machine: `wuu`.

View file

@ -12,3 +12,9 @@ Decision: The first project goal is a simulator where a truck removes snow.
Reason: This is the first concrete product request associated with the shared agent memory repository.
## 2026-05-26 - KAMAZ 5360 Vehicle Import Uses Blender As Source Of Truth
Decision: For the standalone `kamaz5360` Chaos Vehicle prototype, Blender is the source of truth for mesh scale, orientation, armature, wheel bone positions, and bind pose. Unreal should use normal import and Chaos Vehicle setup, but should not compensate for bad model/export state with runtime hacks.
Reason: During the 2026-05-26 KAMAZ setup, Unreal-side offsets, custom PhysicsAsset creation, and visual workarounds obscured the real causes. The working solution came from fixing Blender/export orientation, using clean import, forcing the legacy UE 5.7 FBX importer so auto PhysicsAsset creation works, and tuning Chaos suspension from measured wheel dimensions.

View file

@ -0,0 +1,262 @@
# KAMAZ 5360 Chaos Vehicle Reconstruction Notes
Date: 2026-05-26
Machine: `qore`
Local Unreal project: `C:\git\kamaz5360`
Local Blender source currently used: `C:\Users\post\Downloads\3461178.60b6629becd12\kamaz5361_chaos_ready.blend`
## Purpose
This file records the working pipeline and current state for the standalone Unreal 5.7 KAMAZ 5360 Chaos Vehicle prototype. Future agents should read this before trying to rebuild the truck scene, because many failures came from guessing at Blender scale, wheel bones, PhysicsAsset generation, and Chaos suspension behavior.
## Current Working State
- Unreal project path: `C:\git\kamaz5360`.
- Engine: `C:\Program Files\Epic Games\UE_5.7`.
- Blender: `C:\Program Files\Blender Foundation\Blender 5.1\blender.exe`.
- UE map: `/Game/kamaz5360/Maps/kamaz5360`.
- Skeletal mesh asset: `/Game/kamaz5360/SK_Kamaz5360_RealChaos.SK_Kamaz5360_RealChaos`.
- Auto-created PhysicsAsset: `/Game/kamaz5360/SK_Kamaz5360_RealChaos_PhysicsAsset`.
- Vehicle pawn class: `AKamazTruckPawn`.
- Vehicle animation instance: `UKamazVehicleAnimInstance`.
- Current local git commit in `C:\git\kamaz5360`: `449d72e Initial Kamaz Chaos vehicle setup`.
- Remote configured but not pushed on 2026-05-26 because `192.168.1.66:22` timed out: `ssh://qore@192.168.1.66/srv/git/kamaz5360.git`.
## Non-Negotiable Workflow
The user clarified this workflow:
1. Blender is the source of truth for mesh orientation, scale, armature, wheel bone positions, and bind pose.
2. If Unreal has physics/import problems, fix Blender/export first whenever the issue comes from model setup.
3. Reimport cleanly into Unreal after deleting old KAMAZ assets.
4. Do not use runtime attachment/alignment hacks to compensate for broken model export.
5. Do not use `FPhysicsAssetUtils::CreateFromSkeletalMesh` or a custom PhysicsAsset commandlet as a workaround.
6. Unreal may use normal Chaos Vehicle setup, wheel classes, vehicle pawn code, and automatic PhysicsAsset creation during import.
## Blender Setup Facts
Verified Blender scene facts after cleanup:
- Scene units: `METRIC`.
- `scale_length = 0.01`.
- The export script must check units first. If the source is already Metric with scale `0.01`, use geometry scale `1`, not another `0.01`.
- Wheel visual diameter measured from Blender: about `107.6 cm`.
- Correct Chaos wheel radius: `53.78 cm`.
- Wheel mesh/bone center Z in Blender: about `53.72 cm`.
- Root should stay at world origin. Do not offset the root to make the vehicle touch the floor.
- Working wheel bone names:
- `wheel_front_left`
- `wheel_front_right`
- `wheel_rear_left`
- `wheel_rear_right`
Approximate verified wheel bone heads in the cleaned Blender file:
```text
wheel_front_left head [ 204.57, -110.04, 53.72 ]
wheel_front_right head [ 204.57, 109.75, 53.72 ]
wheel_rear_left head [-187.28, -92.23, 53.72 ]
wheel_rear_right head [-187.28, 92.21, 53.72 ]
```
The truck was once imported backwards: throttle made it drive backward. The Blender/export side must rotate the model 180 degrees around Z so Unreal forward matches truck forward. Do this in Blender/export, not in the UE pawn.
## Export Script
Working script path:
```text
C:\git\kamaz5360\Saved\KamazBuildChaosReadyBlend.py
```
Important behavior:
- Opens source `kamaz5361_ue_axis_clean_armature_named.blend`.
- Verifies scene units before scaling.
- Applies 180 degree Z rotation to mesh vertices and bones.
- Resets root head/tail to `(0,0,0)` and `(0,80,0)`.
- Saves `kamaz5361_chaos_ready.blend`.
- Exports `SK_Kamaz5360_ChaosReady.fbx`.
Do not blindly export with scale `0.01`. Check Blender units first.
## Unreal Import
Working import script:
```text
C:\git\kamaz5360\Saved\ImportRealChaosKamaz.py
```
Use standard `AssetImportTask` and `FbxImportUI` with `create_physics_asset = true`.
Important UE 5.7 behavior: Python import may go through Interchange and ignore `create_physics_asset`. Force legacy FBX importer during the import command:
```powershell
& "C:\Program Files\Epic Games\UE_5.7\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" `
"C:\git\kamaz5360\kamaz5360.uproject" `
-run=pythonscript -script="C:\git\kamaz5360\Saved\ImportRealChaosKamaz.py" `
-ExecCmds="Interchange.FeatureFlags.Import.FBX 0"
```
Expected result: Unreal creates `SK_Kamaz5360_RealChaos_PhysicsAsset.uasset` automatically through the normal legacy importer path.
## Clean Map Setup
Working map script:
```text
C:\git\kamaz5360\Saved\CreateCleanKamazMap.py
```
Important bug that was fixed: when the map already exists, use `EditorLevelLibrary.load_level(level_path)` instead of `new_level`, because `new_level` will not overwrite and can spawn actors into `/Temp/Untitled`.
Expected map actors after clean setup:
- `Kamaz_Test_Floor`
- `PlayerStart`
- `SkyLight`
- `Sun`
- `Test_PointLight`
The floor was enlarged during debugging because the vehicle could drive off the edge.
## Chaos Vehicle Code
Important source files:
```text
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazTruckPawn.cpp
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazTruckPawn.h
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazTruckWheelFront.cpp
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazTruckWheelRear.cpp
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazVehicleAnimInstance.cpp
C:\git\kamaz5360\Source\kamaz5360\KamazTruck\KamazVehicleAnimInstance.h
```
Mass and drivetrain:
- Vehicle mass: `9500 kg`.
- Transmission modeled after ZF 9S1310:
- forward gear ratios: `9.48, 6.58, 4.68, 3.48, 2.62, 1.89, 1.35, 1.00, 0.75`
- reverse: `8.97`
- max input torque reference: `1300 Nm`
- Current engine max torque in UE: `1177.0`.
- Differential: rear wheel drive.
- Four Chaos wheels are used; the rear visual wheels represent twin rear wheels.
Wheel setup in pawn:
- Bone names must match the Blender bones exactly.
- `AdditionalOffset = FVector::ZeroVector` for all wheels. If it is not zero, investigate model/export before adding offsets.
- Current center of mass override: `FVector(-5.0f, 0.0f, -150.0f)`.
Animation:
- `UKamazVehicleAnimInstance` uses Chaos wheel animation data and applies both rotation/steering and `WheelData.LocOffset`.
- `WheelData.LocOffset` is not a hack. It is the normal Chaos suspension wheel travel result.
- Do not remove `LocOffset`; removing it made the wheels visually float because the physics chassis settled while visual wheels stayed at bind pose.
## Current Working Suspension Parameters
Front wheel class (`KamazTruckWheelFront.cpp`):
```cpp
WheelRadius = 53.78f;
WheelWidth = 30.97f;
WheelMass = 115.0f;
MaxSteerAngle = 42.0f;
SuspensionMaxRaise = 24.0f;
SuspensionMaxDrop = 14.0f;
SpringRate = 8500.0f;
SpringPreload = 0.0f;
SuspensionDampingRatio = 0.78f;
MaxBrakeTorque = 28000.0f;
```
Rear wheel class (`KamazTruckWheelRear.cpp`):
```cpp
WheelRadius = 53.78f;
WheelWidth = 30.97f;
WheelMass = 145.0f;
SuspensionMaxRaise = 20.0f;
SuspensionMaxDrop = 16.0f;
SpringRate = 10500.0f;
SpringPreload = 0.0f;
SuspensionDampingRatio = 0.82f;
MaxBrakeTorque = 18000.0f;
MaxHandBrakeTorque = 32000.0f;
```
These values were selected after the vehicle previously jumped, stood on its rear, floated above the floor, and had rear wheels visually below/above the model. The current values keep the wheels on the floor and give some brake dive without returning to the old floating state.
## Interpreting Wheel Offset
Runtime debug reported wheel offsets around `-13 cm`. This is not `AdditionalOffset`; `AdditionalOffset` remains zero. It is Chaos suspension travel (`WheelData.LocOffset`) and is expected if the Blender bind pose is closer to an unloaded suspension pose.
If the user wants the static Unreal pose to match the Blender pose exactly, tune suspension so runtime `fl_wheel_offset` and `rl_wheel_offset` are close to zero. But that reduces visible suspension motion. Do not clamp or scale `LocOffset` as a first response; that is a visual compensation and should be treated as a last resort.
## Diagnostics
Debug CSV path:
```text
C:\git\kamaz5360\Saved\Logs\KamazRuntimeDebug.csv
```
Useful columns:
- `actor_z`
- `pitch`, `roll`
- `fl_center_z`, `fl_bottom_z`
- `rl_center_z`, `rl_bottom_z`
- `fl_contact`, `fr_contact`, `rl_contact`, `rr_contact`
- `fl_wheel_offset`, `rl_wheel_offset`
Known-good diagnostic result after final tuning:
- wheel bottoms settle near floor, about `0.006 cm`;
- contacts are stable, mostly `1111`;
- vehicle drives under throttle;
- wheels rotate and front wheels steer;
- manual control is restored (`bEnableAutoDebugInput = false`).
For automated diagnostic runs, temporarily set `bEnableAutoDebugInput = true`, rebuild, run a short game session, inspect CSV, then set it back to `false` and rebuild. Do not leave auto-debug input enabled for user testing.
Build command:
```powershell
& "C:\Program Files\Epic Games\UE_5.7\Engine\Build\BatchFiles\Build.bat" `
kamaz5360Editor Win64 Development `
-Project="C:\git\kamaz5360\kamaz5360.uproject" `
-WaitMutex -NoHotReloadFromIDE
```
Run editor:
```powershell
& "C:\Program Files\Epic Games\UE_5.7\Engine\Binaries\Win64\UnrealEditor.exe" `
"C:\git\kamaz5360\kamaz5360.uproject" `
"/Game/kamaz5360/Maps/kamaz5360"
```
## Failed Approaches To Avoid
- Do not fix bad Blender orientation by rotating the UE pawn.
- Do not use nonzero `AdditionalOffset` to hide incorrect wheel bone positions.
- Do not create PhysicsAsset through custom `FPhysicsAssetUtils::CreateFromSkeletalMesh`; the user explicitly rejected this.
- Do not remove `WheelData.LocOffset`; wheels may visually float and no longer follow suspension.
- Do not assume wheel diameter is wrong if the truck floats. The verified wheel diameter is about `107.6 cm`; floating came from suspension travel/preload and visual suspension interpretation.
- Do not leave huge `SuspensionMaxDrop` plus large `SpringPreload`; this previously made the chassis appear too high and caused unstable jumps.
- Do not reimport over stale assets while debugging import problems. Delete old KAMAZ assets and import cleanly.
## Local Checkpoint
A local rollback checkpoint was created before committing:
```text
C:\git\kamaz5360\Saved\Checkpoints\KamazChaosSuspension_2026-05-26_1515
```
It contains the tuned wheel files, pawn header, README, and diagnostic CSV.

View file

@ -29,6 +29,7 @@
| Kamaz_Cleaner-qore-wuu-smb | Unreal Engine Kamaz cleaner/snow-removal simulator working tree visible from `wuu` over SMB | `\\qore\C\git\Kamaz_Cleaner` | `ssh://qore@192.168.1.66/srv/git/Kamaz_Cleaner.git` | `main` | root `AGENTS.md` present; many untracked files visible from `wuu` |
| StereoWallND | Unreal Engine nDisplay stereo wall, projection calibration, telemetry dashboard | `/srv/git/StereoWallND.git` on `192.168.1.66` | preferred: `ssh://<qore|wuu|pump>@192.168.1.66:22/srv/git/StereoWallND.git`; legacy direct: `ssh://airM1@192.168.1.66/srv/git/StereoWallND.git` | `main` | inventoried, bare repo; use machine identity via `192.168.1.66:22` for garage computers |
| Kamaz_Cleaner | Unreal Engine Kamaz cleaner/snow-removal simulator work | `/srv/git/Kamaz_Cleaner.git` on `192.168.1.66` | preferred: `ssh://<qore|wuu|pump>@192.168.1.66:22/srv/git/Kamaz_Cleaner.git`; legacy direct: `ssh://airM1@192.168.1.66/srv/git/Kamaz_Cleaner.git` | `main` | inventoried, bare repo; use machine identity via `192.168.1.66:22` for garage computers |
| kamaz5360-qore | standalone Unreal 5.7 KAMAZ 5360 Chaos Vehicle prototype with Blender-derived skeletal mesh and tuned suspension | `C:\git\kamaz5360` on `qore` | `ssh://qore@192.168.1.66/srv/git/kamaz5360.git` | `master` | local git initialized and committed at `449d72e`; remote push failed on 2026-05-26 because `192.168.1.66:22` timed out |
| garage-simulator | future simulator implementation repository | not selected | not created | not selected | planned |
## Topology
@ -42,6 +43,7 @@ No repository should be merged, reset, or deleted until the overlapping copies a
## Integration Points
- `agent-knowledge-base` stores project state, technical specification, decisions, handoffs, and reusable knowledge.
- `kamaz5360-qore` is the current standalone UE 5.7 KAMAZ Chaos Vehicle reconstruction/prototype. Use `projects/garage/kamaz5360-chaos-vehicle.md` as the handoff recipe before editing or reimporting.
- `Kamaz_Cleaner` contains existing Unreal Engine Kamaz cleaner/snow-removal simulator work, truck assets, snow-clearing work, NDI/Spout/nDisplay plugins, MOZA-related input work, and automation helper scripts.
- `StereoWallND` contains Unreal Engine 5.7 nDisplay stereo wall, projector calibration, curved-screen correction, telemetry backend/frontend, and projection calibration tooling.
- `ProjectionMapping-wuu` contains DirectX12 projector calibration and curved-screen mapping work, including Kinect/USB camera experiments and captured calibration attempts. It is directly relevant to projector warping/calibration, but it is not the main simulator.

View file

@ -6,6 +6,8 @@ Build and finish the garage auto-simulator setup by consolidating scattered proj
## Current State
- 2026-05-26 `qore` KAMAZ 5360 Chaos Vehicle prototype: `C:\git\kamaz5360` now contains a working Unreal 5.7 standalone KAMAZ truck setup with cleaned Blender-derived skeletal mesh, automatic PhysicsAsset import, four Chaos wheels, measured wheel radius `53.78 cm`, mass `9500 kg`, ZF 9S1310-like gear ratios, working wheel rotation/steering, and tuned suspension/brake dive. Reconstruction notes are in `projects/garage/kamaz5360-chaos-vehicle.md`; reusable issue record is `problems/2026-05-26-ue57-chaos-vehicle-blender-wheel-suspension.md`.
- 2026-05-26 `qore` local KAMAZ repo: `C:\git\kamaz5360` was initialized as git and committed at `449d72e Initial Kamaz Chaos vehicle setup`. Remote is configured as `ssh://qore@192.168.1.66/srv/git/kamaz5360.git`, but push failed from this session because `192.168.1.66:22` timed out. Retry when the local Git server is reachable or create the bare repo if it does not exist.
- 2026-05-24 19:14 MSK LAN-only check from `wuu`: SSH to `pump` `192.168.1.39:22` and `qore` `192.168.1.126:22` times out; VNC `5900` on both machines is open and returns `RFB 003.008`; full VNC login still needs the user-held password. `wuu@192.168.1.66` SSH works, `StereoWallND.git` and `Kamaz_Cleaner.git` read over SSH, and `git push --dry-run` to `Kamaz_Cleaner.git` branch `connectivity-test/wuu` succeeds.
- 2026-05-24 19:14 MSK `wuu` local VNC capability: `192.168.1.192:5900` returns RFB `003.008` from TightVNC application-mode server. A LAN VNC client can view/control the screen with the user-held password, but this Codex session itself has no native VNC viewer/control channel; use screenshots or a local screenshot workflow for visual feedback inside Codex.
- 2026-05-24 17:41 MSK `wuu` delivery check: machine identified as `wuu`, user `wuu\post`, LAN `192.168.1.192`, VPN `10.8.1.57`; GitHub SSH/push access to `agent-knowledge-base` works as `krustophski`.
@ -103,6 +105,8 @@ The first useful version should probably be a small playable prototype:
## Next Actions
- When `192.168.1.66:22` is reachable from `qore`, create/verify `/srv/git/kamaz5360.git` and push `C:\git\kamaz5360` commit `449d72e`.
- Future KAMAZ vehicle agents should start from `projects/garage/kamaz5360-chaos-vehicle.md` before changing Blender export, UE import, PhysicsAsset, wheel, or suspension settings.
- Copy the prompts from `projects/garage/agent-prompts.md` into local Codex sessions on `qore` and `wuu` for the next elevated setup pass.
- Keep `pump` GitHub SSH access verified and continue pushing knowledge-base updates promptly after meaningful work.
- Decide which `Kamaz_Cleaner` working tree is authoritative before editing Unreal assets.

View file

@ -93,6 +93,8 @@ The simulator must support:
## Technical Assumptions
- As of 2026-05-26, Unreal Engine 5.7 is proven viable for a standalone KAMAZ 5360 Chaos Vehicle prototype in `C:\git\kamaz5360` on `qore`. The working import/physics recipe is documented in `projects/garage/kamaz5360-chaos-vehicle.md`.
- For KAMAZ vehicle model work, Blender should be treated as the source of truth for scale/orientation/armature/wheel bones; Unreal should not hide broken export state with runtime offsets or custom PhysicsAsset workarounds.
- A browser-based Three.js prototype is a likely default if the user wants fast visual iteration and easy testing.
- Unity, Unreal, or Godot may be considered if realistic vehicle physics becomes more important than fast browser iteration.
- The first snow mechanic can be grid-based, tile-based, or visual-state-based instead of physically simulated.

View file

@ -14,3 +14,4 @@
- `projectionmapping-manual-kinect-calibration.md` - current `wuu` ProjectionMapping/Kinect manual alignment and projector calibration workflow, including the one-projector troubleshooting path.
- `multi-machine-agent-orchestration.md` - how to coordinate agents and daemon-like workers across multiple computers.
- `ssh-public-key-access.md` - how to exchange and install SSH public keys without storing private keys or passwords.
- `unreal-chaos-vehicle-blender-pipeline.md` - how to prepare Blender vehicle models for Unreal Chaos Vehicles without Unreal-side model hacks.

View file

@ -0,0 +1,55 @@
# Unreal Chaos Vehicle From Blender Pipeline
Use this procedure when preparing a Blender vehicle model for Unreal Chaos Vehicles and the user wants the model fixed at source rather than patched in Unreal.
## Procedure
1. Inspect Blender units before export.
- If units are `METRIC` and `scale_length = 0.01`, the model is already centimeter-oriented for Unreal-style dimensions.
- Do not apply an extra `0.01` export scale unless measurements prove the mesh is still in meters.
2. Establish source-of-truth orientation in Blender.
- Unreal forward must match vehicle forward.
- If throttle drives backward, fix the mesh and armature orientation in Blender/export, not by rotating the Unreal pawn.
3. Use simple Chaos wheel bones.
- Keep a root at the origin.
- Use one bone per simulated wheel.
- Wheel bone heads should be at wheel centers.
- Bone names must exactly match the Unreal wheel setup.
4. Clean import into Unreal.
- Delete stale vehicle assets before reimporting when solving import/export problems.
- Import as a Skeletal Mesh.
- Enable automatic PhysicsAsset creation through standard import settings.
- On UE 5.7, force legacy FBX importer if Python import uses Interchange and fails to create PhysicsAsset:
```powershell
-ExecCmds="Interchange.FeatureFlags.Import.FBX 0"
```
5. Configure Chaos without hiding model errors.
- Start with `AdditionalOffset = FVector::ZeroVector`.
- Set wheel radius from measured Blender wheel diameter.
- If the vehicle floats or jumps, inspect suspension travel/preload before changing wheel radius.
6. Animate wheels from Chaos data.
- Wheel rotation/steering comes from `FWheelAnimationData::RotOffset`.
- Suspension travel comes from `FWheelAnimationData::LocOffset`.
- Do not remove `LocOffset` unless intentionally freezing visual suspension for a diagnostic.
7. Verify with runtime CSV/debug numbers, not only screenshots.
- Log actor height, pitch/roll, wheel centers, wheel bottoms, contact flags, suspension length, and wheel offset.
- A good static contact check is wheel bottom near ground Z and all contacts true.
## KAMAZ 5360 Reference Values
For the current KAMAZ 5360 prototype in `C:\git\kamaz5360`:
- wheel diameter from Blender: about `107.6 cm`;
- Chaos wheel radius: `53.78 cm`;
- vehicle mass: `9500 kg`;
- rear wheel drive;
- rear visuals represent twin rear wheels, but Chaos simulates four wheels.
See `projects/garage/kamaz5360-chaos-vehicle.md` for the full project-specific recipe.