Rhino 3dm Loader version issue

Hey everyone.

I’m using Rhino3dmLoader to show some files in threejs in my react app like this:

const rhino = useLoader(
    Rhino3dmLoader,
    threeProps.digitalTwinUrl,
    async (loader) => {
      loader.setLibraryPath('https://cdn.jsdelivr.net/npm/rhino3dm@8.0.0/');
    }
  );

If I use version 8.0.0 it works fine but if I use 8.9.0 it shows this message:

Uncaught Error: Could not load /geometries/office-portfolio/Hamilton_House_R7.3dm: undefined
at chunk-KHOZZMTY.js?v=1e037e70:16791:38
at three_examples_jsm_loaders_3DMLoader.js?v=1e037e70:69:23

here is the file is you want to test.

Hamilton_House_R7.3dm (562.1 KB)

I just tried every version 8 of rhino3dm.js (8.0.1, 8.4.0, 8.6.1, and 8.9.0) against the 3dmLoader currently in threejs and your file loaded without any errors.

Oh I got it! I was using an old version of three.js and rhino3dmloader is included in that!

Thanks for help again!

1 Like