# Line2 becomes a weird plane when exporting scene to glb

**URL:** <https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223>\
**Category:** Questions\
**Tags:** glb, exporter, scene, geometry\
**Created:** [November 16, 2023, 11:19am UTC](https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223 "2023-11-16T11:19:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaymeFM](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jaymefm/32/42009_2.png) [@JaymeFM](https://discourse.threejs.org/u/JaymeFM)\
**Post date:** [November 16, 2023, 11:19am UTC](https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223/1 "2023-11-16T11:19:08Z")

</div>

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.

```javascript
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 :

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/d/6d819bdbef83e6813fbcc9860d0c60eb9bb44045.png)

Three.js editor :

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/7/e/7e43064a030d5ce78b599d312534f4f4347e27f0.png)

Let me know if I need to provide more code!

---

<div class="post-metadata">

**Author:** ![JaymeFM](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jaymefm/32/42009_2.png) [@JaymeFM](https://discourse.threejs.org/u/JaymeFM)\
**Post date:** [November 16, 2023, 2:36pm UTC](https://discourse.threejs.org/t/line2-becomes-a-weird-plane-when-exporting-scene-to-glb/58223/2 "2023-11-16T14:36:59Z")

</div>

I found the problem, for future people having the same problem:

It sadly isn’t possible to do with Line2, it uses shaders which can’t be exported out of threejs.

I will reply another time to my thread if I find a way of doing this without Line2.
