Hey everyone,
I just started programming with jme3 and i really enjoy it
The last days I tryied to implement light in my scene but somethings seems to be wrong there.
Vector3f lightpos = new Vector3f(21, 10, 21f);
// Light
PointLight pl = new PointLight();
pl.setPosition(lightpos);
pl.setColor(ColorRGBA.White);
pl.setRadius(40f);
rootNode.addLight(pl);
Geometry lightMdl = new Geometry("Light", new Sphere(10, 10, 0.1f));
lightMdl.setLocalTranslation(lightpos);
lightMdl.setMaterial(assetManager.loadMaterial("Common/Materials/RedColor.j3m"));
rootNode.attachChild(lightMdl);
The enviroment is generated before the light is getting attached. (The walls and floor consists of Quads)
I added another big quad to test light, seems like on this quad the light is right.

Can somebody tell me whats wrong here? :)