I have been looking for an example of how to draw a line with the mouse on a 3D surface within a scene in threejs to achieve the following image but not been able to find an example this specific and was hoping someone could provide an example of how to do this by using the mouse and clicking down to start, dragging, then using mouse up to get the end position. Then using these positions in the 3D space to draw the line.
2.1m questions
2.1m answers
60 comments
57.0k users