How can i remove incorrect reflactions?


How can i remove incorrect reflactions? Im using ScreenSpaceReflectionPostProcess method?

Hello! The SSR depends on a camera’s point of view, and does not produce perfect reflections. You can remove an object from the post process by rendering it with another camera that is not used for the post process, an example: Basics Screen Space Reflections | Babylon.js Playground (babylonjs.com)

EDIT: @Evgeni_Popov reminded me a better SSR is in the way: SSR improvements by Popov72 · Pull Request #13336 · BabylonJS/Babylon.js (github.com) :smiley:

1 Like

Are you sure that this reflection is coming from the SSR, because it is not even reversed? The current SSR has its flaws, but the reflection should at least be reversed.

1 Like

Yes, the reflections are coming from SSR. i use prbMaterial.

Then I don’t understand how it can end up like that… Are you able to setup a repro for only the woman and her reflection?

3 Likes

Yes

I could make things a little better by changing some parameters, but unfortunately, the current SSR post-process has flaws that we can’t overcome:

With the new upcoming SSR it would be a lot better:

3 Likes

Don’t mind me but they both look terrible to me. I guess I’m going to wait for the new version before even considering using it.

1 Like

There is some blur in the second screenshot. Without blur:

In any case, the SSR technique has its own flaws that cannot be overcome, so it is a matter of applying it wisely and trying to hide the most obvious problems.

2 Likes

Can you please share this playground url?
with blur and without blur.

Lots of blur

Some blur

No blur

Those are PGs that are using the PR at SSR improvements by Popov72 · Pull Request #13336 · BabylonJS/Babylon.js · GitHub, they won’t work in the regular Playground.

It would be possible to improve things a bit, but the option to do so does not work anymore. I don’t know why, I have to debug it…

3 Likes