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

Importer: "enum 'SHARP' not found" with Torus #99

Closed
pablode opened this issue May 1, 2024 · 2 comments · Fixed by #103
Closed

Importer: "enum 'SHARP' not found" with Torus #99

pablode opened this issue May 1, 2024 · 2 comments · Fixed by #103
Labels
bug Something isn't working

Comments

@pablode
Copy link

pablode commented May 1, 2024

Bug Description
Mitsuba-blender fails to import the Torus asset from https://www.mitsuba-renderer.org/download.html.

To Reproduce

  1. Import Torus asset XML
  2. See error being thrown

Expected behavior
No error.

Resources
Screenshot 2024-05-01 at 22 51 08

Environment:

  • OS: MacOS Sonoma 14.4.1
  • Blender Version: 4.0.2
  • Add-on Version: v0.4.0
@bathal1
Copy link
Collaborator

bathal1 commented May 27, 2024

Hi,
Thanks for bringing this up, a fix will be incorporated soon.

Please note that importing this particular scene will still not work, because this is a Mitsuba 0.6 scene, which contains plugins that are no longer supported by Mitsuba 3. In particular, the integrator and the Sun-Sky model are not supported anymore. Furthermore, the importer is currently unable to import geometry from the serialized file format.

In order to work around these issues, I suggest you remove/replace the unsupported plugins, load the geometry using Mitsuba's python API, and export the meshes one by one as PLYs.

bathal1 added a commit that referenced this issue May 27, 2024
…urfaces (#103)

Blender 4.0 changed the way clear dielectric and conductor surfaces are
handled, using only the roughness field now. This PR changes the
import/export accordingly. This fixes #99
@pablode
Copy link
Author

pablode commented May 27, 2024

Thanks for the detailed answer!

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
2 participants