Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender importer failures #113

Open
yusein-ali opened this issue Oct 8, 2024 · 0 comments
Open

Blender importer failures #113

yusein-ali opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yusein-ali
Copy link

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

  1. Install the addon (0.3.0, 0.4.0 or nightly),
  2. install mitsuba dependency (3.4.1 or 3.5.0)
  3. 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

  1. 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.
  2. 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.
  3. 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.

@yusein-ali yusein-ali added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant