mitsuba-blender
mitsuba-blender copied to clipboard
Exporter: Bake procedural nodes into textures when converting from Cycles
The add-on tries to convert Cycles materials to Mitsuba whenever possible. However, it does not support any of Blender's math nodes which are often used in shader graphs to process textures or create them procedurally. This can be very problematic when exporting scenes that leverage this techniques a lot, resulting in many exporting failures.
Solution
The exporter could evaluate if a texture input socket can be baked into a fixed texture. Then, during the export process, this texture is rendered and replaces the baked node graph.
Additional context
An Python script example that bakes a texture can be found here.
Indeed that would be a great feature to have!