hi… I am trying to import a model with extention .blend . My model is showing correct Materials in blender but it comes to jmonkey, no material is displayed. How to import the materials in jmonkey with .blend ??
Right click → Convert to j3o binary
Then load the j3o
EDIT: sorry, actually this may not work. You might want to first convert it to Ogre XML.
can I convert j3o binary in blender? regardless i am new in blender
jmonkey supports blender file but I am unable to link the uv map can you please tell me how to do that?
Did you try loading other, simpler, .blend models to see if you have problems? Otherwise, I run out of suggestion
Theres an example .blend file in the SDK which has the UV slots prepared correctly, just select “New File->Blender->UV Mapped Box”. Also check out this: http://wiki.jmonkeyengine.org/doku.php/jme3:external:blender
I have made a simple box model. made UV map for that with extension .png and put both the .blend file and the .png file in the same folder. then tried to load the .blend file in jmonkey. the model is loading but the map is not loading
When you copy the blend file and texture file to the same asset folder. Before converting it to .j3o, open that .blend file and check under texture tab the path of the texture. Make sure the path is relative and it points to the .png in the asset folder.
if you are sure you have the texture mapped correctly in blender you can also pack the images you used along with the model. That way you don’t have to worry about where your texture files are. In the uv editor window click on image on the menu. At the top you will see pack image. click that then you will see on your tools bar it says pack as png. I usually check that. So when you import to jme your textures and maps are already part of the model. works for me.
And note: selecting an image in the UV mapper thingy in Blender is not the same as adding a texture to the object’s material. Only the latter will actually show up in JME without intervention. (Otherwise you have to click the generate material button in the SDK and set the diffuse texture yourself.)