Hello.Im trying to implement drawing line smooth animation.How do I implement in order to achieve this?
Specifically with fat lines, I would write the data of the curve into DataTexture and process it in vertex shader, moving points in accordance to the data.
Of course, you can do it with javascript, no shader modifications involved, if you’ve got just one object of fat lines in the scene.
you can play with line gap and offset to create that effect you want, im guessing where it looks like the line is drawn from start to finish.
yes, it’s exactly that. drei/Line has dashed dashScale gapSize
you can also use meshline Confetti - CodeSandbox
the effect where it appears the line is drawn from scratch is just using dash props
Ah! If line caps don’t matter, then the using of dashed line is the way ![]()
The example looks like they stretch a capsule along a curve.
I can animate it by using tubeGeometry. demo. Is there any way to fill color inside the tube?
I’m still thinking that the stretching of a capsule along a curve is the option ![]()
Can I get the source code for this?
Yeah, sure. Here you are: https://codepen.io/prisoner849/full/bGQNEwm