ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.24k stars 156 forks source link

Hi, where is rasterize function? #1

Closed mks0601 closed 5 years ago

mks0601 commented 5 years ago

Hi, thanks for good work!

In soft_renderer/rasterize.py, a function, srf.rasterize, is called. But I cannot figure out where it is defined. Can you give me some help?

ShichenLiu commented 5 years ago

Hi,

Thanks for pointing this out. srf.rasterize is a prototype function that we used in previous versions. I just remove that part of the code to make it less confusing. Feeding soft_rasterize with dist_func, aggr_func_rgb and aggr_func_alpha setting to 'hard' is equivalent to standard rasterize function.