Open ferrolho opened 1 year ago
Hmm, apparently this is not going to be fixed for GL — see https://bugs.chromium.org/p/chromium/issues/detail?id=675308.
But there is an example with another way of achieving line thickness: https://threejs.org/examples/#webgl_lines_fat
I've included and exported Line2
, LineMaterial
, and LineGeometry
in https://github.com/ferrolho/meshcat/commit/8fdb46b5ec4cd84d266ebe29b277a1fe7e8ad32c, but I am not sure if that is the proper way to do it. And to be honest, I have no idea what to do next on the MeshCat.jl end... For example, I suppose we need to define a Julia struct for LineGeometry
in src/geometry.jl
, right?
While sanitising the list of open issues, I noticed that setting a custom line width is no longer working.
Here is a simple snippet for displaying a line through a set of random points:
which results in the following:
Notice how the width of the rendered line is
1
despite settinglinewidth=8
.