I created a line as explained in the docs: http://threejs.org/docs/#Reference/Objects/Line.
But when one of the line points is outside of the camera's view, the line disappears.
I also tried to use https://github.com/spite/THREE.MeshLine, but I still have the same problem.
How can I fix it?
If you update the vertices of your line, you must also update the bounding sphere of your line for frustum culling to work correctly.
line.geometry.computeBoundingSphere();
Alternatively, you can prevent frustum culling of your line by setting
line.frustumCulled = false;
three.js r.75
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