Open nvaytet opened 1 year ago
I also tried with LineGeometry
, which shows nothing with LineBasicMaterial
, and shows something strange with LineMaterial
:
x = [0, 10, 20, 30]
y = [0, 10, 0, 10]
a = array=np.array(
[x, y, np.zeros_like(x)],
dtype='float32').T
geometry = p3.LineGeometry(positions=a)
material = p3.LineMaterial(color=color, linewidth=10)
line = p3.Line(geometry=geometry, material=material)
line
LineMaterial
is an "extra" material, but it seems it only supports LineSegments2
(also extra). I see that a Line2
object was also started, but only supports Geometry
for the geometry attribute. Please consult the ThickLines
example as much as possible: it also outlines the shader that is used, and some of the options available.
I am trying to created a dashed line, as in this example.
Using
LineBasicMaterial
produces a solid line as expected:However, when using either
LineMaterial
orLineDashedMaterial
, no line is visible:Am I doing something wrong, or is it a bug? Thanks!