I believe, the guys will reply today and we will agree whether this gets into BabylonJS or not. In both cases I have to rename the classes. Do not mark it as a solution yet. Wait for the final solution please. It could be ready in a day or two on my side.
This is just a prototype. Thank you!
EDIT: I have to travel abroad for three days so the delivery will be delayed.
However I am almost ready. Two lines in non camera mode and with dashing. Pay attention to the ribbonOptions
.
const points1 =
[
[
0, -2, 0,
2, -1, 0.5,
1.5, 0, 0,
1, 1, 0,
2, 2, 0
]
,
[
0, 0, 0,
0, 3, 0
]
]
const mesh = BABYLON.CreateGreasedLine("line", {
points: points1,
ribbonOptions: {
pointsMode: BABYLON.GreasedLineRibbonPointsMode.POINTS_MODE_POINTS,
direction: new BABYLON.Vector3(0, 0, 1),
width: 1,
},
}, {
cameraFacing: false,
useDash: true, dashCount: 8, dashRatio: 0.25,
})