spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.16k stars 380 forks source link

Error "three.meshline.js:95 ERROR: The BufferArray of points is not instancied correctly." when using BufferGeometry #124

Closed Bassadin closed 3 years ago

Bassadin commented 3 years ago

I'm trying to use the setPoints() method with a BufferGeometry to increase performance. I can draw the LineSegments class from THREE just fine when using my BufferGeometry but when I try to use the same object as points for MeshLine, I'm getting the following error:

three.meshline.js:95 ERROR: The BufferArray of points is not instancied correctly. (three.meshline.js:95)

You can see how I'm trying to use it in https://github.com/VADS/DaVerMePro-MIB5-Three.js/blob/0f024a4a2dae0003b935a5b345389159ea7a4e29/src/Turtles/Turtle3D.ts

If I can provide any more info, just reply, please :)

P.S.: Thank you for providing this awesome extension for Three.js, I'm looking forward to using it since I've already tried it without a BufferGeometry!

Bassadin commented 3 years ago

Never mind, I just noticed that this is the same issue as is described in https://github.com/spite/THREE.MeshLine/issues/120