[5.8 regression, still present in 5.8.4] Show PhysicsField evaluates Chaos Fields using World Field buffers, causing missing vector lines

Summary

Physics Field vector visualization worked in UE 5.7 but stopped displaying field vectors after upgrading to UE 5.8, as reported by the developer using the engine. Comparing local 5.7.4 and 5.8.4 sources reveals that the analytical visualization path no longer binds the selected field resource’s evaluation buffers. Instead, it evaluates through the View uniform buffer, which is populated from the World Field resource even when visualizing Chaos Fields.

Validation status
The source mismatch and version differences below were verified against both engine source trees. The runtime regression is developer-reported. The minimal reproduction below is proposed for verification; it has not been executed during this investigation. No minimal project, screenshots, runtime logs, or tested fix are attached. UE 5.9 has not been inspected.

Proposed minimal reproduction

  1. In a desktop SM5-or-higher project, create a Field System actor/component with Is Chaos Field enabled and Is World Field disabled. Avoid other World Fields in the level, to keep the two resource sets distinct.
  2. On BeginPlay, add an enabled persistent Linear Force field using a nonzero vector multiplied by a bounded radial falloff. Use a comfortably visible radius, e.g. 500 cm, and position the camera nearby. A persistent field avoids dependence on transient visualization lifetime.
  3. Enter PIE or Simulate, then enable Physics Field visualization in the active viewport (Show > Visualize > Physics Field, or Show PhysicsField if currently disabled).
  4. Set:
    r.PhysicsField.Rendering.SystemType 0
    r.PhysicsField.Rendering.TargetType 2
    r.PhysicsField.Rendering.EvalType 0
  5. Compare vector-line visualization in UE 5.7 and UE 5.8. If needed, verify separately that the field affects a suitable simulating physics object.

What Type of Bug are you experiencing?

Editor

Steps to Reproduce

  1. In a desktop SM5-or-higher project, create a Field System actor/component with Is Chaos Field enabled and Is World Field disabled. Avoid other World Fields in the level, to keep the two resource sets distinct.
  2. On BeginPlay, add an enabled persistent Linear Force field using a nonzero vector multiplied by a bounded radial falloff. Use a comfortably visible radius, e.g. 500 cm, and position the camera nearby. A persistent field avoids dependence on transient visualization lifetime.
  3. Enter PIE or Simulate, then enable Physics Field visualization in the active viewport (Show > Visualize > Physics Field, or Show PhysicsField if currently disabled).
  4. Set:
    r.PhysicsField.Rendering.SystemType 0
    r.PhysicsField.Rendering.TargetType 2
    r.PhysicsField.Rendering.EvalType 0
  5. Compare vector-line visualization in UE 5.7 and UE 5.8. If needed, verify separately that the field affects a suitable simulating physics object.

Expected Result

The analytical Chaos Field visualization evaluates the selected Chaos Field resource and displays nonzero vector samples as lines, as in UE 5.7. It should not depend on the presence of equivalent World Fields.

Observed Result

The developer reports missing vector lines in UE 5.8. Source analysis predicts missing or incorrect vector samples when the selected Chaos Field’s bounds are used with unrelated World Field evaluation buffers. Bounds/text may still appear; that specific visual symptom has not been independently tested.

Affects Versions

5.8

Platform(s)

Windows

Additional Notes

Source comparison / likely cause
Paths below are relative to Engine/.

  1. In UE 5.7.4, Source/Runtime/Renderer/Private/PhysicsFieldRendering.cpp, CreateShaderParameters, lines 121-124, explicitly binds the selected PhysicsFieldResource:
    Parameters->NodesParams = PhysicsFieldResource->NodesParams.SRV;
    Parameters->NodesOffsets = PhysicsFieldResource->NodesOffsets.SRV;
    Parameters->TargetsOffsets = PhysicsFieldResource->TargetsOffsets.SRV;
    Parameters->TimeSeconds = PhysicsFieldResource->FieldInfos.TimeSeconds;

    RenderPhysicsField selects DebugResource for SystemType == 0 (line 196). Thus the analytical evaluator receives the Chaos Field’s own buffers.

  2. In UE 5.8.4, those four explicit bindings and their shader parameter declarations have been removed from PhysicsFieldRendering.cpp. CreateShaderParameters still binds View.ViewUniformBuffer (line 107), while bounds come from the selected PhysicsFieldResource (lines 112-115). RenderPhysicsField still selects DebugResource for SystemType == 0 (line 187).

  3. In UE 5.8.4, Shaders/Private/PhysicsFieldVisualizer.usf, line 154, the vector evaluator now receives:
    PhysicsField_EvalPhysicsVectorField(VoxelCenter, GlobalTarget,
    View.PhysicsFieldNodesParams, View.PhysicsFieldNodesOffsets,
    View.PhysicsFieldTargetsOffsets, View.GameTime);

    The scalar and integer analytical visualization paths were changed similarly (lines 334 and 321).

  4. In UE 5.8.4, Source/Runtime/Renderer/Private/SceneRendering.cpp, SetupPhysicsFieldUniformBufferParameters, lines 1366-1372, always populates those View evaluation buffers from Scene->PhysicsField->FieldResource, not DebugResource. This is the World Field resource. With clipmap building disabled, lines 1376-1379 use dummy buffers instead.

  5. The resources are genuinely separate: Source/Runtime/Engine/Private/PhysicsField/PhysicsFieldComponent.cpp routes non-World persistent commands into CPUWriteBuffer and GPUDebugBuffer (AddPersistentCommand, lines 1011-1020), and TickComponent updates FieldInstance and DebugInstance from GPUFieldBuffer and GPUDebugBuffer respectively (lines 861-875).

Consequently, the default analytical Chaos visualization path mixes DebugResource bounds with FieldResource evaluation data. This source-level regression is still present in the inspected 5.8.4 sources.

Suggested fix direction (not implemented or tested)
Bind evaluation buffers and field evaluation time from the resource selected by RenderPhysicsField directly to the visualization shader, as the 5.7 path did, or provide an equivalent visualization-specific parameter set. Keep the general View World Field bindings intact for their existing consumers. Verify both Chaos and World analytical visualization, scalar/integer fields, and time-dependent fields.

Additional diagnostic note
The default r.PhysicsField.Rendering.TransientLifetime changed from 3.0 in 5.7.4 to 0.0 in 5.8.4 (PhysicsFieldRendering.cpp, line 43). Setting it to 3 may help inspect transient fields, but does not repair the resource mismatch described above. This report uses a persistent field to isolate the main issue.