10

Since I've been working on a three.js open world game, there I need to apply the rain effect. I followed tutorial & source code around some github repos. Don't know what I am missing?

Currently I am using cdn for three.js

Three.min.js

Three.module.js

and all other flavours, but kind of seem there is something missing.

Christopher Nolan
  • 930
  • 1
  • 11
  • 15

1 Answers1

19

I figured it out that Three.js r125 removed support for Geometry. We have to now use custom BufferGeometry now onwards. https://threejs.org/manual/#en/custom-buffergeometry

Tip: If anyone still want to use Geometry then use r122 in version declaration while using cdn.

Christopher Nolan
  • 930
  • 1
  • 11
  • 15
  • I meet the similar problem. I happened to replace to `THREE.TextGeometry` and meet module missing error that tells me add `"three/examples/js/geometries/TextGeometry.js"` to js file. All seem work after doing that. – Youth overturn May 27 '22 at 16:29
  • 1
    Changing the three js version to 0.124.0 in the package.json works because THREE.Geometry was removed in version 125. I am using npm by the way. [link to source](https://github.com/tengbao/vanta/issues/101). – DevLaka Jun 01 '22 at 07:43