question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selectively excluding meshes from effectpass

See original GitHub issue

Hi, great library. I have spent a while now scouring through documentation in an attempt to exclude a certain mesh from being affected by an effect. This is due to the fact that we use shadowplanes for shadows, eg actual meshes with texture, and this messes up the look of many effects.

Is this possible with this library? I have tried both implementations using SavePass and layers as well as multiple render passses. The only option that i have left is to try to render two scenes and only apply the post processing to one of them, however I’d like to avoid that for performance reasons if possible.

Bellow is a sample of my attempt at following the advice seen in issues #295 and #229 Screenshot 2021-06-07 at 14 02 32

This however does not seem to work as the effect gets applied to the whole scene.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oddnuggetcommented, Jun 15, 2021

Thanks a lot! That is exactly what i was looking for.

0reactions
vanruesccommented, Jun 12, 2021

Sorry for the delay, here’s an example where noise is applied to one object: https://codesandbox.io/s/quirky-albattani-khdqq?file=/src/App.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

postprocessing for react-three-fiber - GitHub
Remove the outmost enabled and only the two mesh group is selected. ... Bloom is selective by default, you control it not on...
Read more >
Exclude certain meshes from being affected by postprocessing
I'm currently using some postprocessing effects in my game (SSAO and bloom amongst others). I want some meshes in my scene to be...
Read more >
Listen to position, rotation changes of a mesh - three.js forum
Hey all, I'm currently working on importing a big GLB file which includes Meshes, as well as animation. Next to the imported meshes, ......
Read more >
Post-processing to selected meshes - three.js - Stack Overflow
Yes. There is a three.js example that shows how to apply postprocessing to selected meshes using masking.
Read more >
How do you exclude a mesh from being lit by a particular light?
If I remember correctly, UDK allowed you to exclude meshes from lights, so that you could selectively affect meshes with lights.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found