AutoAvatar icon indicating copy to clipboard operation
AutoAvatar copied to clipboard

UV maps rendering

Open antonagafonov opened this issue 2 years ago • 1 comments

Hi, Can somebody help me out, please? If I want to render a custom UV map on top of SMPL body, how can I do it based on this paper's code?

Thanks Again. Great paper guys.

antonagafonov avatar Nov 10 '22 17:11 antonagafonov

Hi,

To use the UVRender in "utils\render.py", you need 3 things:

  1. verts_uv: uv vertex coordinates.
  2. faces_uv: uv triangle connection of uv vertices.
  3. v2uv: Corresponding uv vertex index of each mesh vertex.

Then you can input them into UVRender to define the layer. If you have a .obj file with all uv information, You can use "def parse_uv_info(obj_path):" in "utils\render.py" to get the above 3 things.

Thanks!

Best regards,

Ziqian Bai

zqbai-jeremy avatar Nov 14 '22 07:11 zqbai-jeremy