Hello everbody, I love babylon.js and the community behind. Thanks in advance for any help about my problem.
Firstly I use babylon.js to create a kind of a 3d model editor that allows users to upload models, import them to babylon scene by using SceneLoader.ImportMesh and exports the scene by using GLTF2Export.GLBAsync.
The gltf model I use can be downloaded from here Industrial Box Steel Containers - Download Free 3D model by 3Danielart (@3Danielart) [d8c9437] - Sketchfab.
When I import this model with SceneLoader.ImportMesh, jpeg texture files are converted to png and duplicating. This causes model sizes in my application are increased dramatically by default.
In some models, duplication does not happen but still jpeg files are being converted to png files and this also causes model sizes to be increased.
Model before importing to babylon
Model after importing to babylon
box_steel_2 (Base Color).png (893kb)
box_steel_2 (Emissive).png (893kb)
box_steel_3 (Base Color).png (1,62mb)
box_steel_3 (Emissive).png (1,62mb)
jonathan-provencal-sol (Base Color).png (1,64mb)
jonathan-provencal-sol (Emissive).png (1,64mb)
I wonder if there is any workaround to import this model and leaving its textures untouched. Is there any way to prevent this png conversion?
Have a nice day!