Hello guys
I am currently experiencing some issues with the glb exporter (GLTF2Export.GLBAsync). When I export my scene to a .glb file then the UV Scaling of only my AO-Textures is reset to (1,1). I read about a similar problem here, but I could not find a real solution in this conversation. Sadly, I also can not provide a PG at the moment nor upload a scene example because the glb file is to big. Sry I can fully understand if this is to little information to go by…
This is the texture before exporting
This is the texture after exporting…
Note that the base color texture file and the normal texture file perfectly keep their UV scaling on export. Only the AO Texture file gets its scaling reset.
I am currently exporting the scene like this (I have to filter out quite a lot of stuff, that’s why the recursion is needed)
export(): void {
const options = {
shouldExportNode: (node: TransformNode): boolean => {
return nameInHierarchy(node);
},
};
const nameInHierarchy = (node: TransformNode): boolean => {
if (node.name === 'apartment' || node.name === 'foundation' || node.name === 'diffuse-light') {
return true;
}
if (node.parent) {
return nameInHierarchy(node.parent as TransformNode);
}
return false;
};
void GLTF2Export.GLBAsync(this.scene, 'Wohneinheit_Export', options).then(glb => {
glb.downloadFiles();
});
this.scene.transformNodes.forEach(my_node => nameInHierarchy(my_node));
}
Exporting via the inspector yields the same results btw.
Edit: When exporting the scene as a .babylon file via the inspector and then displaying it in the sandbox tool, the UV Ratios are all perfectly fine, as they should be. Here I sadly stumble into the Problem of the actual texture files not loading as described here or here (on Github I read that this issue should be fixed years ago?)