0beqz / realism-effects

SSGI, Motion Blur, TRAA - Effects to enhance your three.js scene's realism
https://realism-effects-obeqz.vercel.app/
MIT License
1.43k stars 67 forks source link

Consistent AO depending on scene scale #30

Open MajorMeerkatThe3rd opened 1 year ago

MajorMeerkatThe3rd commented 1 year ago

Hello, I'm having an issue setting up the AO (both HBAO and SSAO) with varying scene sizes.

In this first example, I have a pretty standard setup with the HBAO effect. Everything works as expected.

When I now introduce a scalingFactor that scales all elements in the scene as in this second example, the results of the AO are not consistent. I tried to adjust the distance, thickness and radius by the scalingFactor with no success.

Is there a way to achieve consistent AO results depending on the scene scale?

0beqz commented 6 months ago

Hey, apologies for the delay. Right now the second version is in the works which is also why I couldn't give you a straight solution. Right now, HBAO is very basic so things like scene scale aren't taken into account. So there isn't a way at the moment. I'll check it out, thanks for reporting!