Problems with Import model

I have a model in Blender and when I import it with “import model” in Jmonkey happens some problems with material. See below

Someone know why??? thanks



In Blender





In JMonkey

Use textures and UV maps for game models, everything else is not guaranteed to be compatible.

I have a model with just textures UV maps and happens the same thing.

See below



In Blender





In JMonkey





Thanks

En

Hello guy :)! Where are the material? Did you try to create a j3m material?



Pt

Olá cara :)! Aonde tá o material? Você tentou criar um material j3m?

En

I didnt try to create a material, Do I have to create a material, set the texture and add to the model? thanks



Pt

Eu não tentei criar um material, eu tenho que criar um material, colocar a textura e adicionar ao modelo? valeu

En

Hehe, yeah, you have to create a j3m material in material editor ( use the lightning material definition in this case )…assign the texture(s) to it… assing the material to the model in scene composer.



Pt

Hehe, isso, você tem que criar um material j3m no editor de materiais ( use o lightning material definition nesse caso )…assine a(s) textura(s) para ele…assine o material para o modelo no scene composer.



There are 2 video tutorials about creating a j3m material on wiki:



http://www.youtube.com/watch?v=Feu3-mrpolc


http://www.youtube.com/watch?v=IuEMUFwdheE

1 Like

En

Thanks, I’m going to try at home at night and then I say if it worked.

Just a question, if my model has many nodes, can I assign a different material in each node?



Pt

Obrigado, Eu vou tentar em casa a noite e depois eu digo se deu certo.

Só uma pergunta, se eu tenho um modelo com varios Nodes, eu posso assinar um material diferente para cada Node?







Obrigado pela ajuda, e pelo português hehe

yes, ((Geometry)node.getChild(“helmet”)).setMaterial(mat);

Very nice, thank u very much.

atybmx said:
En
Thanks, I'm going to try at home at night and then I say if it worked.
Just a question, if my model has many nodes, can I assign a different material in each node?

Pt
Obrigado, Eu vou tentar em casa a noite e depois eu digo se deu certo.
Só uma pergunta, se eu tenho um modelo com varios Nodes, eu posso assinar um material diferente para cada Node?
...
Obrigado pela ajuda, e pelo português hehe


Yes, you can, but just geometries have materials. So if you assign a material to a node, that material will propagate down to its geometries.
See the javadoc : http://hub.jmonkeyengine.org/javadoc/com/jme3/scene/Node.html#setMaterial(com.jme3.material.Material).

Pt
Eu acho que vc entendeu ;P.

I did what you told and it worked.

Thank you very much.