Okay, I’m curious to get feedback including thoughts from @matterhorn103 and @brockdyer03 in particular.
I wanted to add a ray-tracing option for an Avogadro plugin and found Mitsuba - a “path based” render code that’s on PyPI.
The problem is that surfaces aren’t sent along with the CJSON sent to plugins at the moment. In general, for export to various rendering formats, we’ve used a “Visitor” class in C++ that gets all the render bits (e.g., draw a red sphere at this position, radius, etc.) including surface meshes.
I’d really like to export surface meshes. One option is to add an option to the plugins to request a scene export, e.g.
[[tool.avogadro.menu-commands]]
identifier = "render"
menu = "File"
submenu = "Export"
item = "Path-Traced Image (Mitsuba)..."
input-format = "cjson"
# Avogadro 2.2 adds a glTF "scene" to the input (older versions ignore this)
input-scene = "glb"
I think this is a good backwards-compatible way to allow rendering commands - Avogadro will export the scene through the glb / glTF format including surfaces and colors and then the render plugin can do whatever it wants.
Thoughts? Better ideas?

