I am making my own small 3d editor where you can make boxes, spheres and lines and can load some stuff in from a database.
I wanted to be able to make thin and thick lines, for this I decided to use Line2 after some research. But now I am running into the problem where when I export my scene to glb the line becomes a weird plane.
const exporter = new GLTFExporter();
exporter.parse(scene, function(gltf) {
const output = JSON.stringify(gltf, null, 2);
const blob = new Blob([output], {type: 'text/plain'})
downloadElement.href = URL.createObjectURL(blob);
downloadElement.download = fileName.value + '.glb';
downloadElement.click();
}, {binary: true});
Could it have to do with a missing export setting?
My custom editor :
Three.js editor :
Let me know if I need to provide more code!