How to block bloom effect?[Worked around]

im trying to block the bloom effect when the camera is behind other objects. but it seems like theres no function does that.



the bloom effect is always there on the screen even the object with the bloom effect is behind another object.



i know that set useCurrentScene can solve this problem, but that makes everything in the scene has the bloom effect which is really wierd…and not wanted.



so how do i do this? HELP!!! :’(

The problem here is that the bloom effect is a shader, and thus, is a program in the GPU, not in your code. What you would have to do, turn off the bloom for the whole scene, much like TestBloom does.

Separating your drawing into more passes should be able to solve this. First draw the nodes that should bloom, then draw the bloom pass and lastly draw your occluders.

marqx said:

Separating your drawing into more passes should be able to solve this. First draw the nodes that should bloom, then draw the bloom pass and lastly draw your occluders.


ill try this thx~ :D

you can put the occluding objects in the bloompass as well but make them black(in whatever way you wish)…the states doesnt have to be the same in the bloompass, so that you can achieve different bloomings than the main scene provides…

MrCoder said:

you can put the occluding objects in the bloompass as well but make them black(in whatever way you wish)...the states doesnt have to be the same in the bloompass, so that you can achieve different bloomings than the main scene provides...


im not really following...sry~

u r saying add the entire scene into the bloom pass via add(Spatial) method provided by the bloomrenderpass, then make them black. what do u mean by making them black? and how would i do that?

can u plz be more specific thx. coz im a newbie in shaders and stuff hah XD
plz tell me the steps i need to do~

this is not really solved but i worked around it.



i modified the textures, and set useCurrentScene(true). and decreased the blur intensity multiplier. then everything looks good now :smiley:



thx guys~