Closed ayan4m1 closed 1 month ago
I have the same error. On version three 0.168.0 "SSAO" doesn't work and after using "N8AO" I get this error
This is because the N8AO they are using is very old :(. 1.9.2 is neccessary.
We're not able to use N8AO upstream since it pulls from three/examples
and creates a dual package hazard for us. There is an additional issue of how/whether we update N8AO as it is not backwards compatible.
:tada: This issue has been resolved in version 2.16.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Appreciate the fix!
Elaborate on what you mean by 'dual package hazard'? How would I alleviate this?
If N8AO was to be entirely self-contained, would this issue be resolved? And an update could be made?
For context, see https://github.com/N8python/n8ao/issues/32
Basically, postprocessing depends explicitly on a fairly old version of N8AO , which is not compatible with Three.js starting from 0.166.0. This means that if you use the N8AO convenience component in postprocessing, you will get a Shader Error unless you hold three.js back.
I think there are multiple possible solutions here:
My preference would be for the second choice, but obviously open to discussion. Happy to open a PR if there is consensus.
Repro: https://github.com/ayan4m1/leela-memorial (then upgrade three.js to latest and run yarn install, npm start, go to "3D view" page and observe error)