Document empty KAMAZ rollback point

This commit is contained in:
Codex qore 2026-05-26 18:53:56 +03:00
parent 36c4a2ba29
commit 96fe601122
4 changed files with 63 additions and 11 deletions

View file

@ -4,16 +4,17 @@
Environment observed on `qore` while working on the standalone Unreal 5.7 KAMAZ prototype at `C:\git\kamaz5360`.
The project created two NDI streams:
The project created three NDI streams:
- `KamDash`, 1280 x 720, 30 fps dashboard stream.
- `KamMirrLeft`, 576 x 1024, 30 fps left mirror stream.
- `KamMirrRight`, 576 x 1024, 30 fps right mirror stream.
Unreal logs said both `UNDIMediaOutput` captures started correctly, but no NDI receiver saw either source locally or on other LAN computers.
Unreal logs said the `UNDIMediaOutput` captures started correctly, but no NDI receiver saw the sources locally or on other LAN computers.
## Symptoms
- NDI receiver tools did not list `KamDash` or `KamMirrLeft`.
- NDI receiver tools did not list `KamDash`, `KamMirrLeft`, or `KamMirrRight`.
- Other computers also did not see the streams.
- Unreal log showed successful NDI capture startup:
- `NDI runtime library loaded and initialized`
@ -21,6 +22,7 @@ Unreal logs said both `UNDIMediaOutput` captures started correctly, but no NDI r
- `Media Capture Started: Render Target (576 x 1024)`
- `KAMAZ_NDI KamDash started=1 state=1`
- `KAMAZ_NDI KamMirrLeft started=1 state=1`
- `KAMAZ_NDI KamMirrRight started=1 state=1`
- A separate minimal NDI test sender and NDI Tools Test Patterns were also not discoverable while the VPN/routing state was wrong.
## Cause
@ -60,7 +62,7 @@ Fast test:
1. Disable Amnezia VPN.
2. Restart Unreal or press Play again.
3. Check NDI receiver for `KamDash` and `KamMirrLeft`.
3. Check NDI receiver for `KamDash`, `KamMirrLeft`, and `KamMirrRight`.
Production fix options:

View file

@ -1,5 +1,15 @@
# Garage Agent Log
## 2026-05-26 - qore KAMAZ 5360 Rollback Point "пустой камаз"
- Machine: `qore`.
- Agent: Codex.
- Summary: Fixed the current standalone Unreal 5.7 KAMAZ 5360 prototype as the clean rollback point named `пустой камаз`.
- Project state: `C:\git\kamaz5360` commit `09f492d Add right NDI mirror output`, annotated tag `empty-kamaz`.
- Meaning: simple Chaos vehicle KAMAZ without plow/brush gameplay attachments, with driving, soft suspension tuning, runtime camera switching, dashboard NDI, left mirror NDI, and right mirror NDI.
- Rollback command: `git reset --hard empty-kamaz` from `C:\git\kamaz5360`; only run after user confirmation because it discards later local changes.
- Knowledge handoff: See `projects/garage/kamaz5360-chaos-vehicle.md` for the Blender/UE/Chaos/NDI notes needed to rebuild this state.
## 2026-05-26 - qore KAMAZ 5360 NDI Dashboard And Mirror Outputs
- Machine: `qore`.

View file

