mitsuba-renderer / mitsuba-blender

Mitsuba integration add-on for Blender
BSD 3-Clause "New" or "Revised" License
280 stars 37 forks source link

Mitsuba blender export .xml error #107

Closed alialsahlany closed 5 months ago

alialsahlany commented 5 months ago

I am not able to export a .XML. I use Blender v4.1 Captjjjjjjure

Mitsuba blender ![Uploading 2.PNG…]()

bathal1 commented 5 months ago

Hi, It would be very helpful if you could share a minimal blender scene that produces this error. Also, which release of the add-on are you using ?

alialsahlany commented 5 months ago

Hi, It would be very helpful if you could share a minimal blender scene that produces this error. Also, which release of the add-on are you using ?

Thank you. I installed a previous version of Blender 3.6 and Mitsuba 3.4.1,and I have the same problem. image

bathal1 commented 5 months ago

Thanks for this information. Unfortunately, I cannot infer much from a screenshot of your scene, can you please share the .blend file here ?

alialsahlany commented 5 months ago

Thanks for this information. Unfortunately, I cannot infer much from a screenshot of your scene, can you please share the .blend file here ?

mecaa2.blend you can download it

bathal1 commented 5 months ago

Thank you. The error happens because you have linked a diffuse BSDF node to the world output, which is not supported by the exporter as it is ill-defined. It should have logged an error instead of failing, I will fix that shortly.

To solve your exporting issue, I suggest you use a Background node instead, which is intended for this anyway.

alialsahlany commented 5 months ago

Thank you. The error happens because you have linked a diffuse BSDF node to the world output, which is not supported by the exporter as it is ill-defined. It should have logged an error instead of failing, I will fix that shortly.

To solve your exporting issue, I suggest you use a Background node instead, which is intended for this anyway.

I installed Blender 3.6 and everything is now OK.