huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.98k stars 222 forks source link

Feature Request: Support fbx/gltf2 import option #55

Closed PravinKumar95 closed 4 years ago

PravinKumar95 commented 4 years ago

It would be great to import gltf files into dust3d.

huxingyi commented 4 years ago

Hi, thanks for the suggestion, however, Dust3D is not a general purpose mesh editing software, it’s a mesh generator. The source document stores nodes info instead of vertex info.

PravinKumar95 commented 4 years ago

Oh I see. Is there any way to use the auto uv unwrapper for my existing models?. I looked at simpleuv. What does the member "std::vectorfacePartitions" in struct Mesh do?

huxingyi commented 4 years ago

There is no way for unwrapping an existing model which are not made in Dust3D, however, as you said, you can write your own application using simpleuv. It's safe to leave facePartitions as empty. It can be used to pre split your mesh to groups. For example, you can assign your main body faces' partition as 1 and assign left limb faces' partition as 2. The group will be further split by face normal, so the front and back side will be in separate uv island.

PravinKumar95 commented 4 years ago

Thanks for your reply. I will close this issue for now.