Gradient of mesh vertices #1224
Unanswered
supertan0204
asked this question in
Q&A
Replies: 1 comment
-
Yes, this should work. You need to pass the scene parameters to the params = mi.traverse(scene)
img = mi.render(scene, params=params)
dr.backward(img) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
If I have a mesh with vertices$\mathbf{x}$ and normals $\mathbf{n}$ , and I use Mitsuba 3 to render this mesh into a rgb image $\mathbf{I}=\mathcal{R}(\mathbf{x},\mathbf{n}, ...)$ . Here $\mathcal{R}$ stands for rendering function, and "..." means other parameters (lighting, materials, etc.). Is there any way that I could get explicitly the tensor $\partial \mathbf{I}/\partial \mathbf{x}$ without specifying a loss? (I do not have a explicit loss value in my optimization pipeline.)
Here is my attemping:
The
dr.backward(img)
throws the error message:Beta Was this translation helpful? Give feedback.
All reactions