abdallahdib / NextFace

A high-fidelity 3D face reconstruction library from monocular RGB image(s)
GNU General Public License v3.0
712 stars 91 forks source link

how can i get combine *obj and *mtl? #43

Open HwangJae-won opened 2 years ago

HwangJae-won commented 2 years ago

Hi ! Thanks for sharing your code. I've tried the Colab demo file that you uploaded. Then I get mesh0.obj and material0.mtl. When I tried the obj file, I was able to get the result that only mesh was expressed. How do you get the results in a form that expresses the color of the character, not just the mesh? I think I make the result by combining obj file and mtl file, but I don't know what to do. I need your help! Please understand that English may not be smooth using a translator.

image
abdallahdib commented 2 years ago

Hi The output of nextFace is a mesh (obj) and textures (diffuse, specular, roughness) and light. to render the final image u need to use all of these informations. can u tel what r u using to render ?

HwangJae-won commented 2 years ago

Thanks for comment. I just open obj file. Do you have any recommendations for the render model for the final ouput? I'm studying 3D reconstruction, so there's a lot of room for improvement. Thank you for your help.

ghost commented 2 years ago

For the material to appear correctly, you need to apply the generated .png textures onto the shader of the .obj. This is done within the 3D software you are using. For example, in Blender: image

HwangJae-won commented 2 years ago

Thank you for your kind reply.. It was very helpful!

ylimani commented 1 year ago

hi can someone share a colab with this, thanks