NeAT icon indicating copy to clipboard operation
NeAT copied to clipboard

Some details about render_obj.

Open ZZy129326999 opened this issue 2 years ago • 4 comments

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! image Above image is 'look_at' mode.

ZZy129326999 avatar Jun 08 '23 04:06 ZZy129326999

image 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?

ZZy129326999 avatar Jun 08 '23 05:06 ZZy129326999

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! image Above image is 'look_at' mode.

Hello, do you solve this problem? I also have such a pure black error in 'projection' mode

song-wx avatar Jul 23 '23 20:07 song-wx

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 avatar Jul 24 '23 05:07 xmeng525

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!

song-wx avatar Jul 26 '23 22:07 song-wx