postech-ami / Paint-it

[CVPR'24] Official PyTorch Implementation of "Paint-it: Text-to-Texture Synthesis via Deep Convolutional Texture Map Optimization and Physically-Based Rendering"
https://kim-youwang.github.io/paint-it
MIT License
199 stars 6 forks source link

Need help to render same generated texture in Blender #21

Closed gurudt12 closed 4 months ago

gurudt12 commented 4 months ago

I am using Paint It to create Ks, Kd, and Kn maps, but when I load them in Blender, the blacks are missing. I think this is due to different shading conditions. I tried using the script from here - (https://github.com/NVlabs/nvdiffrecmc/blob/main/blender/blender.py), but I can't get it to work. I'm having trouble linking the nodes, even after following all the instructions. Please, Can you help?

Thanks!

gurudt12 commented 4 months ago

Anyone, who has done it, can you help, like which blender version to use/ or any other trivial information might also help, I am facing issue while running script itself.

gurudt12 commented 4 months ago

what is this file (probe.hdr), does anyone has an idea?

envmap.image = bpy.data.images.load(os.path.join(MESH_PATH, "probe.hdr"))