THREE.MeshLine
THREE.MeshLine copied to clipboard
How to control the line changes when the camera changes
Now, i draw a line with MeshLine, and when i pull the camera , the line becomes larger,but i want the line tapering, what should i do? thanks !
I'm sorry, I'm not really following. By line tapering you mean attenuated with distance, like it's thinner the farther it is?
Yes,as you understand the same.Can you help me?
help him please! if he can not do it his boss will fire him
Set the material's sizeAttenuation value to true
@spite thanks!
@spite now,the lines on the object when i move the camera !
http://p.ckiosk.cn/map/n/sources/map20170216.png
I'm sorry, what's the issue here?
Yes,the line is float when i rotated camera!
I think I have the same problem. When camera moves, the line nodes is not longer connected to the positions they suppose to follow, if I for example have a mesh at each point that the line should connect to.
Do you have an example to show the problem?
I solved my problem, and it was not cause of your code. I displace the positions (curr,prev,next) in the vertex-shader, and forgot to work in model-space. Once I applied the projection and view matrix after my manipulations it worked fine.