wangsen1312 / joints2smpl

fit smpl parameters model using 3D joints
157 stars 10 forks source link

May I ask is there a way to apply custom textures to the SMPL model? #8

Closed snowmint closed 4 months ago

snowmint commented 9 months ago

I have managed to transform the body pose coordinates to the SMPL (.ply) file using the codes you provided in the repo. However, I wasn’t able to apply my customized textures using Blender. I tried to modify your codes but to no avail. I would like to know if you have any advice on how to texture SMPL models.

Here is the link to the video showcasing the transformed SMPL model: https://drive.google.com/file/d/1TWwpYr1wkAHH8TSR1ICcJCo60LYV5UF8/view?usp=sharing

I used Texformer (from another repo) to transform the single image to the SMPL textures: uvmap_test_1_1 uvmap_photo_test5

Hope there is a way to apply the texture on the SMPL model to get even more realistic visualization.

Thank you.

dancasas commented 7 months ago

Hi, you can grab the UV coordinates from any SMPL obj mesh that has texture coordinates, for example here

https://github.com/dancasas/SMPLitex/blob/main/sample-data/smpl_uv_20200910/smpl_uv.obj

Just copy and paste the lines starting with f and vt (which define the UV coordinates) into your SMPL obj, and it should work.

You can grab new textures from our new dataset https://dancasas.github.io/projects/SMPLitex/SMPLitex-dataset.html