You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blender importer failures
While importing example mitsuba3/sionna scenes, addon fails without providing any information about the problem
Bug Description
It looks like Blender API has undergone changes after Importer size development of the addon
To Reproduce
Install the addon (0.3.0, 0.4.0 or nightly),
install mitsuba dependency (3.4.1 or 3.5.0)
Import any of the scenes, e.g. in Sionna RT scnenes.
Expected behavior
The scene is shown on Blender 3.6 or 4.1
Resources
If applicable, add screenshots or other files (Blender projects, Mitsuba scenes) to help explain or demonstrate your problem.
Environment (please complete the following information):
OS: Windows Linux
Blender Version: 3.6 and 4.1
Add-on Version: (0.3.0, 0.4.0 or nightly)
Additional context
It looks like the first bug is due to bmesh.ops.create_uvsphere, called in shapes.py, parameter rename in Blender API. The named argument diameter is correctly renamed to radius. This solves the note you have just before calling the function.
In renderer.py, the dictionary _mi_integrator_properties_converters supports only two of the integrators. It looks like the scenes have much more integrators: I have encountered volpath and direct. I suppose it is required to select a default converter for unknown integrator types.
In Blender 4 API, Mesh.calc_normals() is deprecated (it had already deprecated at version 3.6 but not removed by then). bl_mesh.calc_normals() call in _set_bl_mesh_shading function in shapes.py must be removed to support Blender 4.0 API.
There might be some other problems, but after resolving 1 and 3, I was able to import Sionna/RT scenes to Blender.
The text was updated successfully, but these errors were encountered:
Blender importer failures
While importing example mitsuba3/sionna scenes, addon fails without providing any information about the problem
Bug Description
It looks like Blender API has undergone changes after Importer size development of the addon
To Reproduce
Expected behavior
The scene is shown on Blender 3.6 or 4.1
Resources
If applicable, add screenshots or other files (Blender projects, Mitsuba scenes) to help explain or demonstrate your problem.
Environment (please complete the following information):
Additional context
bmesh.ops.create_uvsphere
, called inshapes.py
, parameter rename in Blender API. The named argumentdiameter
is correctly renamed toradius
. This solves the note you have just before calling the function.renderer.py
, the dictionary_mi_integrator_properties_converters
supports only two of the integrators. It looks like the scenes have much more integrators: I have encounteredvolpath
anddirect
. I suppose it is required to select a default converter for unknown integrator types.Mesh.calc_normals()
is deprecated (it had already deprecated at version 3.6 but not removed by then).bl_mesh.calc_normals()
call in_set_bl_mesh_shading
function inshapes.py
must be removed to support Blender 4.0 API.There might be some other problems, but after resolving 1 and 3, I was able to import Sionna/RT scenes to Blender.
The text was updated successfully, but these errors were encountered: