facebookresearch / AutoAvatar

AutoAvatar Autoregressive Neural Fields for Dynamic Avatar Modeling
Other
98 stars 9 forks source link

UV maps rendering #2

Open antonagafonov opened 1 year ago

antonagafonov commented 1 year ago

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.

zqbai-jeremy commented 1 year ago

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