Snapshot rendering glow layer penetration

with some angles, the box does not block the luminous layer behind it. I struggled with this problem for a long time, until I replicated it at pg. Please give me some advice

I applied everything that could be optimized to the scene including: octree, snapshot rendering, NCM, etc…

My project was more confusing, and I wasn’t quite sure what the problem was. All of these issues will disappear when the standard snapshot mode is turned off.

cc @Evgeni_Popov

It seems removing everything related to octree makes it work:

In any case, you don’t need / should not use an octree as all meshes have alwaysSelectAsActiveMesh = true, so the octree is of no use, and will slow down things instead.

Isn’t octree able to speed up collision detection calculations? That’s why I used it

In that case, you can keep the Octree but reset the getActiveMeshCandidates and getActiveSubMeshCandidates scene properties so that they don’t use the Octree:

1 Like

More serious issues occurred during testing in my project using the playground approach. I use the octree、NCM、snapshot mode、direct light、 Cascaded shadow。 I’m about to give up using snapshot mode.

As explained in the docs, snapshot mode has some restrictions and may be difficult to use in the general case. Best used in “fast” mode, for mostyl static scenes. However, if you are able to reproduce the problems in the PG, we can try to fix them.

Yes, I could try to reproduce the problem, but it might take a while. Because I don’t know what causes this problem, it may not be easy to reproduce.

looks like it could be alpha sorting @Evgeni_Popov ?

Yes, alpha sorting will be even more problematic in snapshot mode than in standard mode because meshes are not sorted front to back. It’s part of the restrictions I spoke above related to this mode.

1 Like