Artifacts with cameraFrame bloom

hey everyone,

i was testing bloom using the cameraframe class and started to get black frames or black artifacts. at low blur levels, i see black boxes, while at higher levels the boxes become so big that they cover the whole screen – so it looks like black frames.

it only appears when i introduce a reflective material into the scene. i found that the artifacts vanish when i turn off webgu in the config, though. i went back to PlayCanvas Examples and realized it happens there too.

i have reproduced it in this project:
https://playcanvas.com/project/1320718/overview/bloom-camera-frame

it may be my gpu or something else with my system:
nvidia geforce rtx 2080 super
chrome version 134.0.6998.166

tell me if you need more detailed information.

1 Like

Yep I’ve noticed that few days ago on my nvidia 2070, and it’s on my list to fix. I suspect the shader in some cases generates Inf / Nan values and bloom propagates those. I fixed some in the past, must be still an instance of this somewhere.

1 Like

lo… could have made a shorter post then :wink: … but good to know!

1 Like

but the bloom looks lovely!

1 Like

Oh, I’m getting it too. The weird thing is the 3D modeler I’m working with says he hasn’t seen it at all. I’m also using the camera frame script to apply bloom.

GPU: nvidia 3090
OS: Ubuntu 24.10
Browsers: Firefox 136 (beta, snap), Chrome 134 (stable, deb)

Edit: Martin, on Discord I DM’d you a Spector.JS save of a frame generation with that artifact.
Edit 2: I’m seeing it on both the Bloom and the DoF camera-frame effects.

1 Like

Did I not send a patch for this? I meant to but yes you’re correct a clamp on the final result fixes it

I don’t belive you have :wink:

But I was hoping to find the actual problem. Clamp on the final value might not be the best solution.