-
Notifications
You must be signed in to change notification settings - Fork 38
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
Mitsuba blender export error #93
Comments
It will occured due new api changes in Blender 4.0. Thats why try previous versions of Blender |
Thank you. I installed a previous version of Blender.
I really can not understand what is going on when performing the xml export |
As you can see need to remove exportted scene folder and try to re-export again |
Regarding Blender 4.0, we have just made a new release of the exporter that should support it. Regarding your importing issue, can you please share with us a reproducer so we can look into it? Also, when you say "loading the scene", do you mean that you are trying to import it again in blender using this add-on, or that you are trying to load it in python, using e.g. |
I am having the problem when loading the .xml in SionnaRT, on Jupyter Notebook. Here it follows attached |
The scene folder you shared only contains an XML file, and no external files that would be necessary, e.g. Meshes. This likely means your export was not successful. Please try exporting to a clean folder again. Also, please let us know if the issue happens only with Mitsuba. We are not maintainers of the SionnaRT problem, nor are we familiar with it. If the export was successful, you should be able to render the scene using mitsuba in the CLI, e.g.: mitsuba scene.xml otherwise, you can check if the scene file is valid by importing it in mitsuba from python: import mitsuba as mi
mi.set_variant("scalar_rgb")
scene = mi.load_file("<path to scene.xml>")
print(scene) Please try either of these methods to check the validity of the exported file. |
I forgot ro export the meshes folder.
But when I tried again to perform the same action on SionaRT now I received another error message: Code: # Load integrated scene
scene = load_scene("ufmg_praca.xml")
scene.preview Result:
|
Then it seems that this scene causes a bug in SionnaRT, not in the exporter itself. I recommend you open an issue on their GitHub one. |
Thanks for the help @bathal1! Reopened @glopesr's issue on the Sionna side now that it's a Sionna error: NVlabs/sionna#357 |
For the record, I am running Blender 4.0 and installed the latest version of the exporter (0.4.0), and I am still getting the error:
However, specifying my Mitsuba binary directory as a custom path solves the issue, so perhaps there is a bug regarding which version of Mitsuba is being recognized by Blender? |
This is surprising, since the error message mentions the call being on line 29, which is where the call was before that release. When updating the addon, did you delete the previous version first ? |
Right... I did click "Remove" on the add-on before re-adding it, was that enough to wipe the old version? Perhaps there is some caching going on? |
I'm not sure, you might need to restart blender as well. |
AH! That's it, all good now! You can close :) I learned something today. |
Hi @alialsahlany, I seems that the error you are encountering is unrelated to this (closed) issue. Please open a new issue with all the relevant information so we can help you. In particular, make sure to specify which version of Blender and the add-on you are using, on which platform, and if possible a minimal blender scene that reproduces the error you are facing. |
I am not able to export a .xml.
![error](https://private-user-images.githubusercontent.com/71104353/312275308-c18a257b-98f9-4233-a73b-0f249a89ae25.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzYyOTgsIm5iZiI6MTczOTU3NTk5OCwicGF0aCI6Ii83MTEwNDM1My8zMTIyNzUzMDgtYzE4YTI1N2ItOThmOS00MjMzLWE3M2ItMGYyNDlhODlhZTI1LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIzMzMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwZmUxNDI0YzgwMGMwZWMwZThmOWMzNGM3ZDQwZTQxYWRkNjJlMzFkYmY4OGY2ODZkNjgzMDFmZWY2ODM5MjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.j1y7-TX-wUxD6pPfDxJcWHWeqp_a2j7-q89HmADO9DA)
![error](https://private-user-images.githubusercontent.com/71104353/312275325-390c0798-3bac-4ff6-9518-d50635def960.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzYyOTgsIm5iZiI6MTczOTU3NTk5OCwicGF0aCI6Ii83MTEwNDM1My8zMTIyNzUzMjUtMzkwYzA3OTgtM2JhYy00ZmY2LTk1MTgtZDUwNjM1ZGVmOTYwLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIzMzMxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4ODFlODNjNTA1MWViZTgwMzRlZTMwODMzMDYyNzhmMzQ2NWVlMjQyMzU5NmE0ZWMzZWFmYjIyMzk5MDZkMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.U_kViyl1LvZozMuCUAPxxO5tJy1QXB1b9AhNn6L3ALk)
I have the following error.
Can anyone help me?
The text was updated successfully, but these errors were encountered: