Sveiki, eksportuoju is maxo ogre xml formatu, gaunu du failus, pvz eksportuoju eilini melyna kuba: Kubas.material ir Kubas.mesh.xml, taciau kai juos isikeliu i jMonkey (pavyzdys kaip turi veikti:
http://www.youtube.com/watch?v=nL7woH40i5c) ir paleidziu man neatvaizduoja material, atvaizduoja pati kuba, taciau be material. Kodel neranda Kubas.material failo?
Kubas.material failo kodas:
material 01-Default
{
technique
{
pass
{
ambient 0.0392157 0 1 1
diffuse 0.0392157 0 1 1
specular 0 0 0 1 10
}
}
}
Kubas.mesh.xml failo kodas:
<mesh>
<submeshes>
<submesh material="01-Default" usesharedvertices="false" use32bitindexes="false" operationtype="triangle_list">
<faces count="12">
<face v1="0" v2="1" v3="2" />
<face v1="3" v2="4" v3="5" />
<face v1="6" v2="7" v3="8" />
<face v1="9" v2="10" v3="11" />
<face v1="12" v2="13" v3="14" />
<face v1="15" v2="16" v3="17" />
<face v1="18" v2="19" v3="20" />
<face v1="21" v2="22" v3="23" />
<face v1="24" v2="25" v3="26" />
<face v1="27" v2="28" v3="29" />
<face v1="30" v2="31" v3="32" />
<face v1="33" v2="34" v3="35" />
</faces>
<geometry vertexcount="36">
<vertexbuffer positions="true" normals="true" texture_coord_dimensions_0="2" texture_coords="1">
<vertex>
<position x="-39.3577" y="5.30693e-007" z="22.1408" />
<normal x="0" y="-1" z="0" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="2.14084" />
<normal x="0" y="-1" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="2.14084" />
<normal x="0" y="-1" z="0" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="2.14084" />
<normal x="0" y="-1" z="0" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="22.1408" />
<normal x="0" y="-1" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="22.1408" />
<normal x="0" y="-1" z="0" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="22.1408" />
<normal x="0" y="1" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="22.1408" />
<normal x="0" y="1" z="0" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="2.14084" />
<normal x="0" y="1" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="2.14084" />
<normal x="0" y="1" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="2.14084" />
<normal x="0" y="1" z="0" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="22.1408" />
<normal x="0" y="1" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="22.1408" />
<normal x="0" y="0" z="1" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="22.1408" />
<normal x="1" y="0" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="2.14084" />
<normal x="1" y="0" z="0" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="2.14084" />
<normal x="1" y="0" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="2.14084" />
<normal x="1" y="0" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="22.1408" />
<normal x="1" y="0" z="0" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="22.1408" />
<normal x="1" y="0" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="20" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-19.3576" y="5.30693e-007" z="2.14084" />
<normal x="0" y="0" z="-1" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="2.14084" />
<normal x="-1" y="0" z="0" />
<texcoord u="0" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="22.1408" />
<normal x="-1" y="0" z="0" />
<texcoord u="1" v="1" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="22.1408" />
<normal x="-1" y="0" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="22.1408" />
<normal x="-1" y="0" z="0" />
<texcoord u="1" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="20" z="2.14084" />
<normal x="-1" y="0" z="0" />
<texcoord u="0" v="0" />
</vertex>
<vertex>
<position x="-39.3577" y="5.30693e-007" z="2.14084" />
<normal x="-1" y="0" z="0" />
<texcoord u="0" v="1" />
</vertex>
</vertexbuffer>
</geometry>
</submesh>
</submeshes>
<submeshnames>
<submeshname name="submesh0" index="0" />
</submeshnames>
</mesh>