Add Bloom Filter to FilterPostProcessor before FilterpostProcessor is attached?

Hello,



do I have to add the BloomFilter to FilterPostProcessor before FilterpostProcessor is attached to the viewport?

I can not get the BloomFilter got work.



The same problem with FadeFilter



Thanks.



Regards,

Equi

The order does not matter.

Anyway what is the exact problem, you have an error? the effect does not show up? the screen is black?

Could you give me a test case to reproduce the issue?



The fade filter is not like the others because it’s animated, you have to call the fadeIn and fadeOut method in order to see something.

Hello,



the problem is that I see “trash” from the memory I suppose. It is a color noise. I don’t think that I can give you a test case because my program is build up on top of a very complicated framework. However, if I look carefully at my code, I do nothing else than add a bllom filter to a FilterPostProcessor. It looks something like this…



[java]

myFilterPostProcessor = new FilterPostProcessor(myAssetManager);



PraxitelesApplication.findInstance().getApplication().enqueue(new Callable() {



@Override

public Void call() throws Exception {

PraxitelesViewPort praxitelesViewPort = (PraxitelesViewPort) netcrystalsObject;

praxitelesViewPort.getViewPort().addProcessor(myFilterPostProcessor);

return null;

}

});



bloomFilter = new BloomFilter(myCam.getWidth(),myCam.getHeight(),BloomFilter.GlowMode.Objects);



PraxitelesApplication.findInstance().getApplication().enqueue(new Callable() {

@Override

public Void call() throws Exception {

myFilterPostProcessor .addFilter(bloomFilter);

return null;

}

});

[/java]



Before Filter has been added





After Filter has been added





Thanks.



Regards,

Equi

Do you use a particle emitter by any chance?

nop. definitely not. I have implementations for a particle emitter but they are not attached to this scene node, sorry. From my very early days I suppose this to be memory garbage…

We have a similar issue when using filters and particle emitters, i’ll look at it hoping this can be the cause of your issue.

But if it’s not i’m afraid i’m gonna need a test case.