Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect material naming #260

Open
alexkuz opened this issue Apr 13, 2020 · 0 comments
Open

Incorrect material naming #260

alexkuz opened this issue Apr 13, 2020 · 0 comments

Comments

@alexkuz
Copy link

alexkuz commented Apr 13, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant