vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.69k stars 330 forks source link

Adding texture using MPI Mesh #181

Open hshreeshail opened 2 years ago

hshreeshail commented 2 years ago

I took the smplx_texture_m_alb.png texture image file (see image below) from the SMPLX Blender Add-On. I wanted to add texture to the SMPLX mesh using this image outside of Blender. smplx_texture_m_alb_1024

Following the documentation of MPI Mesh, I used the following command: Mesh.set_texture_image('smplx_texture_m_alb.png'). However, I am facing an issue with the eye positioning in the output (see figure below): textured

What is causing this issue? Note that the texture is getting loaded correctly when imported in Blender add-on. (see figure below) image

hshreeshail commented 2 years ago

I'm not sure whether the issue is with the texture files or with the .set_texture_image() function. I am importing the texture files from this repo using the function and it works fine (see image below) textured

JunfengLiu1 commented 1 year ago

Hey, @hshreeshail .I'm also using the texture file int this repohttps://github.com/qzane/textured_smplx.However,when I used SMPLX Blender Add-On to create a SMPLX model and importing the texture file using blender,the result was not good(like your second image).And here is my result in blender. 2023-04-02 20-48-13 的屏幕截图

It seems that the uv map is not compatible with the texture.How can I fix it?Thank you so much!