I'm looking for a most efficient way to load large polygonal meshes (up to 1M triangles) to Three.js. I'm considering either using a THREE.BufferGeometry
object or loading with THREE.BinaryLoader
. My questions are:
THREE.BufferGeometry
object underneath? Or does it create something similarly efficient? Some additional info:
THREE.BufferGeometry
. It looks like I need to write my own. But I can prepare the data on the server side to be aligned with THREE.BufferGeometry
structure.Take a look at glTF format and glTFLoader for Three.js. It uses BufferGeometry. Performance is much better; however, it has its own animations implemented (doesn't use THREE.Animation) and I've ran into a few Three.js related problems like cloning the model won't work (at least out of the box)
glTF: https://github.com/KhronosGroup/glTF
glTFLoader: https://github.com/mrdoob/three.js/blob/54a1e789c3a84557d6b05782f5cbd9f1064f5e4f/examples/js/loaders/GLTFLoader.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With