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';

3 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.

1 Like

thanks guys, I’ll look into these options

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

Hi, when i tried incorporating it I was getting too many error codes, and even when fixing them I would be stuck in a loop of error codes on my console log.

I was wondering whether I should convert my whole project into an es6 version, and how I should go about it. For example, should i start from scratch and find es6 module versions of every module that I have, or should I edit each one by one? I would appreciate any suggestions for how one would go about this.