RicherSims
Resource contributor
- Messages
- 574
- Country

In FSX/P3D/XP11 I use a lot of shared textures across multiple sceneries (for example one texture sheet with painted taxiway numbers/markings) which I place in one "common" folder.
I then reference these textures from outside this common folder as the sim usually loads the textures at run time. Therefore I can release airports without duplicating these resources.
In XP11 you can use library.txt files and in FSX/P3D you can simply include them in a scenery package or use texture fallbacks in CFGs via SODE.
I have had success in creating a package that contains only a MaterialLib in MSFS, and I can successfully reference these textures for aprons/lines.
But how can I tell a GLTF scenery object to look elsewhere for a texture? It does not seem that the objects are aware of any materials outside of its immediate texture folder.
I have tried editing the GLTF with ModelConverterX and placing a relative path before the texture name (example: "..\..\..\richersimulations-rs-common\materiallibs\rs-common-materials\textures\".
This works within MCX, but on export the path is stripped out. I found the option in MCX to save paths with texture names but this does not seem to make any difference within MSFS.
I have also tried editing the GLTF manually with a text editor and placing this relative path in the Textures and/or Images section, but either way, the MSFS SDK Package builder throws a "tinygltf: Root element is not a JSON object" error when attempting to build the package. According to the MCX export, the path goes in the "uri" under the "Images" section of the GLTF, but again MSFS seems to ignore this.
Is this possible at all, or will I have to duplicate my textures across multiple packages?
Any ideas are welcome.
I then reference these textures from outside this common folder as the sim usually loads the textures at run time. Therefore I can release airports without duplicating these resources.
In XP11 you can use library.txt files and in FSX/P3D you can simply include them in a scenery package or use texture fallbacks in CFGs via SODE.
I have had success in creating a package that contains only a MaterialLib in MSFS, and I can successfully reference these textures for aprons/lines.
But how can I tell a GLTF scenery object to look elsewhere for a texture? It does not seem that the objects are aware of any materials outside of its immediate texture folder.
I have tried editing the GLTF with ModelConverterX and placing a relative path before the texture name (example: "..\..\..\richersimulations-rs-common\materiallibs\rs-common-materials\textures\".
Is this possible at all, or will I have to duplicate my textures across multiple packages?
Any ideas are welcome.
Last edited:






