What can i write into a .material file?

Well i kinda want to know what JMe3 accepts inside a .material file from a Ogre mesh (aka if i can directly add a normalmap there, how, and wich technique should i specify?)

jME3 will load diffuse map, material colors, and some alpha-blending related parameters from a .material file.

To load a normal map, you should specify a J3M file instead of a .material file inside the ogre3d model.

Well how do I create a J3M file for some random model i have?



For simple things i have no problem to create one, but i simply do not know where to start for more complex models:



For example I have a model that uses this .material file, what should i write into the J3M file to set a normalmap on the PLATINO material named PLATINONormal and on the GREYMATTE one named GREYMATTENormal ?



As far as i understand it J3M files are only able to create on material, so how do I use them for models with various materials?



material BLACKMATTE
{
   technique
   {
      pass
      {
         ambient 0.00784314 0.00784314 0.00784314 1
         diffuse 0.00784314 0.00784314 0.00784314 1
         specular 0.24 0.24 0.24 5 0
      }

   }

}



material PLATINO
{
   technique
   {
      pass
      {
         specular 1 1 1 72 0
      }

   }

}



material GREYMATTE
{
   technique
   {
      pass
      {
         ambient 0.478431 0.478431 0.478431 1
         diffuse 0.478431 0.478431 0.478431 1
         specular 0.2 0.2 0.2 35 0
      }

   }

}



material BLACKPLSTC
{
   technique
   {
      pass
      {
         ambient 0.00784314 0.00784314 0.00784314 1
         diffuse 0.00784314 0.00784314 0.00784314 1
         specular 1 1 1 53 0
      }

   }

}

Does really noone here knows how to use a j3m file for a model?

Its very easy and documentation is coming. Just look at the examples like the bumpmapping ones. You see theres a j3m file being loaded that references a j3md file in its header. Then the j3m file fills out the parameters of the j3md file. You can see the j3md files in the jMonkeyEngine.jar, just unfold it in jMP. Just look at the j3md files and try to understand.

Multiple materials requires multiple geometrys I think, so you will have to arrange it like that in blender already I guess.

Hm i finally come to an understanding why JMe handles this so, afte all it seems that it does this to reduce drawcalls, and the solution ot my problem is a textureatlas



http://www.gamasutra.com/view/feature/2530/practical_texture_atlases.php?print=1