shap-e icon indicating copy to clipboard operation
shap-e copied to clipboard

How to export the obj file with materials

Open pwagesq opened this issue 1 year ago • 8 comments

After I exported the final model, I imported the model into blender and found that there is no material attached to the model. What should I do to make the model have a material? image

pwagesq avatar May 23 '23 09:05 pwagesq

Ok syedSeemahabib On Tue, May 23, 2023, 14:48 Timothy Spencer @.> wrote: After I exported the final model, I imported the model into blender and found that there is no material attached to the model. What should I do to make the model have a material? [image: image] https://user-images.githubusercontent.com/131905100/240219655-7d99ed12-399d-4906-aae2-e8e70f1bcb7e.png — Reply to this email directly, view it on GitHub <#91>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3GBIHAESTXMOJHDQLULK7LXHSBX5ANCNFSM6AAAAAAYLT67EI . You are receiving this because you are subscribed to this thread.Message ID: @.>

Do you have any way to solve it?

pwagesq avatar May 24 '23 01:05 pwagesq

Did you finally solve it?I have the same problem

yangeer avatar May 26 '23 01:05 yangeer

Did you finally solve it?I have the same problem

No, I have no idea with it.

pwagesq avatar May 26 '23 08:05 pwagesq

You need to bake the vertex colours into a texture.

Banbury avatar May 28 '23 11:05 Banbury

to fix that I ended up loading the latent output into a trimesh and re-wrote it as glb

something like that -

 mesh = trimesh.load(obj_filename)
 mesh.export(mesh_path, file_type='glb')

eran-sefirot avatar May 31 '23 10:05 eran-sefirot

to fix that I ended up loading the latent output into a trimesh and re-wrote it as glb

something like that -

 mesh = trimesh.load(obj_filename)
 mesh.export(mesh_path, file_type='glb')

Hi eran,

I used the method you mentioned above and successfully exported the model, but there is still no material attached to the model. Can you explain it in more detail?

pwagesq avatar Jun 07 '23 05:06 pwagesq

I meet a same question,please help me

itcjitcj avatar Oct 08 '23 02:10 itcjitcj

It worked, Thank u!

lemorage avatar Jun 18 '24 03:06 lemorage