yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.65k stars 611 forks source link

uv_texture_map #33

Open victoriapoghosyan opened 5 years ago

victoriapoghosyan commented 5 years ago

I want to use render_texture() function as in 5_render.py script. My question is how to create uv_texture_map.jpg given .obj file with uv coordinates and .jpg file associated to .obj file ? Is the map_Kd in .mtl file what i need to apply as texture during render_texture?

liguohao96 commented 5 years ago

All you need is vertex, triangle, texture_image, texture_coordinate(uv coordinate), texture_triangle. I think you should see if your .ojb file contains texture_triangle. BTW, there is little buggy in 5_render.py and cython/mesh_core.cpp, I have already send a PR. #34

yujingxin commented 4 years ago

All you need is vertex, triangle, texture_image, texture_coordinate(uv coordinate), texture_triangle. I think you should see if your .ojb file contains texture_triangle. BTW, there is little buggy in 5_render.py and cython/mesh_core.cpp, I have already send a PR. #34

How could I get texture_triangle from texture_image? I use triangle instead of texture_triangle, and get right result. So is texture_triangle same as triangle?