The issue:
when I download any code that works in the playground (via the download button in the playground), unzip it and run the html, the textures don’t show up, but the physics and everything else works just fine. The image files are correctly downloaded and in the correct directory. I tried Chrome, Firefox, and Edge, but all of them showed the same thing. The console log shows no errors, except for the WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER.
, which to my knowledge is safe to ignore because there is a fallback for it. What is causing the textures to not work?
Here is an example:
everything looks fine in the playground (https://playground.babylonjs.com/#20OAV9#15):
yet when I download it and run it from my computer,
Things I have tried to solve it:
-
I downloaded all the babylon js related script files and edited the html to link to those local files instead, but got the same results.
-
I googled “babylon.js textures not working” and other slight variations of that, but the results as far as I could see were about only some specific textures not working, or the textures not working in a certain platform, or offline. In my case, the textures don’t seem to be working no matter what.
-
I became the very definition of insanity by running the same code many times hoping that something would change, but alas.
I think there must be something obvious I’m not getting since I can’t find any other posts with the same issue. Apologies if this is one of those infuriating questons that gets asked every month by newbies. I am a newbie :')