Thanks so far. I managed to include vertexColors etc., so that my lines are now all BLUE (see line 206 of the sourcecode in my link on the previous post with …v1.8.html instead of v1.7… at the end - sorry I am making this so complicated, but my post got flagged/blocked twice because of posting links…). Next I tried to change line color on the fly, so I made a quick&dirty setup by adding lineNumber in the controls, and by changing this, I can see that the colors array changes (see line 168 of the sourcecode and the lines before / quick explanation: there are 1394 lines with 5 vertices each). Then I tried different ways of updating the canvas as explained in threejs-docs: #manual/en/introduction/How-to-update-things under “BufferGeometry” but I cant get it to work… Any hint?
deeno
8
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Buffer Geometry not showing on screen | 14 | 2627 | September 10, 2019 | |
| Three.js set a break when using Line2 and LineMaterial | 4 | 255 | July 16, 2024 | |
| After dynamically updating the vertices of lineGeometry of Line2, line segment colors are not displayed | 1 | 84 | August 12, 2024 | |
| CatmullRomCurve3 question regarding having different color lines between each point | 9 | 270 | October 31, 2024 | |
| Performant way to render many disconnected lines with different numbers of verticies | 4 | 2481 | June 24, 2020 |