Texture stopped loading without any change in code


Here is my playgroud code which is not even loading my object -
Please note - mtl file and texture.jpg is kept beside obj file

But the actual issue is my texture has automatically stopped loading, it was working fine since many days and suddenly I checked my page today and it looks like this -

Page link - Babylon.js OBJ Loader Example

.mtl file code:

# Blender 4.0.0 MTL File: 'sample.blend'
# www.blender.org

newmtl Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ni 1.450000
d 1.000000
illum 2

map_Kd texture.jpg

Hello :slight_smile:

About the model not even loading in Playground :

It’s a problem with CORS policy. The Playground needs the CORS Policy of your server to authorise download from another domain (playground.babylonjs.com)

About the model appearing Wireframe :
It’s weird but indeed in your loaded scene, the material has wireframe=true enabled.
Try to run scene.materials[0].wireframe = false; (or scene.materials[1].wireframe = false; the order is not guaranted) in the debug console of your web page and it solves the issue… You might be enabling wireframe somewhere