Exporting GLTF with material labels #597
-
DescriptionHey i wrote this example code to export a gltf file, but my material labels are lost after the export. Expected BehaviorGLTF-File with material "name":"Testmaterial_blue" Actual BehaviorGLTF-File with material "name":"mat_0" Sample Code or DRAW Tcl Script`#include <BRepPrimAPI_MakeBox.hxx> int main() {
} Operating SystemWindows CompilerGCC Bitness64-bit OCCT Versionlatest Additional FilesNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
You need to use |
Beta Was this translation helpful? Give feedback.
-
Ok thank you. Do you have an example how to use it? |
Beta Was this translation helpful? Give feedback.
-
XCAFDoc_VisMaterialTool is a main tool to work with material and textures for XCAF.
|
Beta Was this translation helpful? Give feedback.
XCAFDoc_VisMaterialTool is a main tool to work with material and textures for XCAF.
To work with that tool you need to have similar sample: