smplify-x icon indicating copy to clipboard operation
smplify-x copied to clipboard

Adding texture using MPI Mesh

Open hshreeshail opened this issue 2 years ago • 2 comments

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 avatar Jun 24 '22 17:06 hshreeshail

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

hshreeshail avatar Jun 25 '22 13:06 hshreeshail

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!

JunfengLiu1 avatar Apr 02 '23 12:04 JunfengLiu1