Some details about render_obj.
Hello, may I ask you about the code details of render_obj. I used SoftRas' camera_mode='look_at' to generate images from individual perspectives, but I can't use 'projection' to generate images because they are all pure black. How can I improve the code? Thank you very much!
Above image is 'look_at' mode.
I adjusted the orig_size in projection mode, it seems to have some effect? But I'm still curious about what you did to render the image directly?
Hello, may I ask you about the code details of render_obj. I used SoftRas' camera_mode='look_at' to generate images from individual perspectives, but I can't use 'projection' to generate images because they are all pure black. How can I improve the code? Thank you very much!
Above image is 'look_at' mode.
Hello, do you solve this problem? I also have such a pure black error in 'projection' mode
Hi there, The pure black might be caused by the improper setting of the camera. You may want to tune the parameters of the camera to fit it to the [-1, 1] camera space.
Hi there, The pure black might be caused by the improper setting of the camera. You may want to tune the parameters of the camera to fit it to the [-1, 1] camera space.
@xmeng525 Many thanks for your kind response! I have tried tuning the camera parameters but only succeeded in rendering a rarely small part of the object at the corner of the image. It seems the camera is always in a weird position. Cuz the latest version of SoftRas has removed the ‘SoftRenderer’ function you used to render the images. I try your code in the previous commit of SoftRas (btw I also tried to fit your code to the latest SoftRas but still got the same error). Thus I am not sure if the error is due to the varied version of SoftRas or your code. Would you mind checking your code? Thanks for your time!
Above image is 'look_at' mode.