Closed tkt028 closed 5 years ago
As the points buffer of MeshLine can not be changed dynamically, I used to alloc a static array for it like you do, but the difference is that I update the whole array every frame and set the [11, 99] to be the same point as 10, to avoid using setDrawRange API.
Thank @jimtang for the hint. I close this issue.
This issue saved me - thanks for the advice, @jimtang !
I have a line object defined by a list of vertices (for example: 100 vertices). I writing a program to dynamically display the line from the vertex index 0 to the index N where N increases overtime. I used below code to render this effect:
The partial display of the line works (it doesn't show the whole line), but not the right number of vertices defined by the index N provided in runtime.
QUESTION: what is the right way to do this with THREE.MeshLine? Thank you very much!