Movement lines dashed Animation

animation

#1

Hello

Check https://jsfiddle.net/prisoner849/gfjnLakc/ and I want to make that line move like https://mattdesl.github.io/webgl-wireframes/app/ when you turn on animation. Is it possible to make.

Thanks


#2

Hi!
You can add a time uniform and use it in the fragment shader of the material:

https://jsfiddle.net/prisoner849/ofcdgtz8/

I’ve added comments to the code.


How can I animate a LineDashedMaterial
#3

Thanks a lot.


#4

You’re welcome :slight_smile: :beers:


#5

Hi,
One more question for this example:
https://jsfiddle.net/prisoner849/ofcdgtz8/
Is it possible change linewidth?

Thanks


#6

It needs the other approach:
https://threejs.org/examples/?q=line#webgl_lines_fat


#7

Is it possible to make line movement? Because I used it and only problem is how to make movement dashed line.