Open hshreeshail opened 2 years ago
@Shreeshail-Hingane Have you solved this problem ? I encountered the same issue when texturing smplx template human
from psbody.mesh import Mesh, MeshViewer
mesh = Mesh(v=vertices, f=data['f']) mesh.vt = data['vt'] mesh.ft = data['ft'] mesh.write_obj('./temp.obj')
mesh = Mesh(filename='./temp.obj') texture_path = './smplx_blender_addon/data/smplx_texture_m_alb.png' mesh.set_texture_image(path_to_texture=texture_path) mv = MeshViewer() mv.set_static_meshes([mesh])
I just used a different texture file that worked. Like this file: https://github.com/YadiraF/PIXIE/blob/master/data/smplx_tex.png
I just used a different texture file that worked. Like this file: https://github.com/YadiraF/PIXIE/blob/master/data/smplx_tex.png
it works. thanks.
I took the![smplx_texture_m_alb_1024](https://user-images.githubusercontent.com/28868617/175608005-1de965df-3d94-44d8-aabb-cde0e8a5d0cb.png)
smplx_texture_m_alb.png
texture image file (see image below) from theSMPLX Blender Add-On
(available at https://smpl-x.is.tue.mpg.de/download.php). I wanted to add texture to the SMPLX mesh using this image outside of Blender.Following the documentation of MPI Mesh, I used the following command:![textured](https://user-images.githubusercontent.com/28868617/175607156-00577824-08fd-4c73-9293-889e47e923a2.png)
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):What is causing this issue? Note that the texture is getting loaded correctly when imported in Blender add-on. (see figure below)![image](https://user-images.githubusercontent.com/28868617/175607315-897950e8-8d1d-4791-a42a-454521069c5b.png)