Replies: 3 comments
-
It is differentiable to some changes in the input but not others (e.g. object boundaries moving), and this can be combined with soft blending/ shading to get a more differentiable result. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your prompt response! Could you elaborate more on what you mean by "object boundaries moving"? And how can I leverage soft blending/shading to get a more differentiable results on the depth map?
Then in the
But fragments.zbuf is not affected by either shading or blending... |
Beta Was this translation helpful? Give feedback.
-
I found out that in the latest release there is a SoftDepthShader, I'll try to use that. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I am trying to understand whether the output of the mesh resterizer, more specifically
fragments.zbuf[0, ..., 0]
is differentiable or not. From the discussion in issue #35 it seem that it IS differentiable.Nevertheless, my doubt comes from the fact is that if we look at
![Screenshot from 2025-01-24 16-21-26](https://private-user-images.githubusercontent.com/45430681/406491916-252bb2fa-7dd6-4483-8cf8-ab7b54818def.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjExMjgsIm5iZiI6MTczOTM2MDgyOCwicGF0aCI6Ii80NTQzMDY4MS80MDY0OTE5MTYtMjUyYmIyZmEtN2RkNi00NDgzLThjZjgtYWI3YjU0ODE4ZGVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExNDcwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiNGJkMGQyNWQ0Njc4OTYxODFmODM5ZTQ4YWNkNTQwN2M3Njc0M2U0Yzc1NmEzNmI4ZThhZTM5M2NkZGQ5MzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vWl-iacyflsLfv5PPFTAbjF-l-NrhCOd1npdq79tIOE)
fragments.zbuf[0, ..., 0]
of a random object as belowand I zoom in to try to visualize the differentiability, I only see sharp boundaries.
![Screenshot from 2025-01-24 16-22-26](https://private-user-images.githubusercontent.com/45430681/406492276-914f1c80-2419-411c-96f6-ae8efbd2ed36.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjExMjgsIm5iZiI6MTczOTM2MDgyOCwicGF0aCI6Ii80NTQzMDY4MS80MDY0OTIyNzYtOTE0ZjFjODAtMjQxOS00MTFjLTk2ZjYtYWU4ZWZiZDJlZDM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExNDcwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5OWVkZDRlZTc5ZDE4YTFiNjI4ZTY0NDI1OWE4MTZjNTgxNTY2YTllMWMwYzRkZDZkNzhmYTQ3ZGViMjNkNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.etZzvRIVhP8jExi3JqxnBqrZWv99I90Sg6_602ZmgwA)
The same does NOT apply when I visualize the silhouette extracted from the
SoftSilhouetteShader
, in this case the silhouette looks and is differentiable.Thank you in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions