Problems Rendering a single frame when using multiple cameras and layermasks

pg: https://playground.babylonjs.com/#08A2BS#242

Hi all, in the above PG, you can see that I stop the render loop then try to render a single frame. Problem is the background image does not show up. Im wondering if there is some callback I need to wait for that fires when the post process compositing is finished? I looked into some of the callbacks available in the DefaultRenderingPipeline but nothing I do seems to make a difference. As a side note: the technique for rendering the BG as a seperate layer was borrowed from another thread:

Iā€™m not sure how to fix PG. ping @Evgeni_Popov

This PR will fix the problem by checking that the layers are ready in scene.isReady:

4 Likes