<p>Blender appears to have a .X importer.  It's a plugin that ships with Blender, but is disabled by default, so you have to enable it in User Preferences.  See: <a href="https://blender.stackexchange.com/a/8749/18161">https://blender.stackexchange.com/a/8749/18161</a></p>

<p>Blender also has a glTF exporter.  For now that's a separate download, from here: <a href="https://github.com/KhronosGroup/glTF-Blender-Exporter" rel="nofollow noreferrer">glTF-Blender-Exporter</a></p>

CC BY-SA 4.0
2018-05-16T17:59:51.970Z
I tried this method out. One of the problems I faced was that the textures went missing. Furthermore, the dimensions all got messed up. Is there something I am missing? (I just imported a .X, deleted the default light source/camera and exported to .glb)
ranagraw
CC BY-SA 4.0
2018-05-17T16:47:30.527Z
The glTF exporter does have some tricky rules for materials given that it is trying to do PBR.  It ships with documentation on that.  The dimensions should be simple to get right though.  If you can produce a non-proprietary blend file that shows the dimensions problem, maybe you could post an issue on that.
emackey
CC BY-SA 4.0
2018-05-18T06:47:04.323Z
Thanks, I will do that. Keeping the question open right now to see if any other method comes up. :)
ranagraw
CC BY-SA 4.0
2018-05-18T10:51:53.180Z
Update: Blender doesn't seem to import .X files anymore :/ Only export is supported.
ranagraw
CC BY-SA 4.0
2018-05-18T21:08:36.883Z
That's lousy.  It still has import in the name, but I don't see it in my import menu either.  I wonder when that changed.
emackey
CC BY-SA 4.0
2018-05-16T14:14:27.710Z
2018-05-16T14:14:27.710Z
emackey
<p>Perhaps <a href="https://github.com/assimp/assimp" rel="nofollow noreferrer">Assimp</a> will work for you? In particular, it has a <a href="https://github.com/assimp/assimp/tree/master/tools/assimp_cmd" rel="nofollow noreferrer">command line tool for converting between formats</a>.</p>

CC BY-SA 4.0
2018-05-30T09:34:37.440Z
2018-05-30T09:34:37.440Z
joe_chip
<p>I have a bunch of meshes in the .X format, which isn't supported by many 3D applications today. Therefore, I would like to convert these to a modern format like fbx or gltf/glb. </p>

<p>Since these meshes are proprietary, an offline solution would be preferred. What would be an ideal way to achieve this lossless-ly?</p>

CC BY-SA 4.0
2018-05-16T09:05:20.993Z
Do you have the spec for the format?
ratchet freak
CC BY-SA 4.0
2018-05-16T17:57:25.257Z
@ratchetfreak this is the closest I know to a spec: http://paulbourke.net/dataformats/directx/ | Also, msdn documentation on the same: https://msdn.microsoft.com/en-us/library/windows/desktop/bb173014(v=vs.85).aspx
ranagraw
<mesh><gltf><conversion>
Convert a .X mesh to a modern format
ranagraw
# Convert a .X mesh to a modern format

(Asked by: username_0 on 2018-05-16)

I have a bunch of meshes in the .X format, which isn't supported by many 3D applications today. Therefore, I would like to convert these to a modern format like fbx or gltf/glb.

Since these meshes are proprietary, an offline solution would be preferred. What would be an ideal way to achieve this lossless-ly?

**Tags:** mesh, gltf, conversion

> **Comments:**
> **username_1**: Do you have the spec for the format?  
> **username_0**: @username_1 this is the closest I know to a spec: http://paulbourke.net/dataformats/directx/ | Also, msdn documentation on the same: https://msdn.microsoft.com/en-us/library/windows/desktop/bb173014(v=vs.85).aspx  

---

## 2 answers

### Answer by username_2 on 2018-05-16. Score: 1

Blender appears to have a .X importer. It's a plugin that ships with Blender, but is disabled by default, so you have to enable it in User Preferences. See: <https://blender.stackexchange.com/a/8749/18161>

Blender also has a glTF exporter. For now that's a separate download, from here: [glTF-Blender-Exporter](https://github.com/KhronosGroup/glTF-Blender-Exporter)

> **Comments:**
> **username_0**: I tried this method out. One of the problems I faced was that the textures went missing. Furthermore, the dimensions all got messed up. Is there something I am missing? (I just imported a .X, deleted the default light source/camera and exported to .glb)  
> **username_2**: The glTF exporter does have some tricky rules for materials given that it is trying to do PBR.  It ships with documentation on that.  The dimensions should be simple to get right though.  If you can produce a non-proprietary blend file that shows the dimensions problem, maybe you could post an issue on that.  
> **username_0**: Thanks, I will do that. Keeping the question open right now to see if any other method comes up. :)  
> **username_0**: Update: Blender doesn't seem to import .X files anymore :/ Only export is supported.  
> **username_2**: That's lousy.  It still has import in the name, but I don't see it in my import menu either.  I wonder when that changed.  

---

### Answer by username_3 on 2018-05-30. Score: 1

Perhaps [Assimp](https://github.com/assimp/assimp) will work for you? In particular, it has a [command line tool for converting between formats](https://github.com/assimp/assimp/tree/master/tools/assimp_cmd).


---

