1
$\begingroup$

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?

$\endgroup$
2

2 Answers 2

1
$\begingroup$

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

$\endgroup$
5
  • $\begingroup$ 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) $\endgroup$
    – ranagraw
    May 16, 2018 at 17:59
  • $\begingroup$ 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. $\endgroup$
    – emackey
    May 17, 2018 at 16:47
  • $\begingroup$ Thanks, I will do that. Keeping the question open right now to see if any other method comes up. :) $\endgroup$
    – ranagraw
    May 18, 2018 at 6:47
  • $\begingroup$ Update: Blender doesn't seem to import .X files anymore :/ Only export is supported. $\endgroup$
    – ranagraw
    May 18, 2018 at 10:51
  • $\begingroup$ 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. $\endgroup$
    – emackey
    May 18, 2018 at 21:08
1
$\begingroup$

Perhaps Assimp will work for you? In particular, it has a command line tool for converting between formats.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.