Use of Ogre modes (...mesh.xml and .material). Material not found

Hello!



Recently I’ve posted another Topic regarding this problem.

I’ve downloaded a Plugin for Cinema4D that produces this code for the mesh (PinkCouch.mesh.xml):



[xml]<mesh>

<submeshes>

<submesh material="Mat" usesharedvertices="false" use32bitindexes="false" operationtype="triangle_list">

<faces count="8448">

<face v1="0" v2="1" v3="2" />

<face v1="3" v2="4" v3="2" />

<face v1="5" v2="6" v3="2" />

<face v1="7" v2="8" v3="2" />

.

.

.

.

</mesh>

[/xml]



…and this for the material (PinkCouch.material):

// Materials for PinkCouch
material Mat
{
technique
{
pass
{
diffuse 1.00 0.00 1.00 1.00
}
}
}



But everytime I want to load the model I get in the log:

11.08.2011 20:04:38 com.jme3.scene.plugins.ogre.MeshLoader applyMaterial
WARNUNG: Material Mat not found. Applying default material


Has anyone an idea!?

Many Thanks!


regards

-René

i’m not sure on a solution sorry, but does it actually say

WARNUNG: Material Mat not found.
if so thats a typo.

Hello!



I finally got it.

It’s the comment “// Materials for PinkCouch” in the first line of the .material - file.

Is this an error of the parser or is it not allowed to have an comment in the .material-file?



Greetins

Hello!



I finally got it.

It’s the comment “// Materials for PinkCouch” in the first line of the .material - file.

Is this an error of the parser or is it not allowed to have an comment in the .material-file?



Greetings