index-bb759d07.esm.js:1624 Uncaught Error: Could not load potsdamer-platz/potsdamer_platz_1k.hdr: Failed to fetch) at Object.onError (index-bb759d07.esm.js:1624:36) at three.module.js:41335:39
hi, update your package versions and update your nodemodules:
[ IMPORTANT ] Recent Updates to Environment Component
used a component to create the Environment light for the scene, the . This “apartment” preset comes from a CDN server and after recording this course, these servers needed to be changed within the library.
If you get any error loading the environment images, please update the React Three Fiber to React Three Drei library to the latest available version.
If you have any questions, please send me a message
lol, should work until githack goes out of business, I guess. why not just host via pmndrs.github.io? actually that’s the question for @CodyJasonBennett
you can’t url fetch from node modules. importing would work but then you need to have a loader in place that knows what “glb” is, or url-loader as a fallback. with the base64 js we can avoid that and with clever compression it’s feasible. the hdri’s for instance are only a fraction of the import cost of the originals.
import.meta will solve this, but it’s going to be a while until it’s safely available everywhere. but then we can remove base64.
essentially we’re doing it now, the original drei presets are on github. but i think github is also bandwidth capped, a website will never run into it but these assets generated so much data this is the second time we were kicked. we also looked into cloudflare, might also be good but costs if we want our domain cdn.pmnd.rs.
so what you’re sayin is, if someone makes a component loading a file from threejs․org and that component becomes popular, this will shut threejs․org down nice ddos vector lol