mitsuba-renderer / mitsuba3

Mitsuba 3: A Retargetable Forward and Inverse Renderer
https://www.mitsuba-renderer.org/
Other
2.1k stars 246 forks source link

Define new shape plugin in python #1390

Closed domef closed 2 days ago

domef commented 1 week ago

I'm trying to define a new shape class/plugin to load GLB meshes. How can I do it in python? I'm looking this tutorial but I can't understand how to replicate the example for a mesh.

njroussel commented 2 days ago

Hi @domef

For various deep technical reasons, custom shapes can only be implemented in C++. Theoretically, I think that custom Python Mesh plugins could be possible, but it's not a feature that we have currently implemented.