New glow?

Hi. I updated recently to last jme3 revision and I noticed that glow effect on objects is working differently now. What are the changes and why can I see through some of glowing objects now?

Thank you!

mhhh… what do you mean? there was no change made afaik

Maybe he was drunk :evil:.

Actually it was my fault yes, but I wasn’t drunk! :smiley: I just removed AmbientLight from the scene lol. :slight_smile:

But anyway, its quite interesting, that without ambient light, my black object that is glowing gray, becomes transparent. With ambient light, its not. Why is that so?

If it’s a lightning material so set the Shininess value.

Do you have any other lights in the scene?

Actually it is a lighting material. I have also other lights, but they are not added to that particular node, so no, there are none. :slight_smile:

Hmm maybe I can come up with test case…

The lighting material doesn’t render anything if there aren’t any lights… like nothing at all.

Ok, here comes the proof of my non drunkeness. xD



import com.jme3.light.AmbientLight;

import com.jme3.material.Material;

import com.jme3.math.ColorRGBA;



import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;

import com.jme3.scene.shape.Sphere;

import com.jme3.util.SkyFactory;

public final class Test extends SimpleApplication {

public static void main(String[] args) {

new Test();


public Test() {




public void simpleInitApp() {

AmbientLight ambientLight = new AmbientLight();


// rootNode.addLight(ambientLight);

Sphere sphere = new Sphere(40, 40, 2f);

Geometry holeGeom = new Geometry(“Sphere”, sphere);

Material mat = new Material(assetManager,


mat.setBoolean(“UseMaterialColors”, true);

mat.setColor(“Ambient”, ColorRGBA.Gray);

mat.setColor(“Diffuse”, ColorRGBA.Gray);

mat.setColor(“Specular”, ColorRGBA.White);

mat.setColor(“GlowColor”, ColorRGBA.Blue);



Box box = new Box(1.5f, 1.5f, 1.5f);

Geometry boxGeom = new Geometry(“Box”, box);

Material boxMat = new Material(assetManager,


boxMat.setBoolean(“UseMaterialColors”, true);

boxMat.setColor(“Ambient”, ColorRGBA.Yellow);

boxMat.setColor(“Diffuse”, ColorRGBA.Yellow);

boxMat.setColor(“Specular”, ColorRGBA.White);



boxGeom.setLocalTranslation(0, 0, -4f);

FilterPostProcessor bloomObjFilterPP = new FilterPostProcessor(


BloomFilter bloom = new BloomFilter(BloomFilter.GlowMode.Objects);




“Textures/Sky/Bright/”, false));




Try uncommenting ambient light adding. You will see that there is a glowing sphere and a box behind it. Works ok. If no ambient light is added, box disappears (which is ok), but sphere is still seen and transparent (although its colors are non transparent, it doesn’t use alpha and its not added in tranparent bucket). I added a skybox, so this can be seen. Maybe its also issue with the skybox? :slight_smile:

InShadow said:
Ok, here comes the proof of my non drunkeness. xD

No! You are drunk :D. It looks you didn't set the shininess value like i said before.

Maybe we should just render a black object if there are no lights?

One way of fixing the issue is to add an ambient light with black color

Also if I set shininess, its the same effect!!! :slight_smile:

Don’t get me wrong, I have really no issue with this as I am using ambient light. Just found this strange effect by mistake and thought it was interesting enough to share and discuss why it is working so (could also be bug, you can’t be too careful)… :slight_smile:

Being dunk never prevented one to code in java :smiley:

nehon said:
Being dunk never prevented one to code in java :D

:cry:... Your philosophical phrase moved all us. +3 for you :D.

You are all drunk. :slight_smile: