NVlabs / nvdiffmodeling

Differentiable rasterization applied to 3D model simplification tasks
Other
455 stars 30 forks source link

two_sided_shading bug #36

Closed watermoon123 closed 11 months ago

watermoon123 commented 11 months ago

when I set two_sided_shading to false, training loss cannot be optimized. How to fix it?

watermoon123 commented 11 months ago

Not sure its the issue of two_sided_shading. This happened when I was trying to optimize 2 intersecting planes(they have opposite normals). here is an illustration: The black triangle is unexpected on the outside of the blue triangle. When I turn two_sided_shading on, their are all blue and obviously loss would be optimized. So I turn two_sided_shading off so they had a color difference, but the black triangle still doesn't move inwards. image

watermoon123 commented 11 months ago

As the condition jumps exists, I think differentiable rendering is not so differentiable?

watermoon123 commented 11 months ago

Solved. Just put the camera closer。