I started using jMonkeyEngine recently and am enjoying it very much. I tried creating a model in Blender (just a cube), imported it and rendered it on the screen successfully, but it does not have the color that I’ve set in Blender.
What I did in Blender was that I selected the cube, entered the Material tab and set its diffuse color to a bluish color. When I look at the model in the nice JME IDE however, it does not have the color.
What is is that I should do to import the object’s material from the blend file as well?
It is imported automatically when you load .blend.
put .blend in your asset directory and in JME IDE right click on blend file and select convert to j3o. then open it and hit light button on top left side to add a light to scene. then you should be able to see the cube with the color you set in blender.
Oops! Yes
Thanks for putting video. That made debugging of problem so easy
Just remove that default cube of blender and create a new cube (Add → Mesh → Cube) and add a material to it and set color. it will work this time … I hope … .
The problem with blender default cube was in it’s texture. It was using non image based texture which is not loaded by jme.