Report about possible bug in .blend file JMP plugin (with .blend files for reproducing)

It is seems that a this plugin has a bug with exporting a materials.



When I’m tryning to export .blend file this is in game always black, even with ambient or point lamp.



It seems that bug is not dependend on version of Blender what was used to file creation.



Here are two examples messages from blend plugin:



1.Example:


Packed texture. Reading directly from the blend file!
Loading material.
Loaded material definition: Phong Lighting
Materials name: {0}
Texture not found!
Child (domek_testowy1) attached to this node (domek_testowy)
domek_testowy: (0.0, 0.0, -0.0)–> null
Child (domek_testowy) attached to this node (Models/domek_testowy/domek_testowy.blend)


2.Example:

Loading obejct: Camera
Camera created (W: 100, H: 100)
Loading obejct: Lamp
Importing lamp.
Loading obejct: Sphere
Importing mesh.
Reading texture from file!
Trying with: /home/marcin/jMonkeyProjects/Equisetum/assets/Models/domek_testowy/smieszek.png
Loading material.
Materials name: {0}
Child (Sphere1) attached to this node (Sphere)
Sphere: (0.0, 0.0, -0.0)–> null
Child (Sphere) attached to this node (Models/domek_testowy/smieszek.blend)


Here is a zip with files for reproduction of this bug: http://www.filefactory.com/file/cc15442/n/buggy.zip

I know of some other people with this the same issue.

Proper logging would help a lot I think, the current one isn’t very clear.

What you means by proper loggin?



EDIT: and I would be very pleased if someon can check these files and say that this bug is dependend or independed of my enviroment.

It works for me







I use 3 light setup

[java]AmbientLight fillLight = new AmbientLight();

fillLight.setColor(new ColorRGBA(0.2f, 0.4f, 0.7f, 1.0f));

rootNode.addLight(fillLight);



DirectionalLight backLight = new DirectionalLight();

backLight.setDirection(new Vector3f(-1, 0, 1).normalizeLocal());

backLight.setColor(new ColorRGBA(0.6f, 0.7f, 0.8f, 1f));

rootNode.addLight(backLight);



DirectionalLight keyLight = new DirectionalLight();

keyLight.setDirection(new Vector3f(0, -1, -1).normalizeLocal());

keyLight.setColor(new ColorRGBA(0.9f, 0.9f, 0.7f, 1f));

rootNode.addLight(keyLight);[/java]

Yeah :slight_smile: Thank you this work now.



It seem that ambient light simple has no effect.