docs: update Unreal vehicle import pipeline
This commit is contained in:
parent
2c84267665
commit
e8fdef363a
2 changed files with 37 additions and 0 deletions
|
|
@ -28,3 +28,12 @@ Possible gameplay loop:
|
|||
|
||||
- `kamaz5360-snow-handoff-2026-06-02.md` records the current Unreal Engine 5.7 KamAZ snow state, logs, known failures, working pieces, and recommended next step. Start there before continuing city snow/tile work.
|
||||
|
||||
## KamAZ Bunker Variant Import Lesson
|
||||
|
||||
- For the `kamBunkerSnow_v2` style workflow, do not show the old full skeletal truck body and try to hide obsolete equipment with a few material slots.
|
||||
- Use the existing Chaos skeletal truck for physics and wheel animation, but export a cleaned static visual body from Blender for the new cab/frame/bunker variant.
|
||||
- Remove the old `CISTERN`, brush, and sweeper/vacuum pieces in Blender before export, then reimport the cleaned static mesh into Unreal.
|
||||
- In the bunker pawn, leave only wheel-related skeletal sections visible; attach the cleaned static body with collision disabled.
|
||||
- Driver-eye camera mode must hide the attached static body visual, because `OwnerNoSee` on the skeletal mesh does not affect attached static mesh actors. The plow should remain visible.
|
||||
- Ground/plow traces must ignore the pawn and attached visual actors, otherwise traces can hit the new body visual and cause floating, jitter, or wrong plow contact.
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,34 @@ Use this procedure when preparing a Blender vehicle model for Unreal Chaos Vehic
|
|||
- 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.
|
||||
|
||||
## Variant Vehicle Visuals
|
||||
|
||||
Use this pattern when the new vehicle variant reuses a working Chaos skeletal vehicle but needs a different body, tank, bunker, plow, or attachment:
|
||||
|
||||
1. Keep the skeletal mesh as the physics and animation carrier only.
|
||||
- Do not rely on hiding a few old material slots if the source skeletal mesh still contains an obsolete cistern, brush, sweeper body, or other equipment.
|
||||
- Material-slot hiding is fragile because old body sections can share generic orange/black materials with the cab.
|
||||
|
||||
2. Export a clean static visual mesh from Blender for the variant body.
|
||||
- Remove or move obsolete objects such as `CISTERN`, `BROOM_METLA`, and brush parts into a hidden/non-rendered collection before export.
|
||||
- Export the cleaned cab/frame/body/bunker as one static mesh.
|
||||
- Exclude animated wheel meshes from the static visual if Chaos wheel animation should remain visible from the skeletal mesh.
|
||||
|
||||
3. In the Unreal pawn, render only the parts of the skeletal mesh that must stay animated.
|
||||
- For a reused KAMAZ skeletal vehicle, keep wheel-related material sections visible and hide the rest.
|
||||
- Attach the cleaned static body visual to the pawn with no collision.
|
||||
- Keep traces ignoring `self` and attached visual actors, otherwise startup ground traces, plow traces, or wheel diagnostics can hit the visual body and make the vehicle float or jitter.
|
||||
|
||||
4. Handle first-person/cabin cameras explicitly.
|
||||
- OwnerNoSee on the skeletal mesh does not hide attached static body actors.
|
||||
- When camera 0 is the driver's-eye view, hide the attached body visual for that camera mode while leaving the plow visible.
|
||||
- Re-enable the attached body visual for outside cameras.
|
||||
|
||||
5. Reimport deliberately.
|
||||
- In UE 5.7, FBX import/reimport can crash after `Interchange import completed` in headless commandlets because ContentBrowser/Slate callbacks run without a valid Slate application.
|
||||
- If the `.uasset` timestamp and size changed and Unreal can load the asset afterwards, the asset may have saved before the post-import crash.
|
||||
- Always verify the imported asset loads, then rebuild C++ and restart the editor.
|
||||
|
||||
## KAMAZ 5360 Reference Values
|
||||
|
||||
For the current KAMAZ 5360 prototype in `C:\git\kamaz5360`:
|
||||
|
|
|
|||
Reference in a new issue