I use multithreading to load gltf models, when loaded, all model materials are messed up.
After I debug GltfLoader, I found out that there may be threading issue in the GltfLoader. The variable "defaultMaterialAdapters" cannot be "static". This variable will be shared when all threads load materials from the model.
A simple way to resolve this issue is to remove the "static".
Hope this helps.
I use jme version: 3.5.2-stable


I use this way to resolve my problem.


The wrong materials before

The correct materials after
I use multithreading to load gltf models, when loaded, all model materials are messed up.
After I debug GltfLoader, I found out that there may be threading issue in the GltfLoader. The variable "defaultMaterialAdapters" cannot be "static". This variable will be shared when all threads load materials from the model.
A simple way to resolve this issue is to remove the "static".

Hope this helps.
I use jme version: 3.5.2-stable
I use this way to resolve my problem.
The wrong materials before
The correct materials after