Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

THREE.Geometry is not a constructor

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.

like image 694
Christopher Nolan Avatar asked Feb 20 '26 09:02

Christopher Nolan


1 Answers

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.

like image 115
Christopher Nolan Avatar answered Feb 22 '26 22:02

Christopher Nolan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!