KhronosGroup / KhronosGroup/COLLADA2GLTF

Incorrect material naming

Open
#260 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
573
Forks
154
PR merge metrics
No merged PRs in 30d

Description

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

```xml





ID3




ID4

















```

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

```json
"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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the COLLADA library_materials material name and instance_effect are converted into the glTF materials array. Use the supplied .dae fragment and inspect the generated JSON; done means the output material name is "hair_material.5" rather than "ID2" while the material and texture conversion still succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.