Issue with THREE.RGBELoader();

Hi i got many issue with THREE.RGBEloader()
THREE.RGBELoader() is not a constructor … … …
and I dont even find him anymore in the doc/exem of threejs

I have no issue on previous version but on the last one I have hard time to made it work (and with no success)

Did he get replace ? if yes witch one I have to use to load an equirectangular HDR

Thanks in Advance !

https://threejs.org/examples/?q=glt#webgl_loader_gltf

import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

2 Likes

thanks you @Chaser_Code

1 Like

Hi, my current project doesn’t use ES6 modules and uses Classic Javascript/global scripts. I tried this but it wont work ofcourse, is there a non-es6 version of the RGBELoader.js by any chance? or if not how can i convert it?

Not anymore. You’ll need to use an older version of Three.js where the examples directory still existed, or copy and paste the RGBELoader class and manually integrate it into your code.

Out of curiosity, you could try the demoduler at https://boytchev.github.io/demoduler/, although this is old program and is not supported any more.

thanks guys, I’ll look into these options

Download old version three.js, maybe 158
<script src="./js/loaders/GLTFLoader.js">