Skip to content
Discussion options

You must be logged in to vote

Hi @zichenwang01,

That's an interesting question. If I understand correctly, the ideal solution would be to be able to declare your Python-based SDF shapes as a custom Mitsuba Shape. But unlike BSDFs, as far as I know, custom Python-based shapes are not possible yet because the corresponding trampoline classes are not present in the bindings.

So you second solution is to try to create an array of BSDF pointers, on which you can then do a vcall (emulating the shape -> BSDF assignment).
For sensors, emitters and shapes, I know that you can create such pointer arrays by gathering from e.g. scene.emitters_dr(). For BSDFs that you have created yourself in Python, it looks like the following wo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by njroussel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants