MultiViews Viewport Distortion When Using SSAO Post-Processing

Hey! I believe I’ve found a bug.

When using SSAO post-processing with MultiViews, the viewports get squished, but SSAO still seems to render in the correct position.

I modified the MultiViews Part 2 documentation playground example:
:link: Playground Example

I added these lines:

// SSAO
var ssao = new BABYLON.SSAO2RenderingPipeline("ssao", scene, 1.0);
ssao.totalStrength = 50;
scene.postProcessRenderPipelineManager.attachCamerasToRenderPipeline("ssao", [camera1, camera2]);

If you remove these lines, the viewports render normally again.

cc @Evgeni_Popov as he is deep down SSAO2 now

Actually I have time to check @Evgeni_Popov so no worries

here we are:
Fixed issue when using SSAO2 with viewports by deltakosh · Pull Request #16146 · BabylonJS/Babylon.js

thanks for the heads up!

2 Likes