Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glTF2 format support #441

Open
vpenades opened this issue Apr 10, 2019 · 20 comments
Open

glTF2 format support #441

vpenades opened this issue Apr 10, 2019 · 20 comments

Comments

@vpenades
Copy link

It could be nice if MeshLab could provide support for the glTF format.

There's already a number of libraries in C++ for it, like https://github.com/Microsoft/glTF-Toolkit

@stale
Copy link

stale bot commented Jun 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 19, 2020
@goldragoon
Copy link

goldragoon commented Aug 6, 2020

Is there any progress on this issue?
If not, I'd like to start with it.

@alemuntoni
Copy link
Member

Hi @goldragoon, sorry but there is no progress on this :(
But PRs are welcome :)

@alemuntoni
Copy link
Member

alemuntoni commented Jul 1, 2021

Hi everybody,
I've just added a gltf importer into meshlab!
Right now, only *.gltf files are supported (some material info, animations, skeleton etc. are ignored since they are not supported natively into meshlab).
I plan to add support also for importing *.glb files and exporting gltf/glb in the future, therefore we can say that this feature request is done at 25% :). I still don't know when though.
You can try the importer by downloading the last nightly build, and of course it will be included in the next meshlab version. Looking forward for your feedbacks!

@alemuntoni
Copy link
Member

Another small update: now also *.glb files are supported (it was easier than I thought), therefore we can say that we are at 50%. :)
Hope to add the exporter in the near future!

@Tzanker
Copy link

Tzanker commented Aug 2, 2021

@alemuntoni thanks for the work so far! Do you have any update on exporting glb or gltf? I would find it really helpful!

@alemuntoni
Copy link
Member

@Tzanker nope, sorry. It will require some time to implement it. Hope to have it by October/November..

@vpenades
Copy link
Author

vpenades commented Aug 3, 2021

@alemuntoni Regarding writing glTFs, I would like to give you some advices:

It's not my use case, but I am aware that many MeshLab users do use it with models with millions of polygons. Now, glTF does support very large meshes, but only under certain conditions.

  • GLB files have a practical limit of 2Gb in size.
  • glTF files have a practical limit of 2Gb on each binary blob, but a single glTF file can use multiple binary blobs.

So, for relatively (*) small meshes, I would use a generic glTF exporter... but for very large meshes, I would use a domain specific exporter, where, each individual mesh would have a separated binary blob for positions, normals and UV coords. That way, the maximum number of vertices for a single mesh could be increased to 2Gb / 12 = 178 million vertices.

@alemuntoni
Copy link
Member

Thanks for letting me know this, @vpenades!
I need to check if tinygltf allows to control these scenarios, since it is the library we use for parse gltf in the importer, but should be fine.

@vanous
Copy link

vanous commented Aug 18, 2021

This is very awesome, having the possibility to use pymeshlab and export glb would be really great!

@alemuntoni
Copy link
Member

@vanous see #911

@vanous
Copy link

vanous commented Aug 18, 2021

Yes, yes, i corrected myself fast, after noticing it :) . I just tested pymeshlab and it works well, great job!

@alemuntoni
Copy link
Member

Oh ok, sorry @vanous! I still receive questions asking for meshlabserver, therefore it's kind of automatic for me to link that issue :D

@elenzil
Copy link

elenzil commented Aug 18, 2021

thrilled to see glb and gltf in meshlab!
seeing some issues, tho, and filed this.

@ttsesm
Copy link

ttsesm commented Dec 20, 2021

@alemuntoni I am trying to load some .gltf files downloaded from the sketchfab, e.g. https://sketchfab.com/3d-models/hydria-apothecary-vase-7d6938c0c0b54b06a0210a982a73023e however there is no texture loaded:
image

Any idea what could be wrong?

@mikeucfl
Copy link

@Tzanker nope, sorry. It will require some time to implement it. Hope to have it by October/November..

Just curious if there has been any new updates for gLTF exporting, thanks!

@mark2142
Copy link

mark2142 commented Mar 8, 2022

I am using pymeshlab.
I am trying to export a glb to obj.
I am getting this error.
failed to save ouput file Image processed/texture_1 cannot be saved. Your MeshLab version has not plugin to save file format.
What format is it trying to save?
Can it be fixed?

@gunmiosb
Copy link

gunmiosb commented Oct 4, 2022

I wanted to do the something similar as @mark2142

  • load a gltf/glb
  • simplify it
  • export as obj (because there is no gltf/glb exporter)

The problem seems to be embedded images in the gltf/glb file. If i use gltf/glb with external buffers/images the conversion works.

@malkasem
Copy link

malkasem commented Apr 16, 2024

Hi everybody, I've just added a gltf importer into meshlab! Right now, only *.gltf files are supported (some material info, animations, skeleton etc. are ignored since they are not supported natively into meshlab). I plan to add support also for importing *.glb files and exporting gltf/glb in the future, therefore we can say that this feature request is done at 25% :). I still don't know when though. You can try the importer by downloading the last nightly build, and of course it will be included in the next meshlab version. Looking forward for your feedbacks!

Hi, I want to ask please, if there is now possiblity to use MeshLab for importing *.glb files and exporting gltf/glb ?I appreciate it in advance!

@ccdejene
Copy link

same issue:

  • Export from glb to obj

texture_0 cannot be saved. Your MeshLab version has not plugin to save file format.

any update on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests