Merging lines makes them disappear

Hi guys,
I am myself a beginner, could you explain to me why the line mesh disappears when I merge it.

What I am trying to achieve is a combined mesh out of multiple lines meshes with different colors.

Thanks already!

AFAIK you can’t merge lines because you don’t really need to: you can draw any number of lines with a single BABYLON.MeshBuilder.CreateLineSystem call.

Thank you for your answer! I got it to work using the BABYLON.MeshBuilder.CreateLineSystem. :+1:However, IMO the interface is not really clean because then I need to treat a LineMesh differently.

1 Like