Mineways icon indicating copy to clipboard operation
Mineways copied to clipboard

GLTF export support

Open ghost opened this issue 2 years ago • 5 comments

I really need gltf export support. Mineways doesn't have a single normal format, and there isn't a single normal way to convert to gltf. Generally! So please add support directly.

ghost avatar May 19 '22 18:05 ghost

You should be able to import the OBJ file into Blender and export it as a GLTF file.

JMY1000 avatar May 19 '22 20:05 JMY1000

Yeah, but obj not storing correct roughness info. For example, glass are glossy reflective, while needs roughness=0.

ghost avatar May 19 '22 20:05 ghost

I do not want to give links to an external site, this is generally unacceptable anywhere, and bots are banned everywhere for this, but there are specific PBR extensions for OBJ. http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr

ghost avatar May 21 '22 09:05 ghost

Sorry to just notice this now (Github, why are you not sending me emails?). I've been tempted to add glTf support, but to be honest I'd rather spend my (limited) time supporting USD, which I think is the future. That said, I might bite the bullet and add glTf, but we'll see. Reminder to self: https://github.com/jessey-git/fx-gltf or https://github.com/syoyo/tinygltf or https://github.com/jkuhlmann/cgltf

erich666 avatar Dec 19 '22 18:12 erich666

Really, my advice is to use USD export, in the long-term. USD has a similar PBR material model in its UsdPreviewSurface, e.g., see this test site: https://asset-explorer.needle.tools/

Blender 4.0.0, for example, will have much better USD support when it comes out.

That said, I'll think about adding glTF export - it'd be educational. But, a lot of work, testing to see if I'm exporting things well.

I'm asking around for the best free USD to glTF exporter out there currently. I'll post it here if I find anything good.

erich666 avatar Aug 29 '23 14:08 erich666