Creating Dynamic Lines with ThreeJS
I came across a need for the ability to draw dynamically in Three.js. A small hack is to create a line and fill the vertices with the starting point. Note the line.geometry.dynamic flag which is set to true.
Now, when you want to add more vertices to the line, it’s as simple as three steps:
Check out Collavrate for more info.
Previous Jan 1, 2015
« Give it five minutes.
« Give it five minutes.
Mar 20, 2015 Next
When is Cheryl's Birthday? »
When is Cheryl's Birthday? »