mitsuba-renderer / mitsuba-blender

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

<bug>: <​[common.py:236] log(): Failed to convert Mitsuba class "Texture".> #116

Open Start1er opened 1 week ago

Start1er commented 1 week ago

Bug Description The Texture class which contains .vol as the texture class scene like the dataset here https://github.com/rgl-epfl/differentiable-sdf-rendering offers can not be loaded correctly in blender

To Reproduce Steps to reproduce the behavior:

  1. Go to a scene xml file where

    <scene version="2.1.0">
    <path value="../"/>
    
    <bsdf type="principled" id="main-bsdf">
        <texture type="volume" name="base_color">
            <volume type="gridvolume" name="volume">
                <string name="filename" value="textures/red.vol"/>
            </volume>
        </texture>
        <texture type="volume" name="roughness">
            <volume type="gridvolume" name="volume">
                <string name="filename" value="textures/gray.vol"/>
            </volume>
        </texture>
        <float name="specular" value="1.000000"/>
    </bsdf>
    <default name="main_bsdf_name" value="main-bsdf"/>
    </scene>

Expected behavior I expected the scene which cantains the .vol as principled BRDF texture can be loaded correctly in blender?

Resources image

Environment (please complete the following information):