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.

SelectiveBloomEffect effecting other objects

See original GitHub issue

After defining the selectiveBloomEffect.selection.set(selection) with an array on objects the bloom effect does work only on the selected objects (as expected).

It is however changing the way other objects looks like (the selection has a single mesh - the rubbery cloth strap):

image

This is how the model looks like without the SelectiveBloomEffect postprocessing:

image

This is how it looks like whene I’n using the SelectiveBloomEffect on the plastic cups mesh, you can see that the bloom effect does work for the lights:

image

Whene using postprocessing you can see artifacts and bad antialiasing.

Those are my bloom options params:

const bloomOptions = {
    blendFunction: BlendFunction.SCREEN,
    kernelSize: KernelSize.MEDIUM,
    luminanceThreshold: 0.1,
    luminanceSmoothing: 0.075,
    height: 360
};

Anything I can do about it?

Thanks!

  • Three: 0.120.0
  • Post Processing: 6.19.3

Desktop

  • OS: Windows 10
  • Browser Chrome 87.0.4280.141
  • Graphics hardware: NVIDIA GTX 2060

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ranbuchcommented, Jan 18, 2021

@vanruesc that’s perfect! Thanks.

1reaction
vanruesccommented, Jan 18, 2021

Hi,

it looks like you’re converting colors to sRGB at the end of your pipeline which causes banding. There also doesn’t seem to be any antialiasing going on. See this and this for details. If this information doesn’t help, please provide a minimal reproduction of the issue. You can use the sandbox as a starting point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding bloom to only specific objects...? - Unity Forum
Is it possible to add a bloom ppe to only specific materials or objects? For instance, if I have tracer rounds shooting out...
Read more >
How to use bloom effect not for all object in scene? - Questions
I make 2 scenes: first for objects, second for clone “lighting” objects with EffectComposer(BloomPass,FilmPass).
Read more >
SelectiveBloom - React Postprocessing Documentation
Name Type Default selection Objects lights Lights blendFunction BlendFunction BlendFunction.SCREEN
Read more >
Unity: How to apply bloom to only some objects in the scene?
In my game I want to apply bloom, from the standard assets, to only a few objects in the scene. To do that,...
Read more >
ThreeJS Selective Bloom For Specific Parts Of One Object ...
But the concept of selective bloom itself is simple enough: Make all non-bloomed objects totally black; Render the scene with bloomComposer ...
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