Hi,
I made a .glb model in blender and am using it in jme. However, the lights that I added in blender don’t seem to work in jme. I then added some point lights to the scene. However, they don’t seem to actually light up the planes around them how I expected. Some parts of the model aren’t lit up at all, even if there is a light right next to them. Here is an example:
Isn’t the Scene the rootNode? All the geometries are under the scene, as well as the lights.
When I disable the light, one of the walls is lit. When I enable the light, however, it turns dark. Why is this happening?
Also, is it possible to get the lights from the blender model working in jme?
Then there is something wrong with the geometry. Probably the normals are pointing in instead of out or something. Check the normal direction in blender or just regenerate normals and try again.
A normap map also needs regular vertex normals (and tangents) or it won’t know where to point things. Lighting = normals. No mormals, no lighting. Inseparable.
Probably if you google “blender normal directions” you will get a few thousand hits.
Edit: re:
Yes, well Blender can render effects for feature films… but they aren’t going to work in a game. Geometry needs to be put together correctly for game engines.
@Randamixer was this using the beta for jme 3.4.0?
As of 3.4.0 lights exported from blender with gltf format will get imported as long as they were exported with the lights punctual gltf extension (an option in blender on the export page)