We have found an issue with the ifcConverter where material colors are missing after converting a .ifc file to a .glb .xml pair. When the user attempts to convert the .ifc file, the material colors are lost in the process.
This issue is reproducible, and has been observed consistently.
The test file used for this issue cannot be share for privacy policies but has the following header information:
ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('ViewDefinition[ReferenceView]'),'2;1');
FILE_NAME('\\?\C:\Users\[username]\Desktop\[filename].ifc','[date]',(''),(''),'3DEXPERIENCE Platform3DEXPERIENCE R2022x HotFix 6','3DEXPERIENCE Platform IFC4','');
FILE_SCHEMA(('IFC4'));
ENDSEC;
#4=IFCAPPLICATION(#1,'0.1','CATIA Data Exchange','CATIA') ;
The file contains 3D geometry and metadata related to a building project. After converting the file to .glb .xml pair using the ifcConverter tool, the material colors associated with the objects in the file are lost.

These are the CLI options used for:
.glb
let args = ['-j', '9', inputPath, outputPath, '--use-element-guids', '--use-material-names', '--center-model-geometry', '--y-up', '-y'];
.xml
let args = [inputPath, outputPath, '--use-element-guids', '--use-material-names'];
In another note, I'm also trying to apply the --default-material-file arg without success, is the following an accepted file format?
{
"global": {
"shader": "Standard",
"color": [0.5, 0.5, 0.5],
"smoothness": 0.5,
"metallic": 0.0
},
"objects": {
"[Type]=IfcDoor": {
"shader": "Standard",
"color": [0.6, 0.4, 0.2],
"smoothness": 0.5,
"metallic": 0.0
}
}
}
Thank you for the assistance
Edit: I changed the image due to privacy concerns.
We have found an issue with the ifcConverter where material colors are missing after converting a .ifc file to a .glb .xml pair. When the user attempts to convert the .ifc file, the material colors are lost in the process.
This issue is reproducible, and has been observed consistently.
The test file used for this issue cannot be share for privacy policies but has the following header information:
The file contains 3D geometry and metadata related to a building project. After converting the file to .glb .xml pair using the ifcConverter tool, the material colors associated with the objects in the file are lost.
These are the CLI options used for:
.glb
.xml
In another note, I'm also trying to apply the
--default-material-file argwithout success, is the following an accepted file format?Thank you for the assistance
Edit: I changed the image due to privacy concerns.