Dear experts, I export now my model from blender into JME and am stuck with three issues:
- When converting blend file in JME to j3o, I get this error in JME console for every texture I use:
The texture BedroomFloor has linear color space, but the material parameter DiffuseMap specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
-
Then, when I open the scene by “Edit in Scene Composer”, and press button “Camera light”,
scene is displayed almost ideally (in blender I use ambient light):
The only problems is the garage texture which is displayed with something ike waves over it. If you know the reason, please let me know, but this one is minor problem (worst I redo the texture completely):
-
But if I add Ambient Light to the scene in blender, all objects look either mid dark, or very overlighted.
I tried to change Ambient Light settings, but using following code:
AmbientLight ambient = new AmbientLight(ColorRGBA.White.mult((increase or decrease floating value here)));
app.getRootNode().addLight(ambient);
But it also did not help…
If needed, I can upload the blend file as well…
P.S. could it be that the last issue is mainly for the textures without UV maps?
Are standard blender textures not supported or I miss some settings?
(or there is completely different reason?)
(though I see UV mappped textures on the floor are in the last image also at least slightly overlighted)
Update: Dear JME experts, thanks a lot for your advices! I found in the end the reason to main questions,
and it was as usually own wrong application:
- AmbientLight - casts no shadows at all, that is why if applying only this light, or applying this light stronger as others, it was blending the scene, showing all as unshaded.
- My light vector was wrong, I though of vector as position in 3d space, but not as a real vector.
Here, I oversee “Math for Dummies” link in the forum. But now I am better armed - I added directional light, with the same direction as the camera has, plus added a far less brighter backlight, to make shadows softer, and this looks perfect now.