Multiple effect passes issues #342
Replies: 1 comment 1 reply
-
That's correct.
Not yet, but I'm planning on adding a
I think you're hitting #225. The problem is that the depth texture is only attached to the first frame buffer. This works with common setups, but breaks in weird ways with more complicated compositions. The planned buffer management changes will fix that. Changing the Sandbox: https://codesandbox.io/s/multiple-effect-passes-issue-forked-91t90?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
-
Hey postprocessing community,
Im currently having troubles to combine multiple effect passes on the composer.
I've set 2 scenes ( background & foreground ) and I try to exclusively set one effect pass on Back, and one effect pass on Front.
But the second effect pass, seems to be altered by the first one. Even if there is a clear pass between them.
Here is a link to the trouble I have : https://codesandbox.io/s/multiple-effect-passes-issue-htut8?file=/src/App.js
By using the gui, we can see that disabling
effectPass#1
(dof+glitch) impactseffectPass#2
(godRays)We can also show the depth texture ( not the one used for godRays, but a reference ) and see that effectPass#1 one take over effectPass#2, and then the depth is from effectPass#1 and not effectPass#2.
I currently have 2 leads, but Im blocked to investiguate those
Effect Execution Order
As documented here, effects are sorted by their priority. But as I understand, they are sorted within an EffectPass. It this provided case, Their is two EffectPasses. Is this sort order still apply ?
Is there a way to ask the composer to show/tell the final execution order of all passes and effects added?
Convolution + Convolution
As documented here sometime it might requires to have multiple input buffers in order to achieve the proper result.
I know @vanruesc is working on the InputBuffer management api, but in the meantime, does anyone have an example/sample to share on how manually setting inputBuffers can be perform in the current api?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions