mmonem / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Submesh name is like a material name #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all!

In blender2Ogre-0.5.7-preview1.rar I get the name of a submesh as a name of a 
material.

Example (Cube.mesh.xml file):

    <submeshes>
        <submesh usesharedvertices="true" material="bb01" use32bitindexes="False">
            <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="0" v3="2"/>
                <face v1="4" v2="19" v3="5"/>
                <face v1="20" v2="21" v3="22"/>
                <face v1="23" v2="24" v3="25"/>
                <face v1="26" v2="27" v3="28"/>
                <face v1="29" v2="30" v3="31"/>
            </faces>
        </submesh>
    </submeshes>
    <submeshnames>
        <submesh index="0" name="bb01">
        </submesh>

Original issue reported on code.google.com by paulgera...@gmail.com on 22 Jun 2012 at 4:39

GoogleCodeExporter commented 8 years ago
"bb01" is a material name. But it's called as submesh name.

Original comment by paulgera...@gmail.com on 22 Jun 2012 at 4:40

GoogleCodeExporter commented 8 years ago
The problem is in this line: 
<submesh index="0" name="bb01">

Original comment by paulgera...@gmail.com on 22 Jun 2012 at 5:01

GoogleCodeExporter commented 8 years ago
Cube.mesh.xml: http://pastebin.com/P4GcxT05

Original comment by paulgera...@gmail.com on 22 Jun 2012 at 5:02

GoogleCodeExporter commented 8 years ago
Ahhh... possibly it should be like this. Because one object can have many 
materials.

Possibly i'm wrong.

Original comment by paulgera...@gmail.com on 23 Jun 2012 at 7:16

GoogleCodeExporter commented 8 years ago

Original comment by goatman.py@gmail.com on 29 Jun 2012 at 2:55