face3d icon indicating copy to clipboard operation
face3d copied to clipboard

Uv coordinates of image

Open TychoKoster opened this issue 5 years ago • 1 comments

How do I get the uv coordinates of a 3d model? I want to create a texture map from any image not just the one from the bfm model. But 7_generate_uv_map.py only generates it for the BFM example. I found this: uv_coords = face3d.morphable_model.load.load_uv_coords('Data/BFM/Out/BFM_UV.mat') attribute = uv_coords uv_coords_image = mesh_numpy.render.render_colors(image_vertices, triangles, attribute, h, w, c=2)

But this results in an array of 3 dimensions, while the texture map generation from 7_generate_uv_map.py needs a 2 dimension array. Any suggestions?

TychoKoster avatar Mar 01 '19 12:03 TychoKoster

I have the same problem. Have you found a solution?

varunszapp avatar Dec 17 '19 15:12 varunszapp