#Missing "name"

4 messages · Page 1 of 1 (latest)

gentle lance
#

When converting to gLTF and importing it in a 3D scene editor (Mundus), the application can't import my model due to it missing some attribute.

When I put my model through a checker, it does not detect a mistake somewhere: https://github.khronos.org/glTF-Validator/

In the code of the 3D scene editor, it crashe on it.name being null

dto.materials?.forEach {
    val attributeImageIndexMap = HashMap<Long, Int>()

    linkTextureToImage(dto, attributeImageIndexMap, it.pbrMetallicRoughness.baseColorTexture, PBRTextureAttribute.BaseColorTexture)
            linkTextureToImage(dto, attributeImageIndexMap, it.normalTexture, PBRTextureAttribute.NormalTexture)
            linkTextureToImage(dto, attributeImageIndexMap, it.emissiveTexture, PBRTextureAttribute.EmissiveTexture)
            linkTextureToImage(dto, attributeImageIndexMap, it.pbrMetallicRoughness.metallicRoughnessTexture, PBRTextureAttribute.MetallicRoughnessTexture)
            linkTextureToImage(dto, attributeImageIndexMap, it.occlusionTexture, PBRTextureAttribute.OcclusionTexture)

    materialImageMap[it.name] = attributeImageIndexMap
}

Can this be solved somehow in Blockbench which would make my model not miss some fields? Or is this an issue with the scene editor software I'm using?

untold hillBOT
#
Welcome to the help forum!

Please make sure to read #1021015331910713395 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

gentle lance
#

Model used