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/skills/unreal-chaos-vehicle-blender-pipeline.md
2026-06-10 00:37:28 +03:00

4.6 KiB

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:
-ExecCmds="Interchange.FeatureFlags.Import.FBX 0"
  1. 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.
  2. 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.
  3. 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.

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:

  • 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.