BloomFilter hiding the Skybox?

I’ve added a bloomfilter to the guinode:

        FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
        BloomFilter bloom = new BloomFilter(BloomFilter.GlowMode.Objects);
        bloom.setBloomIntensity(2f);
        bloom.setExposurePower(2);
        bloom.setExposureCutOff(0f);
        bloom.setBlurScale(1.5f);
        fpp.addFilter(bloom);
        guiViewPort.addProcessor(fpp);
        guiViewPort.setClearColor(true);

Then I’ve added a skybox to the rootNode:

            Texture west, east, north, south, up, down;
            west = app.getAssetManager().loadTexture("Scenes/test_left2.png");
            east = app.getAssetManager().loadTexture("Scenes/test_right1.png");
            north = app.getAssetManager().loadTexture("Scenes/test_front5.png");
            south = app.getAssetManager().loadTexture("Scenes/test_back6.png");
            down = app.getAssetManager().loadTexture("Scenes/test_bottom4.png");
            up = app.getAssetManager().loadTexture("Scenes/test_top3.png");
            sky = SkyFactory.createSky(app.getAssetManager(), west, east, north, south, up, down);
            ((SimpleApplication) app).getRootNode().attachChild(sky);


The skybox is visible only without the Bloom… why? How can I have both?

Because you are using guiViewPort , try using viewPort.

If I use viewPort I don’t get the bloom effect…

Most post process were designed to work in the main viewport and will have unexpected behavior in the gui viewport.
IMO if you want a glow effect in the gui vp, you’d better bake your glow in the texture. Like in the font if you want glowing letters.

1 Like