RelightableAvatar icon indicating copy to clipboard operation
RelightableAvatar copied to clipboard

How to relight in other hdr?

Open coco010723 opened this issue 1 year ago • 1 comments

Hi: I noticed that the code you released uses "sg_scaled_128.npy" for the envmaps. If I have another HDR image that I want to relight, how can I obtain this .npy file? Thks!

coco010723 avatar Nov 27 '24 03:11 coco010723

We use PhySG's code to convert HDR images to SGs, see https://github.com/Kai-46/PhySG/blob/master/code/envmaps/fit_envmap_with_sg.py. There is also another script for rotating lights: https://github.com/Kai-46/PhySG/blob/master/code/envmaps/rotate_lightsg.py.

wenbin-lin avatar Nov 27 '24 07:11 wenbin-lin