COLLADA2GLTF icon indicating copy to clipboard operation
COLLADA2GLTF copied to clipboard

Incorrect material naming

Open alexkuz opened this issue 4 years ago • 0 comments

I have a .dae file with the material named hair_material.5, here's a fragment:

    <library_effects>
        <effect id="ID2">
            <profile_COMMON>
                <newparam sid="ID4">
                    <surface type="2D">
                        <init_from>ID3</init_from>
                    </surface>
                </newparam>
                <newparam sid="ID5">
                    <sampler2D>
                        <source>ID4</source>
                    </sampler2D>
                </newparam>
                <technique sid="COMMON">
                    <blinn>
                        <diffuse>
                            <texture texture="ID5" texcoord="UVSET0"/>
                        </diffuse>
                    </blinn>
                </technique>
            </profile_COMMON>
        </effect>
    </library_effects>
    <library_materials>
        <material id="ID1" name="hair_material.5">
            <instance_effect url="#ID2"/>
        </material>
    </library_materials>

For some reason, after conversion the material is called ID2:

    "materials": [
        {
            "pbrMetallicRoughness": {
                "baseColorTexture": {
                    "index": 0
                },
                "metallicFactor": 0.0
            },
            "name": "ID2"
        }
    ],

I'm not very familiar with either of formats, but it looks like a bug to me.

alexkuz avatar Apr 13 '20 12:04 alexkuz