papagina / HairNet_DataSetGeneration

The programs for generating the 40k hair dataset in HairNet: Single-View Hair Reconstruction using Convolutional Neural Networks https://arxiv.org/abs/1806.07467
Other
130 stars 34 forks source link

Body model not rendered #11

Closed ldoppertin closed 10 months ago

ldoppertin commented 10 months ago

First, thank you for sharing the code!

I'm having trouble with rendering the body/head, at the moment only the hair is rendered. There are no errors or warnings. Is this because I don't have the transformed body model yet? How can I transform the "Low Poly Base Mesh .obj" such that I can use it as the expected "female_halfbody_medium.obj"?

Looking forward to any suggestions, thank you.

ldoppertin commented 10 months ago

The solution was to align the body model with the map_roots1024.obj: I scaled and transformed the model on each axis (according to a .obj comparison in Blender) in Renderer.h get_body_vertex_buffer(), where body_mesh.point(fv_it)[1] is z in Blender and [2] is y in Blender.