@ -224,9 +224,31 @@ Known-good diagnostic result after final tuning:
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.
## Rollback Point: пустой камаз
The current clean rollback point requested by the user is named `пустой камаз`.
Local repository state on `qore`:
- Path: `C:\git\kamaz5360`
- Branch: `master`
- Commit: `09f492d Add right NDI mirror output`
- Tag: `empty-kamaz` annotated with message `пустой камаз`
Meaning of this checkpoint: a simple, empty KAMAZ driving prototype without plow/brush gameplay attachments, with working Chaos vehicle driving, runtime camera switching, dashboard NDI, left mirror NDI, and right mirror NDI. Use this point before adding back municipal equipment, snow logic, or more complex simulator features.
Rollback command:
```powershell
cd C:\git\kamaz5360
git reset --hard empty-kamaz
```
Only run the rollback command after confirming with the user, because it discards later local changes.
## Runtime Cameras And NDI Outputs
As of local KAMAZ commit `ebd2a9d Add NDI dashboard and mirror outputs`, the standalone `C:\git\kamaz5360` prototype includes runtime camera switching plus two NDI outputs.
As of rollback point `пустой камаз` / tag `empty-kamaz`, the standalone `C:\git\kamaz5360` prototype includes runtime camera switching plus three NDI outputs.
Relevant files:
@ -249,26 +271,43 @@ NDI outputs:
- `KamDash`: 1280 x 720, 30 fps, dashboard-only stream. It is drawn into a `UCanvasRenderTarget2D`. At minimum it displays real vehicle speed in km/h and engine RPM from Chaos.
- `KamMirrLeft`: 576 x 1024, 30 fps, left mirror stream. It is produced by a `USceneCaptureComponent2D` attached to the truck mesh.
- `KamMirrRight`: 576 x 1024, 30 fps, right mirror stream. It mirrors the left mirror implementation.
- `NDIMedia` and `MediaIOFramework` must be enabled in `kamaz5360.uproject`.
- Build dependencies include `MediaIOCore` and `NDIMedia`.
- Render targets for NDI must be `PF_B8G8R8A8` / `RTF_RGBA8`; the first attempt without explicit `InitCustomFormat(..., PF_B8G8R8A8, false)` was harder to reason about.
- Set NDI `SourceName` exactly to `KamDash` and `KamMirrLeft`; set `GroupName` to `Public`.
- Set NDI `SourceName` exactly to `KamDash`, `KamMirrLeft`, and `KamMirrRight`; set `GroupName` to `Public`.
Current left mirror camera tuning after user feedback:
Current mirror camera tuning after user feedback:
```cpp
LeftMirrorCapture->FOVAngle = 92.0f;
LeftMirrorCapture->FOVAngle = 108.0f;
LeftMirrorCapture->SetRelativeLocation(FVector(245.0f, -145.0f, 248.0f));
LeftMirrorCapture->SetRelativeRotation(FRotator(-4.0f, 154.0f, 0.0f));
RightMirrorCapture->FOVAngle = 108.0f;
RightMirrorCapture->SetRelativeLocation(FVector(245.0f, 145.0f, 248.0f));
RightMirrorCapture->SetRelativeRotation(FRotator(-4.0f, -154.0f, 0.0f));
```
Intent: the camera is close to the left side of the cab, wide angle, looking backward with enough inward yaw that the left side of the truck is visible in about one third of the mirror feed.
Intent: each mirror camera is close to its side of the cab, wide angle, looking backward with enough inward yaw that the side of the truck is visible in about one third of the mirror feed.
Mirror image flipping:
- Do not use negative `CoordinateSize` in `Canvas->K2_DrawTexture`; it produced black mirror frames.
- Use `FCanvasTileItem` with normal size and flipped UVs:
```cpp
MirrorTile.UV0 = FVector2D(1.0f, 0.0f);
MirrorTile.UV1 = FVector2D(0.0f, 1.0f);
MirrorTile.BlendMode = SE_BLEND_Opaque;
Canvas->DrawItem(MirrorTile);
```
The regular on-screen vehicle UI was removed from the main viewport by not adding `VehicleUI` to the viewport in `kamaz5360PlayerController.cpp`. Speed/gear should not appear on external or driver cameras; telemetry should be on `KamDash`.
## NDI Network Discovery Notes
If `KamDash` / `KamMirrLeft` do not appear in NDI receivers, first inspect the Unreal log:
If `KamDash` / `KamMirrLeft` / `KamMirrRight` do not appear in NDI receivers, first inspect the Unreal log:
```powershell
rg -n "KAMAZ_NDI|NDIMedia|Media Capture|KamDash|KamMirr" C:\git\kamaz5360\Saved\Logs\kamaz5360.log
@ -281,6 +320,7 @@ Known-good Unreal-side log lines include:
- `LogNDIMedia: Media Capture Started: Render Target (1280 x 720).`
- `KAMAZ_NDI KamDash started=1 state=1`
- `KAMAZ_NDI KamMirrLeft started=1 state=1`
- `KAMAZ_NDI KamMirrRight started=1 state=1`
If those lines are present but no receiver sees the sources, the problem is network discovery, not the Unreal render code.

View file

@ -29,7 +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, tuned suspension, runtime cameras, and NDI dashboard/mirror outputs | `C:\git\kamaz5360` on `qore` | `ssh://qore@192.168.1.66/srv/git/kamaz5360.git` | `master` | current local commit `ebd2a9d Add NDI dashboard and mirror outputs`; earlier remote push failed on 2026-05-26 because `192.168.1.66:22` timed out |
| kamaz5360-qore | standalone Unreal 5.7 KAMAZ 5360 Chaos Vehicle prototype with Blender-derived skeletal mesh, tuned suspension, runtime cameras, and NDI dashboard/mirror outputs | `C:\git\kamaz5360` on `qore` | `ssh://qore@192.168.1.66/srv/git/kamaz5360.git` | `master` | current local rollback point `пустой камаз`: commit `09f492d Add right NDI mirror output`, tag `empty-kamaz`; earlier 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