o3de icon indicating copy to clipboard operation
o3de copied to clipboard

Baking reflection probe causes errors to be printed in the console

Open LB-KacperSzczepanski opened this issue 2 years ago • 1 comments

Describe the bug: Clicking the Bake Reflection Probe button in the Reflection Probe component prints the following warnings in the console:

[Error] (PassSystem) - Do not add child passes outside of build phase
[Error] (PassSystem) - Pass::FrameBegin - Pass [Root.EnvironmentCubeMapPipeline_{95605793-7D4A-45BD-9C70-931383A884F1}.EnvironmentCubeMapPass.Child.Shadows.Cascades] is attempting to render, but is not in the Idle state.

The issue did not occur in Development (a4f50d0) build. For further information please refer to the attached video file.

Steps to reproduce:

  1. Launch the Editor and create a new level.
  2. Create a new entity with Reflection Probe and Box Shape components.
  3. Click Bake Reflection Probe button inside the Reflection Probe component.

Expected behavior: A Cubemap is baked and the Editors console remains clear of warning and errors.

Actual behavior: Two PassSystem warnings appear in the console.

Video:

https://user-images.githubusercontent.com/86953282/179553595-7740cec4-2d4d-48db-bf18-0eae55c4169c.mp4

Found in Branch: Development (1e94881)

Desktop/Device: • Device: PC • OS: Windows • Version: 10 Pro • CPU: Intel Core i7 11700F • GPU: Nvidia RTX 3070 LHR • Memory: 32GB

LB-KacperSzczepanski avatar Jul 18 '22 16:07 LB-KacperSzczepanski

Discussed in today's Sig-simulation issue triage. Referring this issue to @o3de/sig-graphics-audio for further review

lgleim avatar Aug 04 '22 16:08 lgleim

On the Stabilization/2210 (7c4e3ca) build these errors are also printed when capturing CubeMap via the CubeMap Capture component. It should be noted that the [Error] (PassSystem) - Do not add child passes outside of build phase is printed as [Warning] (PassSystem) - Do not add child passes outside of build phase. The generated .dds is usable without issues in for example Material Editor's Viewport IBL Specular Image Asset.

Should this be reported as a separate issue for the CubeMap Capture component?

LB-ArturZieba avatar Oct 07 '22 11:10 LB-ArturZieba