Hey there guys,
currently I am setting up a main menu 3d scene, right now it is a big model.
I layed everything out in the scene composer and it looks like this:
As you can see i use quite a lot of light sources. Right now the organization of the scene looks like this:
Every nodes contains certain light sources. So far so good.
The thing is i use point lights and some of them work as intended. However every spotlight and some of the point lights are not “shining”.
Ingame looks like this:
As you can see the spot lights are not working properly and some of the point lights (the one that should illuminate the DOOM title). I tried to debug it, managed to get the LighLists of my nodes and all the lights are there, so i would assume they would be “rendered”.
I do not really understand why this is happening.
The code to load the model:
public void build3DMenu(){
final Spatial menu3DModel = app.getAssetManager().loadModel("Scenes/mainenu/MainMenuScene.j3o");
Quaternion rotate90clock = new Quaternion();
rotate90clock.fromAngleAxis( FastMath.PI / 2, new Vector3f(0, 1, 0));
menu3DModel.setLocalRotation(rotate90clock);
menu3DModel.setName("3DMainMenu");
LOGGER.log(Level.WARNING, ((Node) menu3DModel).getChild("Title").getLocalLightList().get(0));
createSkybox();
set3DMenuCamera();
app.getRootNode().attachChild(menu3DModel);
}
As you can everything is loaded from the model. So i guess there is the problem but thats just an assumption.