GLTF Save support material names


When I export gltf I’d like to preserve material names but they seem to disappear:
image.png (5.2 KB)

See the spec:
image.png (1.2 KB)

Could material name be added, or is there an option I am missing?

See following unit test:

    public void Gltf_supports_material_names()
        Scene scene = new Scene();
        scene.RootNode.CreateChildNode("SomeCube", new Box(10,10,10).ToMesh(), new PbrMaterial(Color.Red)
            Name = "RedMaterial"

        string gltfContent;
        using (var ms = new MemoryStream())
            scene.Save(ms, new GltfSaveOptions(FileFormat.GLTF2)
                PrettyPrint = true,
                SaveExtras = true,

            ms.Seek(0, SeekOrigin.Begin);

            using (var sr = new StreamReader(ms))
                gltfContent = sr.ReadToEnd();


An issue as THREEDNET-903 has been logged in our issue tracking system for further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as THREEDNET-903) have been fixed in Aspose.3D for .NET 21.7.

This problem seems to continue to exist. When I export the gltf file, the filename of the texture of each material is lost. The complete filename name is given when exporting, but it is null when I import it again.


Can you please share which API version are you using? Can you please share some code to reproduce this?