mitsuba-renderer / mitsuba-blender

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

Importer: Mitsuba object type "SRGBReflectanceSpectrum" is not supported. #98

Closed HughieH closed 5 months ago

HughieH commented 7 months ago

Importer: Mitsuba object type "SRGBReflectanceSpectrum" is not supported.

Bug Description I'm trying to import an example scene from Sionna's Ray Tracing module in sionna/rt/scenes/box/box.xml in the Sionna library. THe import doesn't work with the error Mitsuba object type "SRGBReflectanceSpectrum" is not supported..

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://github.com/NVlabs/sionna'
  2. Download the library.
  3. Open blender (Blender 3.6.8) with the mitsuba extension (0.3.0).
  4. Import the scene from the file path sionna/rt/scenes/box/box.xml
  5. See error

Expected behavior Scene should be imported and viewed in Blender GUI.

Environment (please complete the following information):

merlinND commented 7 months ago

Hello,

I haven't tried to reproduce myself, but I am attaching the scene in question for convenience. box.zip

HughieH commented 7 months ago

I have also tried importing this scene using Blender 4.0 and Mitsuba-render 0.4.0 with the same result.

HughieH commented 7 months ago

I believe it is this element that is causing the import issue in the associated xml file:

<emitter type="constant" id="World">
    <rgb value="1.000000 1.000000 1.000000" name="radiance"/>
</emitter>

Specifically the rgb values for the radiance tag.